# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:2 Saturday 01 June 2024 12:50:13 +0000 (0:00:00.012) 0:00:00.012 ********* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:5 Saturday 01 June 2024 12:50:14 +0000 (0:00:00.771) 0:00:00.783 ********* changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:9 Saturday 01 June 2024 12:50:15 +0000 (0:00:00.600) 0:00:01.384 ********* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:14 Saturday 01 June 2024 12:50:15 +0000 (0:00:00.327) 0:00:01.712 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 01 June 2024 12:50:15 +0000 (0:00:00.483) 0:00:02.195 ********* included: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 01 June 2024 12:50:15 +0000 (0:00:00.011) 0:00:02.206 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 01 June 2024 12:50:15 +0000 (0:00:00.019) 0:00:02.226 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 01 June 2024 12:50:16 +0000 (0:00:00.233) 0:00:02.459 ********* ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 01 June 2024 12:50:16 +0000 (0:00:00.020) 0:00:02.479 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 01 June 2024 12:50:16 +0000 (0:00:00.033) 0:00:02.513 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 01 June 2024 12:50:21 +0000 (0:00:05.042) 0:00:07.555 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-pyparsing-2.4.7-9.el9.noarch", "Installed: python3-packaging-20.9-5.el9.noarch", "Installed: certmonger-0.79.17-2.el9.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 01 June 2024 12:50:24 +0000 (0:00:02.790) 0:00:10.345 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 01 June 2024 12:50:24 +0000 (0:00:00.274) 0:00:10.620 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 01 June 2024 12:50:24 +0000 (0:00:00.204) 0:00:10.824 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus-broker.service network.target dbus.socket systemd-journald.socket syslog.target system.slice basic.target sysinit.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22356", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 01 June 2024 12:50:25 +0000 (0:00:00.708) 0:00:11.533 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 01 June 2024 12:50:26 +0000 (0:00:01.386) 0:00:12.919 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 01 June 2024 12:50:26 +0000 (0:00:00.034) 0:00:12.954 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 01 June 2024 12:50:26 +0000 (0:00:00.019) 0:00:12.973 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 01 June 2024 12:50:26 +0000 (0:00:00.019) 0:00:12.993 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:32 Saturday 01 June 2024 12:50:26 +0000 (0:00:00.022) 0:00:13.015 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:61 Saturday 01 June 2024 12:50:27 +0000 (0:00:00.496) 0:00:13.511 ********* included: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 12:50:27 +0000 (0:00:00.037) 0:00:13.549 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 12:50:27 +0000 (0:00:00.008) 0:00:13.557 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 12:50:27 +0000 (0:00:00.019) 0:00:13.577 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 12:50:27 +0000 (0:00:00.018) 0:00:13.596 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 Saturday 01 June 2024 12:50:27 +0000 (0:00:00.018) 0:00:13.614 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:40 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.896) 0:00:14.510 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246225.8407695, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "32fc1ddd896aea0854fe220db5be22f682f412aa", "ctime": 1717246225.9437678, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6495429, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246225.8387697, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "4107567702", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:45 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.200) 0:00:14.711 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:51 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.020) 0:00:14.731 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:63 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.023) 0:00:14.754 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:69 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.021) 0:00:14.776 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246225.7827706, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "41ec236de7d3f672043037c19b1bfe1daf583a87", "ctime": 1717246225.9437678, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4984668, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246225.8387697, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "3301856373", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:74 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.201) 0:00:14.977 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:80 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.019) 0:00:14.997 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 12:50:28 +0000 (0:00:00.021) 0:00:15.018 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "D3:60:67:8D:5E:D7:DD:A9:C5:40:E6:2D:E5:FE:B5:BC:FD:AF:AD:00" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:46:8D:E6:67:65:ED:F8:4C:7D:43:F5:0E:D1:56:B9:A0:BA:8E:A5:FE:9A:E8:2D:92:13:B7:63:8B:8F:AF:FB:E0:E6:12:4E:24:C5:09:B8:7A:2D:58:A3:AC:81:16:1C:4E:2D:8E:14:58:5C:BF:16:A2:E5:AD:2F:6E:FB:8E:31:AC:AA:46:E5:6D:55:F6:74:0B:20:13:DC:C6:28:4D:E9:8D:A2:EB:99:99:83:2F:6A:D7:4C:4D:F5:49:47:6F:94:3F:61:50:7F:21:A3:87:25:0F:F9:0A:35:28:67:CC:DB:F1:40:07:25:C6:99:A5:1C:A5:CA:41:5A:18:F8:97:65:26:C6:E7:53:77:67:7F:94:18:88:FC:A3:A9:76:DC:A9:2D:C4:27:90:C4:F4:A2:0D:90:D2:90:4D:2F:82:79:1B:C8:C4:26:28:37:1E:C3:4C:BF:EC:EF:AC:9C:36:DB:CF:8D:E1:83:F9:FD:C9:B7:07:5D:20:EA:5F:A4:15:C4:9C:FF:DB:E2:83:76:0D:14:D4:58:59:03:14:C5:E8:67:DD:7A:70:4A:B3:52:B6:12:13:69:D3:84:D1:4C:50:A1:AC:91:2F:6C:D0:B7:5D:CB:5D:FA:17:4C:04:47:72:CA:D9:88:8B:77:DB:36:F2:E2:7D:DD:14:14:3E:F6:FE:40:59" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125025Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:98 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.308) 0:00:15.327 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "D3:60:67:8D:5E:D7:DD:A9:C5:40:E6:2D:E5:FE:B5:BC:FD:AF:AD:00" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:46:8D:E6:67:65:ED:F8:4C:7D:43:F5:0E:D1:56:B9:A0:BA:8E:A5:FE:9A:E8:2D:92:13:B7:63:8B:8F:AF:FB:E0:E6:12:4E:24:C5:09:B8:7A:2D:58:A3:AC:81:16:1C:4E:2D:8E:14:58:5C:BF:16:A2:E5:AD:2F:6E:FB:8E:31:AC:AA:46:E5:6D:55:F6:74:0B:20:13:DC:C6:28:4D:E9:8D:A2:EB:99:99:83:2F:6A:D7:4C:4D:F5:49:47:6F:94:3F:61:50:7F:21:A3:87:25:0F:F9:0A:35:28:67:CC:DB:F1:40:07:25:C6:99:A5:1C:A5:CA:41:5A:18:F8:97:65:26:C6:E7:53:77:67:7F:94:18:88:FC:A3:A9:76:DC:A9:2D:C4:27:90:C4:F4:A2:0D:90:D2:90:4D:2F:82:79:1B:C8:C4:26:28:37:1E:C3:4C:BF:EC:EF:AC:9C:36:DB:CF:8D:E1:83:F9:FD:C9:B7:07:5D:20:EA:5F:A4:15:C4:9C:FF:DB:E2:83:76:0D:14:D4:58:59:03:14:C5:E8:67:DD:7A:70:4A:B3:52:B6:12:13:69:D3:84:D1:4C:50:A1:AC:91:2F:6C:D0:B7:5D:CB:5D:FA:17:4C:04:47:72:CA:D9:88:8B:77:DB:36:F2:E2:7D:DD:14:14:3E:F6:FE:40:59" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125025Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:102 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.019) 0:00:15.347 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:111 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.020) 0:00:15.368 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:120 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.020) 0:00:15.388 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:127 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.019) 0:00:15.408 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:138 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.022) 0:00:15.431 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:151 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.022) 0:00:15.454 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.047128", "end": "2024-06-01 12:50:29.471543", "rc": 0, "start": "2024-06-01 12:50:29.424415" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:160 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.299) 0:00:15.754 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.021) 0:00:15.775 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.008) 0:00:15.784 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.017) 0:00:15.801 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.018) 0:00:15.819 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 Saturday 01 June 2024 12:50:29 +0000 (0:00:00.017) 0:00:15.837 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:40 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.890) 0:00:16.728 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246226.485758, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4c0a6ed4884e499a7481d4d9e06fa1d9ca250617", "ctime": 1717246226.6257555, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6495432, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246226.482758, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 1040, "version": "2018226408", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:45 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.203) 0:00:16.932 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:51 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.035) 0:00:16.968 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:63 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.026) 0:00:16.994 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:69 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.022) 0:00:17.017 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246226.432759, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "740182e1fb20f4bed2228314b9e4c481d75aaae0", "ctime": 1717246226.6257555, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 4984669, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717246226.482758, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "3673851223", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:74 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.199) 0:00:17.217 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:80 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.020) 0:00:17.237 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 12:50:30 +0000 (0:00:00.023) 0:00:17.261 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "55:FC:E5:AA:97:03:47:FE:13:44:8F:5F:77:BB:65:39:B3:FC:7B:ED" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "75:87:B1:08:B4:C4:A1:70:9F:5E:5E:3A:E5:02:BF:B9:1B:32:D7:96:DD:DE:72:46:9D:FD:E6:3D:63:FF:F2:3D:5F:D1:69:C4:20:28:63:09:28:C6:6D:7E:F5:3F:0F:DF:8E:03:61:35:FE:B4:7D:A5:FC:60:AF:F4:2E:6D:66:DF:43:AD:FF:F0:73:05:79:D2:7C:DC:57:B6:B7:C5:E7:0E:47:D4:B0:EC:45:D8:7A:A7:EF:C0:48:7F:D3:06:38:DF:79:14:70:7A:1D:2A:E5:23:0E:73:0F:51:BF:77:AB:98:F3:BC:11:C2:E8:20:3C:92:87:4C:12:7E:AE:58:29:FC:F5:89:92:3E:25:92:96:DB:E9:A6:B2:BB:FB:FF:BF:C0:69:C4:74:E4:66:F1:A8:89:41:12:C5:ED:41:AE:AE:B1:2C:1A:91:23:60:1B:A3:FD:3D:61:41:6F:55:5D:16:61:9A:90:74:17:5B:95:83:EB:E5:8D:BF:D2:1B:75:84:82:5F:E3:01:E0:3A:6A:B4:80:32:54:E8:07:E8:3C:02:0E:26:C2:1C:29:1C:3C:1C:84:7D:27:5B:FF:10:01:70:0A:E7:7A:2B:C9:11:F0:78:34:81:30:C2:5C:1D:6B:FD:A6:CD:3F:DC:7A:03:8C:B8:44:14:05:00:EF:95:39:14:B8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125026Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:98 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.247) 0:00:17.508 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "55:FC:E5:AA:97:03:47:FE:13:44:8F:5F:77:BB:65:39:B3:FC:7B:ED" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "75:87:B1:08:B4:C4:A1:70:9F:5E:5E:3A:E5:02:BF:B9:1B:32:D7:96:DD:DE:72:46:9D:FD:E6:3D:63:FF:F2:3D:5F:D1:69:C4:20:28:63:09:28:C6:6D:7E:F5:3F:0F:DF:8E:03:61:35:FE:B4:7D:A5:FC:60:AF:F4:2E:6D:66:DF:43:AD:FF:F0:73:05:79:D2:7C:DC:57:B6:B7:C5:E7:0E:47:D4:B0:EC:45:D8:7A:A7:EF:C0:48:7F:D3:06:38:DF:79:14:70:7A:1D:2A:E5:23:0E:73:0F:51:BF:77:AB:98:F3:BC:11:C2:E8:20:3C:92:87:4C:12:7E:AE:58:29:FC:F5:89:92:3E:25:92:96:DB:E9:A6:B2:BB:FB:FF:BF:C0:69:C4:74:E4:66:F1:A8:89:41:12:C5:ED:41:AE:AE:B1:2C:1A:91:23:60:1B:A3:FD:3D:61:41:6F:55:5D:16:61:9A:90:74:17:5B:95:83:EB:E5:8D:BF:D2:1B:75:84:82:5F:E3:01:E0:3A:6A:B4:80:32:54:E8:07:E8:3C:02:0E:26:C2:1C:29:1C:3C:1C:84:7D:27:5B:FF:10:01:70:0A:E7:7A:2B:C9:11:F0:78:34:81:30:C2:5C:1D:6B:FD:A6:CD:3F:DC:7A:03:8C:B8:44:14:05:00:EF:95:39:14:B8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125026Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:102 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.019) 0:00:17.528 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:111 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.020) 0:00:17.549 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:120 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.019) 0:00:17.569 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:127 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.020) 0:00:17.589 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:138 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.024) 0:00:17.614 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:151 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.024) 0:00:17.639 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046518", "end": "2024-06-01 12:50:31.591585", "rc": 0, "start": "2024-06-01 12:50:31.545067" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:160 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.234) 0:00:17.873 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:67 Saturday 01 June 2024 12:50:31 +0000 (0:00:00.023) 0:00:17.897 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 01 June 2024 12:50:32 +0000 (0:00:00.480) 0:00:18.378 ********* included: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 01 June 2024 12:50:32 +0000 (0:00:00.012) 0:00:18.390 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 01 June 2024 12:50:32 +0000 (0:00:00.018) 0:00:18.409 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 01 June 2024 12:50:32 +0000 (0:00:00.017) 0:00:18.426 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 01 June 2024 12:50:32 +0000 (0:00:00.018) 0:00:18.445 ********* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 01 June 2024 12:50:32 +0000 (0:00:00.034) 0:00:18.479 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 01 June 2024 12:50:33 +0000 (0:00:00.884) 0:00:19.363 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 01 June 2024 12:50:33 +0000 (0:00:00.884) 0:00:20.248 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 01 June 2024 12:50:34 +0000 (0:00:00.206) 0:00:20.455 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 01 June 2024 12:50:34 +0000 (0:00:00.206) 0:00:20.661 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-06-01 12:50:25 UTC", "ActiveEnterTimestampMonotonic": "465986074", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target dbus.socket system.slice sysinit.target basic.target dbus-broker.service network.target systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-01 12:50:25 UTC", "AssertTimestampMonotonic": "465970796", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "902411000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-06-01 12:50:25 UTC", "ConditionTimestampMonotonic": "465970796", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4115", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8929", "ExecMainStartTimestamp": "Sat 2024-06-01 12:50:25 UTC", "ExecMainStartTimestampMonotonic": "465976710", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-06-01 12:50:25 UTC] ; stop_time=[n/a] ; pid=8929 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-06-01 12:50:25 UTC] ; stop_time=[n/a] ; pid=8929 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-06-01 12:50:25 UTC", "InactiveExitTimestampMonotonic": "465977021", "InvocationID": "309507aee26f419f8df32ead42b9e944", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8929", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4362240", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-06-01 12:50:25 UTC", "StateChangeTimestampMonotonic": "465986074", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22356", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 01 June 2024 12:50:34 +0000 (0:00:00.340) 0:00:21.001 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 01 June 2024 12:50:36 +0000 (0:00:01.560) 0:00:22.562 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.035) 0:00:22.597 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.019) 0:00:22.617 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.018) 0:00:22.635 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:85 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.021) 0:00:22.657 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:112 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.471) 0:00:23.128 ********* included: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.033) 0:00:23.162 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.009) 0:00:23.171 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.018) 0:00:23.190 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.018) 0:00:23.208 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 Saturday 01 June 2024 12:50:36 +0000 (0:00:00.017) 0:00:23.226 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:40 Saturday 01 June 2024 12:50:37 +0000 (0:00:00.896) 0:00:24.122 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246235.1746023, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f0355506728d948cf499e5140a538716da02d134", "ctime": 1717246235.2926002, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6495433, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717246235.1716025, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs_mode.crt", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "3092570425", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:45 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.207) 0:00:24.330 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:51 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.028) 0:00:24.358 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:63 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.023) 0:00:24.382 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:69 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.020) 0:00:24.403 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246235.1206033, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cce9e3a31d80f3a191fdea386b4992258d5ac7e7", "ctime": 1717246235.2926002, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4984670, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717246235.1716025, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "3539976842", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:74 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.205) 0:00:24.609 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:80 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.020) 0:00:24.629 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.021) 0:00:24.651 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "21:6E:D6:7D:F8:75:8B:18:39:71:55:2C:59:C7:25:A6:01:96:8A:E2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:0C:7E:9D:F9:98:2C:FF:4D:75:F9:37:7E:29:56:10:0A:2E:D8:79:40:59:64:AB:13:B6:D8:1E:A2:21:AC:11:36:4A:CD:E7:A3:D0:3E:C3:50:2E:5D:79:C2:DE:BE:FA:6B:9E:13:06:A9:A4:C3:02:A1:7E:91:20:97:C9:83:B6:7B:7F:32:C6:63:64:97:ED:77:6F:A9:DF:25:D0:BC:16:9B:56:87:F8:01:8A:A3:5D:F6:62:14:0A:DF:03:10:1E:95:AF:E9:82:53:B2:09:3A:14:2B:59:F9:89:EF:00:E9:A3:AD:80:E8:1F:D0:8F:DE:6D:29:87:76:3B:B9:C4:70:AA:F5:97:47:84:8B:73:BB:24:02:C5:2F:A7:35:AC:B4:51:BA:C9:13:93:C4:AD:3E:51:E1:8D:E3:8E:90:04:90:70:9E:F7:22:04:CE:C9:4E:2E:E7:C7:41:58:79:BB:AD:BE:42:10:0A:BF:AF:00:F1:3A:6A:A9:65:AF:34:12:7A:EE:0D:41:EF:46:E7:DD:D6:F6:74:02:EA:B4:C3:C2:F5:E6:AE:7B:B8:26:A7:FF:06:B8:24:0F:94:C9:21:32:C4:72:BA:35:B5:4D:23:6F:9C:BA:BC:3C:3E:CF:F4:D8:A8:E3:3B:D5:4E:C7:61:22:B6:0B:28:64:C4:A2:56:8B:66" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125035Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:98 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.236) 0:00:24.887 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "21:6E:D6:7D:F8:75:8B:18:39:71:55:2C:59:C7:25:A6:01:96:8A:E2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:0C:7E:9D:F9:98:2C:FF:4D:75:F9:37:7E:29:56:10:0A:2E:D8:79:40:59:64:AB:13:B6:D8:1E:A2:21:AC:11:36:4A:CD:E7:A3:D0:3E:C3:50:2E:5D:79:C2:DE:BE:FA:6B:9E:13:06:A9:A4:C3:02:A1:7E:91:20:97:C9:83:B6:7B:7F:32:C6:63:64:97:ED:77:6F:A9:DF:25:D0:BC:16:9B:56:87:F8:01:8A:A3:5D:F6:62:14:0A:DF:03:10:1E:95:AF:E9:82:53:B2:09:3A:14:2B:59:F9:89:EF:00:E9:A3:AD:80:E8:1F:D0:8F:DE:6D:29:87:76:3B:B9:C4:70:AA:F5:97:47:84:8B:73:BB:24:02:C5:2F:A7:35:AC:B4:51:BA:C9:13:93:C4:AD:3E:51:E1:8D:E3:8E:90:04:90:70:9E:F7:22:04:CE:C9:4E:2E:E7:C7:41:58:79:BB:AD:BE:42:10:0A:BF:AF:00:F1:3A:6A:A9:65:AF:34:12:7A:EE:0D:41:EF:46:E7:DD:D6:F6:74:02:EA:B4:C3:C2:F5:E6:AE:7B:B8:26:A7:FF:06:B8:24:0F:94:C9:21:32:C4:72:BA:35:B5:4D:23:6F:9C:BA:BC:3C:3E:CF:F4:D8:A8:E3:3B:D5:4E:C7:61:22:B6:0B:28:64:C4:A2:56:8B:66" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125035Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:102 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.018) 0:00:24.906 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:111 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.021) 0:00:24.928 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:120 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.019) 0:00:24.948 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:127 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.020) 0:00:24.969 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:138 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.022) 0:00:24.992 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:151 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.022) 0:00:25.014 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.050912", "end": "2024-06-01 12:50:38.970671", "rc": 0, "start": "2024-06-01 12:50:38.919759" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:160 Saturday 01 June 2024 12:50:38 +0000 (0:00:00.238) 0:00:25.253 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:2 Saturday 01 June 2024 12:50:39 +0000 (0:00:00.021) 0:00:25.274 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:9 Saturday 01 June 2024 12:50:39 +0000 (0:00:00.008) 0:00:25.283 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:14 Saturday 01 June 2024 12:50:39 +0000 (0:00:00.017) 0:00:25.300 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:18 Saturday 01 June 2024 12:50:39 +0000 (0:00:00.017) 0:00:25.318 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 Saturday 01 June 2024 12:50:39 +0000 (0:00:00.017) 0:00:25.335 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:40 Saturday 01 June 2024 12:50:39 +0000 (0:00:00.899) 0:00:26.235 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246236.149585, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6d4890d4d29dab09393810cf1a0bb3b456952e25", "ctime": 1717246236.146585, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6495435, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717246236.146585, "nlink": 1, "path": "/etc/pki/tls/certs/certid_mode.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1167801200", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:45 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.198) 0:00:26.433 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:51 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.019) 0:00:26.453 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:63 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.021) 0:00:26.475 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:69 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.019) 0:00:26.495 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717246236.0965858, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ea392f707f1d55a16c85dcc1dc1476bb2c949076", "ctime": 1717246236.146585, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4984671, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717246236.146585, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "4261659105", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:74 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.200) 0:00:26.695 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:80 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.019) 0:00:26.715 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:92 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.022) 0:00:26.738 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "4B:93:93:EA:D5:F3:3C:57:9F:23:D5:D7:FB:E8:A0:A3:57:6D:D0:31" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "60:A8:F5:FC:51:7D:8F:A8:21:00:4A:3A:86:63:F7:81:2A:D7:06:DA:6E:FD:2F:0D:91:EF:20:F1:45:66:0E:DA:DA:C6:BD:6F:A1:59:BC:BD:E8:F7:82:36:A6:19:71:E4:1C:53:F5:38:BF:23:3B:21:16:5C:33:C9:88:18:FF:FB:0A:1A:69:A6:54:48:BF:C6:81:99:FC:D2:71:81:07:D6:49:95:1E:8F:92:DB:45:D9:7A:DF:33:54:95:05:16:38:EB:05:9A:FF:43:59:92:6E:67:38:68:8B:66:45:FD:7D:6A:45:B9:B7:AC:46:DE:98:FB:55:82:E4:71:87:73:9A:27:F8:9B:2A:EF:B7:2E:B1:A4:A1:D0:D2:6B:69:5C:F3:55:A0:F5:1E:61:B3:BD:A6:BD:09:C1:B2:80:EE:09:F4:07:9D:13:F4:B8:8A:23:0C:6B:F3:8F:13:9A:8F:6F:39:B8:1D:C6:4C:E8:30:50:3E:E2:42:98:52:EE:A1:81:66:41:32:B4:97:1D:05:68:90:26:E3:85:D1:42:AD:D1:4C:DD:67:B6:BB:6A:0C:BC:DE:1A:0A:43:76:F7:A9:82:54:3A:FE:19:28:0B:0A:74:9E:05:4D:9B:01:21:25:F0:A1:35:46:B6:3F:E1:DE:D4:F7:81:23:74:9F:86:FE:91:9A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125036Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:98 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.242) 0:00:26.980 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "7F:73:A5:D4:89:A9:6B:D5:64:F3:EB:76:F5:6B:9C:56:6A:BB:FD:48" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "4B:93:93:EA:D5:F3:3C:57:9F:23:D5:D7:FB:E8:A0:A3:57:6D:D0:31" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "60:A8:F5:FC:51:7D:8F:A8:21:00:4A:3A:86:63:F7:81:2A:D7:06:DA:6E:FD:2F:0D:91:EF:20:F1:45:66:0E:DA:DA:C6:BD:6F:A1:59:BC:BD:E8:F7:82:36:A6:19:71:E4:1C:53:F5:38:BF:23:3B:21:16:5C:33:C9:88:18:FF:FB:0A:1A:69:A6:54:48:BF:C6:81:99:FC:D2:71:81:07:D6:49:95:1E:8F:92:DB:45:D9:7A:DF:33:54:95:05:16:38:EB:05:9A:FF:43:59:92:6E:67:38:68:8B:66:45:FD:7D:6A:45:B9:B7:AC:46:DE:98:FB:55:82:E4:71:87:73:9A:27:F8:9B:2A:EF:B7:2E:B1:A4:A1:D0:D2:6B:69:5C:F3:55:A0:F5:1E:61:B3:BD:A6:BD:09:C1:B2:80:EE:09:F4:07:9D:13:F4:B8:8A:23:0C:6B:F3:8F:13:9A:8F:6F:39:B8:1D:C6:4C:E8:30:50:3E:E2:42:98:52:EE:A1:81:66:41:32:B4:97:1D:05:68:90:26:E3:85:D1:42:AD:D1:4C:DD:67:B6:BB:6A:0C:BC:DE:1A:0A:43:76:F7:A9:82:54:3A:FE:19:28:0B:0A:74:9E:05:4D:9B:01:21:25:F0:A1:35:46:B6:3F:E1:DE:D4:F7:81:23:74:9F:86:FE:91:9A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250601125025Z", "not_valid_before": "20240601125036Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:102 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.019) 0:00:27.000 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:111 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.023) 0:00:27.023 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:120 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.021) 0:00:27.045 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:127 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.021) 0:00:27.066 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:138 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.025) 0:00:27.091 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:151 Saturday 01 June 2024 12:50:40 +0000 (0:00:00.024) 0:00:27.116 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.050761", "end": "2024-06-01 12:50:41.073231", "rc": 0, "start": "2024-06-01 12:50:41.022470" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:160 Saturday 01 June 2024 12:50:41 +0000 (0:00:00.240) 0:00:27.356 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 01 June 2024 12:50:41 +0000 (0:00:00.020) 0:00:27.377 ********* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 5.04s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 2.79s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.56s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.39s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.90s /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.89s /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider packages are installed --- 0.88s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.88s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.77s /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:2 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.71s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Ensure user exists ------------------------------------------------------ 0.60s /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:5 --------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:32 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.47s /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:85 -------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.34s /WORKDIR/git-weekly-cihfj8i9c6/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Ensure group "somegroup" exists ----------------------------------------- 0.33s /WORKDIR/git-weekly-cihfj8i9c6/tests/tests_fs_attrs.yml:9 --------------------- Parse certificate ------------------------------------------------------- 0.31s /WORKDIR/git-weekly-cihfj8i9c6/tests/tasks/assert_certificate_parameters.yml:92 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---