ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmptdk3_2m8 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_many_self_signed.yml ******************************************* 2 plays in /tmp/tmpoydf_gbg/tests/tests_many_self_signed.yml PLAY [Issue many self-signed certificates] ************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpoydf_gbg/tests/tests_many_self_signed.yml:2 Wednesday 06 July 2022 23:25:18 +0000 (0:00:00.013) 0:00:00.013 ******** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:25:19 +0000 (0:00:01.077) 0:00:01.090 ******** included: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:25:19 +0000 (0:00:00.026) 0:00:01.116 ******** ok: [/cache/fedora-35.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 23:25:20 +0000 (0:00:00.535) 0:00:01.652 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:25:20 +0000 (0:00:00.040) 0:00:01.693 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:25:22 +0000 (0:00:02.017) 0:00:03.711 ******** ok: [/cache/fedora-35.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:25:24 +0000 (0:00:01.868) 0:00:05.579 ******** ok: [/cache/fedora-35.qcow2.snap] => (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": 0, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:25:24 +0000 (0:00:00.554) 0:00:06.133 ******** ok: [/cache/fedora-35.qcow2.snap] => (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": 0, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:25:25 +0000 (0:00:00.426) 0:00:06.560 ******** ok: [/cache/fedora-35.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 23:19:06 UTC", "ActiveEnterTimestampMonotonic": "209043931", "ActiveExitTimestamp": "n/a", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket syslog.target dbus.socket sysinit.target basic.target network.target dbus-broker.service system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 23:19:06 UTC", "AssertTimestampMonotonic": "209030007", "Before": "multi-user.target 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": "37675605000", "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": "Wed 2022-07-06 23:19:06 UTC", "ConditionTimestampMonotonic": "209030006", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "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", "ExecMainExitTimestamp": "n/a", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "16686", "ExecMainStartTimestamp": "Wed 2022-07-06 23:19:06 UTC", "ExecMainStartTimestampMonotonic": "209031487", "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 }", "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", "InactiveEnterTimestamp": "n/a", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 23:19:06 UTC", "InactiveExitTimestampMonotonic": "209031810", "InvocationID": "8677e115309340cdb638ea61a9a207e7", "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": "15523", "LimitNPROCSoft": "15523", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "15523", "LimitSIGPENDINGSoft": "15523", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "16686", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "2781184", "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", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "Wed 2022-07-06 23:22:58 UTC", "StateChangeTimestampMonotonic": "440655177", "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": "4656", "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", "WatchdogTimestamp": "n/a", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 23:25:26 +0000 (0:00:00.794) 0:00:07.355 ******** changed: [/cache/fedora-35.qcow2.snap] => (item={'name': 'mycert_many_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_many_self_signed" } } MSG: Certificate requested (new). changed: [/cache/fedora-35.qcow2.snap] => (item={'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } } MSG: Certificate requested (new). changed: [/cache/fedora-35.qcow2.snap] => (item={'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } } MSG: Certificate requested (new). META: role_complete for /cache/fedora-35.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpoydf_gbg/tests/tests_many_self_signed.yml:18 Wednesday 06 July 2022 23:25:29 +0000 (0:00:03.002) 0:00:10.357 ******** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpoydf_gbg/tests/tests_many_self_signed.yml:50 Wednesday 06 July 2022 23:25:29 +0000 (0:00:00.808) 0:00:11.166 ******** included: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml for /cache/fedora-35.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_many_self_signed.crt', 'key_path': '/etc/pki/tls/private/mycert_many_self_signed.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) included: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml for /cache/fedora-35.qcow2.snap => (item={'path': '/etc/pki/tls/certs/other-cert.crt', 'key_path': '/etc/pki/tls/private/other-cert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.org'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.org'}]}) included: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml for /cache/fedora-35.qcow2.snap => (item={'path': '/etc/pki/tls/certs/another-cert.crt', 'key_path': '/etc/pki/tls/private/another-cert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.net'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.net'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:25:29 +0000 (0:00:00.055) 0:00:11.222 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:25:29 +0000 (0:00:00.030) 0:00:11.252 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:25:31 +0000 (0:00:01.968) 0:00:13.221 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:25:33 +0000 (0:00:01.165) 0:00:14.387 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:25:33 +0000 (0:00:00.911) 0:00:15.298 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149926.3329804, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "24086980835b2fd1c4dfafc112cd32ffc566d111", "ctime": 1657149926.3289804, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59898, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149926.3289804, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_many_self_signed.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "69", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:25:34 +0000 (0:00:00.523) 0:00:15.822 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:25:34 +0000 (0:00:00.031) 0:00:15.853 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 23:25:34 +0000 (0:00:00.045) 0:00:15.899 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 23:25:34 +0000 (0:00:00.068) 0:00:15.968 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149926.2799804, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "107d5c5f3b4f21fdef4a8cc8a8c1d23d93deb931", "ctime": 1657149926.3289804, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59885, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149926.3289804, "nlink": 1, "path": "/etc/pki/tls/private/mycert_many_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "69", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.448) 0:00:16.417 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.034) 0:00:16.451 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.048) 0:00:16.500 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_many_self_signed.crt" ], "delta": "0:00:00.202065", "end": "2022-07-06 23:25:35.205202", "rc": 0, "start": "2022-07-06 23:25:35.003137" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "C4:C4:02:28:42:73:C9:95:25:8A:E6:28:51:1B:61:23:40:3C:8F:4C", "critical": false }, "authorityKeyIdentifier": { "value": "08:11:D3:0D:CD:47:EB:C7:01:58:AE:B3:12:D9:58:5D:B1:CF:03:7E", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "86:1E:5F:78:79:28:46:EA:4F:07:CA:36:8D:A2:33:B0:7B:74:EE:0D:64:91:0F:47:27:72:C4:AE:CC:58:08:FD:87:B3:1A:62:68:1F:24:77:B3:F4:D0:78:E0:30:6D:39:78:4F:14:55:4F:1B:91:C5:E5:7D:D2:1A:CD:AB:28:1C:E5:49:20:1F:30:09:F4:F1:66:9A:D3:54:DF:CD:3A:1C:8C:80:95:65:94:BE:E3:EF:2E:18:1B:61:BD:DF:B8:72:38:B4:48:A5:7A:88:51:7A:3B:A0:9A:BA:30:6F:2E:77:2E:85:4B:42:DF:2F:07:FB:C1:A2:12:3C:3E:AB:FA:4B:56:D6:79:D6:BE:51:4A:22:CD:C2:11:B9:D0:37:75:30:36:25:D4:07:5A:3B:63:99:58:95:1D:26:12:89:4B:46:5C:74:55:7D:27:5B:95:30:0F:53:09:76:15:A7:F2:C3:CB:C2:F4:5B:B7:F8:77:4B:4B:3B:FF:92:F7:A0:0A:40:F7:E5:D1:FE:AA:64:AE:B6:99:56:13:D7:C5:5A:F2:AD:82:5C:CB:64:9A:62:21:0D:E9:4C:D9:4F:49:D7:9E:10:39:45:CF:45:74:FE:ED:5C:62:CE:37:CE:88:25:42:87:99:31:FD:A3:D5:E8:42:80:AA:8E:C0:6A:37:0A:4B:DB" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:19:06", "not_valid_before": "2022-07-06 23:25:26" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.691) 0:00:17.192 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "08:11:D3:0D:CD:47:EB:C7:01:58:AE:B3:12:D9:58:5D:B1:CF:03:7E" }, "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": "C4:C4:02:28:42:73:C9:95:25:8A:E6:28:51:1B:61:23:40:3C:8F:4C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "86:1E:5F:78:79:28:46:EA:4F:07:CA:36:8D:A2:33:B0:7B:74:EE:0D:64:91:0F:47:27:72:C4:AE:CC:58:08:FD:87:B3:1A:62:68:1F:24:77:B3:F4:D0:78:E0:30:6D:39:78:4F:14:55:4F:1B:91:C5:E5:7D:D2:1A:CD:AB:28:1C:E5:49:20:1F:30:09:F4:F1:66:9A:D3:54:DF:CD:3A:1C:8C:80:95:65:94:BE:E3:EF:2E:18:1B:61:BD:DF:B8:72:38:B4:48:A5:7A:88:51:7A:3B:A0:9A:BA:30:6F:2E:77:2E:85:4B:42:DF:2F:07:FB:C1:A2:12:3C:3E:AB:FA:4B:56:D6:79:D6:BE:51:4A:22:CD:C2:11:B9:D0:37:75:30:36:25:D4:07:5A:3B:63:99:58:95:1D:26:12:89:4B:46:5C:74:55:7D:27:5B:95:30:0F:53:09:76:15:A7:F2:C3:CB:C2:F4:5B:B7:F8:77:4B:4B:3B:FF:92:F7:A0:0A:40:F7:E5:D1:FE:AA:64:AE:B6:99:56:13:D7:C5:5A:F2:AD:82:5C:CB:64:9A:62:21:0D:E9:4C:D9:4F:49:D7:9E:10:39:45:CF:45:74:FE:ED:5C:62:CE:37:CE:88:25:42:87:99:31:FD:A3:D5:E8:42:80:AA:8E:C0:6A:37:0A:4B:DB" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 23:19:06", "not_valid_before": "2022-07-06 23:25:26" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.044) 0:00:17.236 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.046) 0:00:17.283 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.033) 0:00:17.317 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 23:25:36 +0000 (0:00:00.044) 0:00:17.361 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 23:25:36 +0000 (0:00:00.054) 0:00:17.416 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:25:36 +0000 (0:00:00.055) 0:00:17.472 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_many_self_signed.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.059546", "end": "2022-07-06 23:25:35.959985", "rc": 0, "start": "2022-07-06 23:25:35.900439" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 23:25:36 +0000 (0:00:00.474) 0:00:17.946 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:25:36 +0000 (0:00:00.046) 0:00:17.992 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:25:36 +0000 (0:00:00.029) 0:00:18.022 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:25:38 +0000 (0:00:01.935) 0:00:19.957 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:25:39 +0000 (0:00:01.140) 0:00:21.098 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:25:40 +0000 (0:00:00.877) 0:00:21.975 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149927.2519803, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bba4bea7afa5d09cffbe1501e4607fbf71006d6e", "ctime": 1657149927.2489803, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59933, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149927.2489803, "nlink": 1, "path": "/etc/pki/tls/certs/other-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "69", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.407) 0:00:22.383 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.034) 0:00:22.417 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.046) 0:00:22.464 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.045) 0:00:22.510 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149927.2019804, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6efc72ce35fc4738f26ee3c22566bff254befc70", "ctime": 1657149927.2489803, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59920, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149927.2489803, "nlink": 1, "path": "/etc/pki/tls/private/other-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "69", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.393) 0:00:22.903 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.032) 0:00:22.935 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.046) 0:00:22.981 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/other-cert.crt" ], "delta": "0:00:00.208744", "end": "2022-07-06 23:25:41.596000", "rc": 0, "start": "2022-07-06 23:25:41.387256" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.org" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "C1:F4:C1:36:76:98:6D:82:7B:39:D5:E1:6F:F7:B0:F2:8E:33:72:21", "critical": false }, "authorityKeyIdentifier": { "value": "08:11:D3:0D:CD:47:EB:C7:01:58:AE:B3:12:D9:58:5D:B1:CF:03:7E", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "81:58:4F:C2:60:B2:A9:0A:24:28:E1:79:B2:D9:7B:E3:6E:54:23:FE:F3:3A:20:01:BA:A6:AB:5B:30:E0:EA:EF:05:CF:9F:7F:DE:14:97:2B:B1:2A:C0:E8:C2:51:01:E6:86:88:E8:E9:A4:0C:50:41:AD:38:19:53:93:85:1F:5D:23:44:AC:C0:45:9A:AD:24:7E:15:E0:09:FE:D1:85:9E:C0:5D:5E:39:51:3B:98:95:70:4C:FB:16:24:CE:B2:4B:72:32:98:F6:50:95:0A:2F:78:5E:3F:5F:74:52:25:AD:53:E0:E2:02:91:81:91:AD:63:5C:D3:29:4C:B8:B2:87:81:BD:0B:9B:DF:57:E2:03:A5:90:B2:6A:CB:F6:30:39:4E:89:2A:28:EA:CE:A0:88:EF:D9:DF:CE:45:F6:84:15:0D:C8:50:3C:7A:F1:FB:99:FB:4B:02:48:13:5E:7F:32:DD:9D:E3:0A:E8:11:26:6C:F2:A5:C5:92:73:87:41:BF:46:1A:AB:80:F4:6C:C8:9C:0B:A7:C3:F2:5F:9E:7A:72:3F:D4:33:57:C5:32:72:21:DF:9C:99:B0:99:E3:AF:0B:DD:5E:3C:66:C3:02:6E:71:80:47:3F:58:11:F6:1B:BD:EC:79:99:0F:AE:DD:FF:11:F2:51:FF:23:BF:15:17:C3" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:19:06", "not_valid_before": "2022-07-06 23:25:27" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.599) 0:00:23.581 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "08:11:D3:0D:CD:47:EB:C7:01:58:AE:B3:12:D9:58:5D:B1:CF:03:7E" }, "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.org" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "C1:F4:C1:36:76:98:6D:82:7B:39:D5:E1:6F:F7:B0:F2:8E:33:72:21" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "81:58:4F:C2:60:B2:A9:0A:24:28:E1:79:B2:D9:7B:E3:6E:54:23:FE:F3:3A:20:01:BA:A6:AB:5B:30:E0:EA:EF:05:CF:9F:7F:DE:14:97:2B:B1:2A:C0:E8:C2:51:01:E6:86:88:E8:E9:A4:0C:50:41:AD:38:19:53:93:85:1F:5D:23:44:AC:C0:45:9A:AD:24:7E:15:E0:09:FE:D1:85:9E:C0:5D:5E:39:51:3B:98:95:70:4C:FB:16:24:CE:B2:4B:72:32:98:F6:50:95:0A:2F:78:5E:3F:5F:74:52:25:AD:53:E0:E2:02:91:81:91:AD:63:5C:D3:29:4C:B8:B2:87:81:BD:0B:9B:DF:57:E2:03:A5:90:B2:6A:CB:F6:30:39:4E:89:2A:28:EA:CE:A0:88:EF:D9:DF:CE:45:F6:84:15:0D:C8:50:3C:7A:F1:FB:99:FB:4B:02:48:13:5E:7F:32:DD:9D:E3:0A:E8:11:26:6C:F2:A5:C5:92:73:87:41:BF:46:1A:AB:80:F4:6C:C8:9C:0B:A7:C3:F2:5F:9E:7A:72:3F:D4:33:57:C5:32:72:21:DF:9C:99:B0:99:E3:AF:0B:DD:5E:3C:66:C3:02:6E:71:80:47:3F:58:11:F6:1B:BD:EC:79:99:0F:AE:DD:FF:11:F2:51:FF:23:BF:15:17:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "2023-07-06 23:19:06", "not_valid_before": "2022-07-06 23:25:27" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.044) 0:00:23.626 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.045) 0:00:23.671 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.034) 0:00:23.706 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.047) 0:00:23.754 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.049) 0:00:23.804 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.043) 0:00:23.847 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/other-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.059300", "end": "2022-07-06 23:25:42.322372", "rc": 0, "start": "2022-07-06 23:25:42.263072" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.461) 0:00:24.308 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.047) 0:00:24.355 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.028) 0:00:24.384 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:25:44 +0000 (0:00:01.874) 0:00:26.259 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:25:45 +0000 (0:00:01.015) 0:00:27.274 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:25:46 +0000 (0:00:00.965) 0:00:28.239 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149928.2759802, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0b39403ea7fcc1d57d81bcf0c298e80a270e3ea3", "ctime": 1657149928.2719803, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59968, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149928.2719803, "nlink": 1, "path": "/etc/pki/tls/certs/another-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:25:47 +0000 (0:00:00.448) 0:00:28.688 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:25:47 +0000 (0:00:00.033) 0:00:28.721 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 23:25:47 +0000 (0:00:00.082) 0:00:28.804 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 23:25:47 +0000 (0:00:00.073) 0:00:28.877 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149928.2229803, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "440e180cfcde61edb3b7a9c6eaeec3c0bcebabf6", "ctime": 1657149928.2719803, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59955, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149928.2719803, "nlink": 1, "path": "/etc/pki/tls/private/another-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 23:25:47 +0000 (0:00:00.398) 0:00:29.276 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 23:25:47 +0000 (0:00:00.033) 0:00:29.310 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 23:25:48 +0000 (0:00:00.080) 0:00:29.390 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/another-cert.crt" ], "delta": "0:00:00.205340", "end": "2022-07-06 23:25:48.040878", "rc": 0, "start": "2022-07-06 23:25:47.835538" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.net" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "18:98:8C:92:85:C1:9F:18:09:FE:C0:4F:63:3A:17:2F:57:70:1E:69", "critical": false }, "authorityKeyIdentifier": { "value": "08:11:D3:0D:CD:47:EB:C7:01:58:AE:B3:12:D9:58:5D:B1:CF:03:7E", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "12:CF:47:A8:C2:BC:E3:6E:6D:A1:35:C9:0F:1A:CB:80:E0:4C:98:AA:8D:25:5C:18:96:9B:7E:33:3C:AF:83:14:92:29:F8:F0:19:5E:AE:D2:93:65:33:69:17:A5:65:16:74:98:AA:F2:DD:81:49:B0:8F:44:AA:56:F4:2F:C6:C2:41:AF:4B:5A:02:D4:BB:E3:AD:00:6B:B5:74:CA:A4:11:5B:9B:E8:24:3D:97:D2:D2:91:65:66:6D:59:10:F5:93:09:F9:9C:E0:F0:5E:29:1D:70:C8:38:D7:F3:99:FD:2E:B1:50:8B:FD:31:49:76:7C:ED:76:FA:24:6A:8C:C1:8D:30:94:40:E1:27:A3:B8:FC:FE:01:EC:78:A0:4A:1D:86:B3:A6:2E:D7:A9:D5:2C:CB:09:1F:0C:E5:4C:E9:48:90:1D:4B:FB:0B:2E:3E:97:8D:E8:20:46:F2:8B:11:9D:BD:47:C1:94:9D:5F:7F:71:0F:AA:A0:D0:77:B7:42:C4:52:A2:6E:AD:8F:CB:C3:E4:3D:47:04:2D:D3:B9:E9:F6:65:53:81:3B:CA:6F:8D:C9:0C:DF:0C:59:05:9E:C7:21:3B:85:28:62:6A:2F:8B:DE:A0:70:20:B5:5B:9F:EE:52:A5:90:AF:A7:9B:63:5B:0F:22:F2:82:1D:F8:93:D9:BF:62" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:19:06", "not_valid_before": "2022-07-06 23:25:28" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:25:48 +0000 (0:00:00.640) 0:00:30.030 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "08:11:D3:0D:CD:47:EB:C7:01:58:AE:B3:12:D9:58:5D:B1:CF:03:7E" }, "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.net" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "18:98:8C:92:85:C1:9F:18:09:FE:C0:4F:63:3A:17:2F:57:70:1E:69" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "12:CF:47:A8:C2:BC:E3:6E:6D:A1:35:C9:0F:1A:CB:80:E0:4C:98:AA:8D:25:5C:18:96:9B:7E:33:3C:AF:83:14:92:29:F8:F0:19:5E:AE:D2:93:65:33:69:17:A5:65:16:74:98:AA:F2:DD:81:49:B0:8F:44:AA:56:F4:2F:C6:C2:41:AF:4B:5A:02:D4:BB:E3:AD:00:6B:B5:74:CA:A4:11:5B:9B:E8:24:3D:97:D2:D2:91:65:66:6D:59:10:F5:93:09:F9:9C:E0:F0:5E:29:1D:70:C8:38:D7:F3:99:FD:2E:B1:50:8B:FD:31:49:76:7C:ED:76:FA:24:6A:8C:C1:8D:30:94:40:E1:27:A3:B8:FC:FE:01:EC:78:A0:4A:1D:86:B3:A6:2E:D7:A9:D5:2C:CB:09:1F:0C:E5:4C:E9:48:90:1D:4B:FB:0B:2E:3E:97:8D:E8:20:46:F2:8B:11:9D:BD:47:C1:94:9D:5F:7F:71:0F:AA:A0:D0:77:B7:42:C4:52:A2:6E:AD:8F:CB:C3:E4:3D:47:04:2D:D3:B9:E9:F6:65:53:81:3B:CA:6F:8D:C9:0C:DF:0C:59:05:9E:C7:21:3B:85:28:62:6A:2F:8B:DE:A0:70:20:B5:5B:9F:EE:52:A5:90:AF:A7:9B:63:5B:0F:22:F2:82:1D:F8:93:D9:BF:62" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "2023-07-06 23:19:06", "not_valid_before": "2022-07-06 23:25:28" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 23:25:48 +0000 (0:00:00.081) 0:00:30.112 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 23:25:48 +0000 (0:00:00.076) 0:00:30.188 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 23:25:48 +0000 (0:00:00.061) 0:00:30.250 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 23:25:48 +0000 (0:00:00.073) 0:00:30.323 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 23:25:49 +0000 (0:00:00.073) 0:00:30.396 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:25:49 +0000 (0:00:00.077) 0:00:30.474 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/another-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.059679", "end": "2022-07-06 23:25:48.977063", "rc": 0, "start": "2022-07-06 23:25:48.917384" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 23:25:49 +0000 (0:00:00.485) 0:00:30.959 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=73 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 23:25:49 +0000 (0:00:00.055) 0:00:31.015 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate requests ------------ 3.00s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 2.02s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- Ensure python3 is installed --------------------------------------------- 1.97s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:6 -------------- Ensure python3 is installed --------------------------------------------- 1.94s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:6 -------------- Ensure python3 is installed --------------------------------------------- 1.87s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:6 -------------- linux-system-roles.certificate : Ensure provider packages are installed --- 1.87s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Install the package, force upgrade -------------------------------------- 1.17s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:11 ------------- Install the package, force upgrade -------------------------------------- 1.14s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:11 ------------- Gathering Facts --------------------------------------------------------- 1.08s /tmp/tmpoydf_gbg/tests/tests_many_self_signed.yml:2 --------------------------- Install the package, force upgrade -------------------------------------- 1.02s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:11 ------------- Install certreader ------------------------------------------------------ 0.97s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:18 ------------- Install certreader ------------------------------------------------------ 0.91s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:18 ------------- Install certreader ------------------------------------------------------ 0.88s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:18 ------------- Gathering Facts --------------------------------------------------------- 0.81s /tmp/tmpoydf_gbg/tests/tests_many_self_signed.yml:18 -------------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.79s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Parse certificate ------------------------------------------------------- 0.69s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:78 ------------- Parse certificate ------------------------------------------------------- 0.64s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:78 ------------- Parse certificate ------------------------------------------------------- 0.60s /tmp/tmpoydf_gbg/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.55s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.54s /tmp/tmpoydf_gbg/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmptdk3_2m8 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_many_self_signed.yml ******************************************* 2 plays in /tmp/tmpswp52mgx/tests/certificate/tests_many_self_signed.yml PLAY [Issue many self-signed certificates] ************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tests_many_self_signed.yml:2 Wednesday 06 July 2022 23:37:48 +0000 (0:00:00.015) 0:00:00.015 ******** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:37:49 +0000 (0:00:01.127) 0:00:01.143 ******** included: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/fedora-35.qcow2.snap TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:37:50 +0000 (0:00:00.029) 0:00:01.173 ******** ok: [/cache/fedora-35.qcow2.snap] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 23:37:50 +0000 (0:00:00.597) 0:00:01.770 ******** skipping: [/cache/fedora-35.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-35.qcow2.snap] => (item=Fedora_35.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_35.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:37:50 +0000 (0:00:00.042) 0:00:01.812 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:37:52 +0000 (0:00:02.158) 0:00:03.971 ******** ok: [/cache/fedora-35.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:37:54 +0000 (0:00:01.888) 0:00:05.860 ******** ok: [/cache/fedora-35.qcow2.snap] => (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": 0, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:37:55 +0000 (0:00:00.557) 0:00:06.417 ******** ok: [/cache/fedora-35.qcow2.snap] => (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": 0, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:37:55 +0000 (0:00:00.448) 0:00:06.865 ******** ok: [/cache/fedora-35.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 23:31:35 UTC", "ActiveEnterTimestampMonotonic": "204425251", "ActiveExitTimestamp": "n/a", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service system.slice basic.target systemd-journald.socket dbus.socket network.target syslog.target sysinit.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 23:31:35 UTC", "AssertTimestampMonotonic": "204413518", "Before": "multi-user.target 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": "38719296000", "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": "Wed 2022-07-06 23:31:35 UTC", "ConditionTimestampMonotonic": "204413516", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "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", "ExecMainExitTimestamp": "n/a", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "16664", "ExecMainStartTimestamp": "Wed 2022-07-06 23:31:35 UTC", "ExecMainStartTimestampMonotonic": "204414889", "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 }", "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", "InactiveEnterTimestamp": "n/a", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 23:31:35 UTC", "InactiveExitTimestampMonotonic": "204415310", "InvocationID": "b6c03241252443a3b030f2fc85b5c108", "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": "15523", "LimitNPROCSoft": "15523", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "15523", "LimitSIGPENDINGSoft": "15523", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "16664", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "2772992", "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", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "Wed 2022-07-06 23:35:25 UTC", "StateChangeTimestampMonotonic": "433942226", "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": "4656", "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", "WatchdogTimestamp": "n/a", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 23:37:56 +0000 (0:00:00.833) 0:00:07.698 ******** changed: [/cache/fedora-35.qcow2.snap] => (item={'name': 'mycert_many_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_many_self_signed" } } MSG: Certificate requested (new). changed: [/cache/fedora-35.qcow2.snap] => (item={'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } } MSG: Certificate requested (new). changed: [/cache/fedora-35.qcow2.snap] => (item={'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } } MSG: Certificate requested (new). META: role_complete for /cache/fedora-35.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tests_many_self_signed.yml:18 Wednesday 06 July 2022 23:37:59 +0000 (0:00:02.627) 0:00:10.325 ******** ok: [/cache/fedora-35.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tests_many_self_signed.yml:50 Wednesday 06 July 2022 23:37:59 +0000 (0:00:00.789) 0:00:11.114 ******** included: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/fedora-35.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_many_self_signed.crt', 'key_path': '/etc/pki/tls/private/mycert_many_self_signed.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) included: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/fedora-35.qcow2.snap => (item={'path': '/etc/pki/tls/certs/other-cert.crt', 'key_path': '/etc/pki/tls/private/other-cert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.org'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.org'}]}) included: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/fedora-35.qcow2.snap => (item={'path': '/etc/pki/tls/certs/another-cert.crt', 'key_path': '/etc/pki/tls/private/another-cert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.net'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.net'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:38:00 +0000 (0:00:00.057) 0:00:11.172 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:38:00 +0000 (0:00:00.071) 0:00:11.244 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:38:02 +0000 (0:00:01.906) 0:00:13.150 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:38:03 +0000 (0:00:01.151) 0:00:14.301 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:38:04 +0000 (0:00:00.889) 0:00:15.191 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150676.4006906, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e2f77d64fb537433ce7895eeab972702fa95e54e", "ctime": 1657150676.3966906, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59895, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150676.3966906, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_many_self_signed.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:38:04 +0000 (0:00:00.514) 0:00:15.705 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:38:04 +0000 (0:00:00.065) 0:00:15.770 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 23:38:04 +0000 (0:00:00.095) 0:00:15.866 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 23:38:04 +0000 (0:00:00.046) 0:00:15.913 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150676.3496907, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "abcbdd615245b7e1bf547ad737f1795dabeff47b", "ctime": 1657150676.3966906, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59882, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150676.3966906, "nlink": 1, "path": "/etc/pki/tls/private/mycert_many_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 23:38:05 +0000 (0:00:00.419) 0:00:16.332 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 23:38:05 +0000 (0:00:00.034) 0:00:16.367 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 23:38:05 +0000 (0:00:00.049) 0:00:16.416 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_many_self_signed.crt" ], "delta": "0:00:00.200351", "end": "2022-07-06 23:38:04.987102", "rc": 0, "start": "2022-07-06 23:38:04.786751" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "06:F2:83:AE:D3:51:4F:B3:F8:DA:22:2B:8B:B7:23:7A:FB:9C:74:EB", "critical": false }, "authorityKeyIdentifier": { "value": "4C:FC:1F:4C:D8:65:29:92:2C:7F:D8:EA:F1:BF:F7:B0:DC:83:73:1F", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "71:10:8B:B9:9D:F3:34:7A:02:BD:E7:38:25:1A:37:75:00:53:2D:18:42:94:F6:85:37:DB:3A:83:C2:CA:BC:82:35:46:4F:A0:3A:A5:D3:95:E3:5F:B1:A5:9D:74:65:69:5A:D9:67:50:DA:40:49:BF:E2:0E:F9:B6:F1:33:8C:9B:99:3C:C8:31:BE:DA:D7:63:F7:6E:5D:71:2F:64:CB:F7:B4:E8:96:79:4C:C7:33:48:D5:FC:59:76:62:0C:CB:74:99:B2:B9:57:16:51:71:DD:AF:D5:7B:36:57:20:CA:C4:1B:17:5F:99:0F:BD:37:DC:A0:D8:34:F2:CD:A2:62:C7:09:19:BF:43:C4:4F:74:1F:3E:0F:90:3E:D4:64:3A:48:04:C1:05:F4:3A:87:46:14:D1:65:DE:0B:B9:89:26:B5:BA:2A:88:70:CA:D9:29:75:1F:02:75:0F:50:AC:DD:9E:BC:49:1F:D9:28:DA:6C:DF:75:2B:AA:3F:A3:FA:F5:2D:8D:9B:A3:73:75:65:20:8F:1B:49:AC:A4:41:8E:DB:36:9A:28:81:D4:99:C3:F6:B1:AC:04:5F:A0:0E:B6:AF:ED:36:62:4C:A6:C3:B4:35:C3:7B:A6:4E:3E:77:44:DD:4B:0D:17:F7:33:9B:E1:B7:55:92:11:3E:38:12:EF:7F:EC" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:31:36", "not_valid_before": "2022-07-06 23:37:56" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 23:38:05 +0000 (0:00:00.691) 0:00:17.108 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4C:FC:1F:4C:D8:65:29:92:2C:7F:D8:EA:F1:BF:F7:B0:DC:83:73:1F" }, "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": "06:F2:83:AE:D3:51:4F:B3:F8:DA:22:2B:8B:B7:23:7A:FB:9C:74:EB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "71:10:8B:B9:9D:F3:34:7A:02:BD:E7:38:25:1A:37:75:00:53:2D:18:42:94:F6:85:37:DB:3A:83:C2:CA:BC:82:35:46:4F:A0:3A:A5:D3:95:E3:5F:B1:A5:9D:74:65:69:5A:D9:67:50:DA:40:49:BF:E2:0E:F9:B6:F1:33:8C:9B:99:3C:C8:31:BE:DA:D7:63:F7:6E:5D:71:2F:64:CB:F7:B4:E8:96:79:4C:C7:33:48:D5:FC:59:76:62:0C:CB:74:99:B2:B9:57:16:51:71:DD:AF:D5:7B:36:57:20:CA:C4:1B:17:5F:99:0F:BD:37:DC:A0:D8:34:F2:CD:A2:62:C7:09:19:BF:43:C4:4F:74:1F:3E:0F:90:3E:D4:64:3A:48:04:C1:05:F4:3A:87:46:14:D1:65:DE:0B:B9:89:26:B5:BA:2A:88:70:CA:D9:29:75:1F:02:75:0F:50:AC:DD:9E:BC:49:1F:D9:28:DA:6C:DF:75:2B:AA:3F:A3:FA:F5:2D:8D:9B:A3:73:75:65:20:8F:1B:49:AC:A4:41:8E:DB:36:9A:28:81:D4:99:C3:F6:B1:AC:04:5F:A0:0E:B6:AF:ED:36:62:4C:A6:C3:B4:35:C3:7B:A6:4E:3E:77:44:DD:4B:0D:17:F7:33:9B:E1:B7:55:92:11:3E:38:12:EF:7F:EC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 23:31:36", "not_valid_before": "2022-07-06 23:37:56" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.043) 0:00:17.151 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.047) 0:00:17.199 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.035) 0:00:17.234 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.046) 0:00:17.281 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.051) 0:00:17.332 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.049) 0:00:17.382 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_many_self_signed.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.059550", "end": "2022-07-06 23:38:05.737212", "rc": 0, "start": "2022-07-06 23:38:05.677662" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.474) 0:00:17.856 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.045) 0:00:17.902 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:38:06 +0000 (0:00:00.028) 0:00:17.931 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:38:08 +0000 (0:00:01.881) 0:00:19.813 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:38:09 +0000 (0:00:00.997) 0:00:20.810 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.883) 0:00:21.694 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150677.2146907, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bb732cd39d4d04ee3b60ffd37942068f64df1282", "ctime": 1657150677.2106905, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59930, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150677.2106905, "nlink": 1, "path": "/etc/pki/tls/certs/other-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.404) 0:00:22.098 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.031) 0:00:22.130 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.047) 0:00:22.178 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.044) 0:00:22.223 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150677.1606905, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "83ce97612b27cc854cd9e2be68f069b1dc3109d7", "ctime": 1657150677.2106905, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59917, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150677.2106905, "nlink": 1, "path": "/etc/pki/tls/private/other-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.398) 0:00:22.621 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.031) 0:00:22.653 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.045) 0:00:22.698 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/other-cert.crt" ], "delta": "0:00:00.201793", "end": "2022-07-06 23:38:11.171531", "rc": 0, "start": "2022-07-06 23:38:10.969738" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.org" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "4C:FA:95:BC:39:AE:C1:01:CB:87:FE:C3:AE:48:27:A5:09:AC:88:D8", "critical": false }, "authorityKeyIdentifier": { "value": "4C:FC:1F:4C:D8:65:29:92:2C:7F:D8:EA:F1:BF:F7:B0:DC:83:73:1F", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "78:30:3E:A4:D2:16:43:78:3F:94:A8:08:35:01:48:7D:96:4F:88:A8:86:09:71:3D:D3:40:AE:3D:20:E1:EE:3A:44:BA:DA:5A:D2:83:09:C1:BF:B5:70:A0:E6:00:D7:4A:11:7D:27:25:21:FB:1D:A5:70:75:2F:77:71:64:66:E5:DB:FB:0B:58:A6:73:3E:FC:CB:19:37:93:03:E6:8D:E4:2D:A1:03:2B:0F:84:A0:D2:65:A7:CF:96:D2:EC:6B:CE:09:13:0C:1F:A8:4F:F2:1C:E1:A2:66:DB:CC:59:3A:4D:20:10:BA:2D:77:3D:2E:40:10:C1:5E:55:84:0B:0F:CC:FD:A8:07:EC:64:54:10:EC:10:9B:21:C3:8A:28:3C:5E:1F:3D:1E:E5:FA:70:A8:C8:AF:99:9A:AF:DF:A2:CC:6C:7D:DC:11:42:1E:C5:3C:35:43:E5:24:EE:5F:87:8D:D0:C9:B0:C8:FC:CE:3A:B2:87:E6:2D:87:D5:6E:3D:95:C0:0D:C7:2D:95:F8:05:DB:CC:6D:2D:CA:06:EC:3D:A5:15:FD:6E:32:01:67:03:D6:9E:05:B0:AB:65:6D:F7:F7:81:51:AA:24:5E:C6:2D:A8:ED:E3:D8:23:69:5D:51:95:E5:01:EC:AF:00:DA:2C:5B:FC:92:7D:1E:38:04:CD:F9:C1" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:31:36", "not_valid_before": "2022-07-06 23:37:57" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.595) 0:00:23.294 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4C:FC:1F:4C:D8:65:29:92:2C:7F:D8:EA:F1:BF:F7:B0:DC:83:73:1F" }, "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.org" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "4C:FA:95:BC:39:AE:C1:01:CB:87:FE:C3:AE:48:27:A5:09:AC:88:D8" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "78:30:3E:A4:D2:16:43:78:3F:94:A8:08:35:01:48:7D:96:4F:88:A8:86:09:71:3D:D3:40:AE:3D:20:E1:EE:3A:44:BA:DA:5A:D2:83:09:C1:BF:B5:70:A0:E6:00:D7:4A:11:7D:27:25:21:FB:1D:A5:70:75:2F:77:71:64:66:E5:DB:FB:0B:58:A6:73:3E:FC:CB:19:37:93:03:E6:8D:E4:2D:A1:03:2B:0F:84:A0:D2:65:A7:CF:96:D2:EC:6B:CE:09:13:0C:1F:A8:4F:F2:1C:E1:A2:66:DB:CC:59:3A:4D:20:10:BA:2D:77:3D:2E:40:10:C1:5E:55:84:0B:0F:CC:FD:A8:07:EC:64:54:10:EC:10:9B:21:C3:8A:28:3C:5E:1F:3D:1E:E5:FA:70:A8:C8:AF:99:9A:AF:DF:A2:CC:6C:7D:DC:11:42:1E:C5:3C:35:43:E5:24:EE:5F:87:8D:D0:C9:B0:C8:FC:CE:3A:B2:87:E6:2D:87:D5:6E:3D:95:C0:0D:C7:2D:95:F8:05:DB:CC:6D:2D:CA:06:EC:3D:A5:15:FD:6E:32:01:67:03:D6:9E:05:B0:AB:65:6D:F7:F7:81:51:AA:24:5E:C6:2D:A8:ED:E3:D8:23:69:5D:51:95:E5:01:EC:AF:00:DA:2C:5B:FC:92:7D:1E:38:04:CD:F9:C1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "2023-07-06 23:31:36", "not_valid_before": "2022-07-06 23:37:57" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.043) 0:00:23.337 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.048) 0:00:23.385 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.034) 0:00:23.419 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.045) 0:00:23.465 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.044) 0:00:23.510 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.074) 0:00:23.585 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/other-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.057798", "end": "2022-07-06 23:38:11.924255", "rc": 0, "start": "2022-07-06 23:38:11.866457" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.453) 0:00:24.038 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.045) 0:00:24.084 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.029) 0:00:24.114 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:38:14 +0000 (0:00:01.940) 0:00:26.054 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:38:15 +0000 (0:00:00.996) 0:00:27.051 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:38:16 +0000 (0:00:00.894) 0:00:27.946 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150678.1246905, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e899e4ec8c409c0106ec5d148b3e69de2d8debf8", "ctime": 1657150678.1206906, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59965, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150678.1206906, "nlink": 1, "path": "/etc/pki/tls/certs/another-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:38:17 +0000 (0:00:00.399) 0:00:28.345 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:38:17 +0000 (0:00:00.060) 0:00:28.405 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 23:38:17 +0000 (0:00:00.076) 0:00:28.482 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 23:38:17 +0000 (0:00:00.074) 0:00:28.557 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150678.0736907, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7b47cdf43442f2ff7124789d78619292eea69459", "ctime": 1657150678.1206906, "dev": 32, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 59952, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150678.1206906, "nlink": 1, "path": "/etc/pki/tls/private/another-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "70", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 23:38:17 +0000 (0:00:00.416) 0:00:28.973 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 23:38:17 +0000 (0:00:00.058) 0:00:29.032 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 23:38:17 +0000 (0:00:00.068) 0:00:29.101 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/another-cert.crt" ], "delta": "0:00:00.209627", "end": "2022-07-06 23:38:17.623354", "rc": 0, "start": "2022-07-06 23:38:17.413727" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.net" } ], "critical": false }, "extendedKeyUsage": { "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" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "06:F2:83:AE:D3:51:4F:B3:F8:DA:22:2B:8B:B7:23:7A:FB:9C:74:EB", "critical": false }, "authorityKeyIdentifier": { "value": "4C:FC:1F:4C:D8:65:29:92:2C:7F:D8:EA:F1:BF:F7:B0:DC:83:73:1F", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7B:D9:D6:88:91:C5:FD:4C:23:71:99:3D:22:31:00:6F:09:3D:11:1A:A5:82:EB:53:BE:B4:92:F6:97:DC:82:C2:85:7D:E2:FE:00:4C:9C:A2:CF:46:86:AB:1C:A9:11:78:FC:39:00:42:AB:7B:5E:F3:F4:B8:BD:13:E4:EC:02:EB:AD:92:05:0D:46:8A:63:DB:9B:2A:2C:C9:1D:6C:D7:D4:B4:5F:23:A0:2E:7B:ED:19:EE:52:8A:C9:0D:1F:03:BF:BA:BB:D5:F3:06:56:F7:91:E7:F3:50:C3:C8:A4:AA:B8:03:EA:C2:25:E8:6F:01:BD:93:79:CF:E1:5E:AC:27:66:07:4D:B5:2B:AE:21:96:95:0C:F1:70:5D:5C:EE:03:72:37:08:DB:59:B9:9B:75:92:18:72:86:26:58:9C:46:34:63:93:3A:BA:D7:05:88:F2:5B:05:D3:B5:EE:E9:14:61:1D:E0:95:98:48:23:7C:62:3D:BA:AA:2E:BE:E0:7F:EA:38:22:A7:C6:BE:CD:17:D5:82:E0:F3:D3:06:18:EC:E6:BC:4D:6A:C2:0F:F0:E3:B1:F3:4B:E1:BC:65:44:85:3A:74:7A:A1:B0:D0:E6:6A:BE:FB:A0:1C:18:2B:59:26:AD:96:38:C4:40:6F:F4:E9:68:AA:FF:48:CE:8D:17:77:07" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:31:36", "not_valid_before": "2022-07-06 23:37:58" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 23:38:18 +0000 (0:00:00.640) 0:00:29.741 ******** ok: [/cache/fedora-35.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "4C:FC:1F:4C:D8:65:29:92:2C:7F:D8:EA:F1:BF:F7:B0:DC:83:73:1F" }, "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.net" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "06:F2:83:AE:D3:51:4F:B3:F8:DA:22:2B:8B:B7:23:7A:FB:9C:74:EB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7B:D9:D6:88:91:C5:FD:4C:23:71:99:3D:22:31:00:6F:09:3D:11:1A:A5:82:EB:53:BE:B4:92:F6:97:DC:82:C2:85:7D:E2:FE:00:4C:9C:A2:CF:46:86:AB:1C:A9:11:78:FC:39:00:42:AB:7B:5E:F3:F4:B8:BD:13:E4:EC:02:EB:AD:92:05:0D:46:8A:63:DB:9B:2A:2C:C9:1D:6C:D7:D4:B4:5F:23:A0:2E:7B:ED:19:EE:52:8A:C9:0D:1F:03:BF:BA:BB:D5:F3:06:56:F7:91:E7:F3:50:C3:C8:A4:AA:B8:03:EA:C2:25:E8:6F:01:BD:93:79:CF:E1:5E:AC:27:66:07:4D:B5:2B:AE:21:96:95:0C:F1:70:5D:5C:EE:03:72:37:08:DB:59:B9:9B:75:92:18:72:86:26:58:9C:46:34:63:93:3A:BA:D7:05:88:F2:5B:05:D3:B5:EE:E9:14:61:1D:E0:95:98:48:23:7C:62:3D:BA:AA:2E:BE:E0:7F:EA:38:22:A7:C6:BE:CD:17:D5:82:E0:F3:D3:06:18:EC:E6:BC:4D:6A:C2:0F:F0:E3:B1:F3:4B:E1:BC:65:44:85:3A:74:7A:A1:B0:D0:E6:6A:BE:FB:A0:1C:18:2B:59:26:AD:96:38:C4:40:6F:F4:E9:68:AA:FF:48:CE:8D:17:77:07" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "2023-07-06 23:31:36", "not_valid_before": "2022-07-06 23:37:58" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:38:18 +0000 (0:00:00.047) 0:00:29.789 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 23:38:18 +0000 (0:00:00.054) 0:00:29.844 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 23:38:18 +0000 (0:00:00.037) 0:00:29.881 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 23:38:18 +0000 (0:00:00.044) 0:00:29.926 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 23:38:18 +0000 (0:00:00.057) 0:00:29.983 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 23:38:18 +0000 (0:00:00.046) 0:00:30.030 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/another-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.061031", "end": "2022-07-06 23:38:18.350159", "rc": 0, "start": "2022-07-06 23:38:18.289128" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:38:19 +0000 (0:00:00.435) 0:00:30.466 ******** ok: [/cache/fedora-35.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2.snap : ok=73 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 23:38:19 +0000 (0:00:00.056) 0:00:30.522 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.63s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.16s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.94s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- Ensure python3 is installed --------------------------------------------- 1.91s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.89s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Ensure python3 is installed --------------------------------------------- 1.88s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- Install the package, force upgrade -------------------------------------- 1.15s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpswp52mgx/tests/certificate/tests_many_self_signed.yml:2 --------------- Install the package, force upgrade -------------------------------------- 1.00s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Install the package, force upgrade -------------------------------------- 1.00s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Install certreader ------------------------------------------------------ 0.89s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:18 - Install certreader ------------------------------------------------------ 0.89s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:18 - Install certreader ------------------------------------------------------ 0.88s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:18 - fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.83s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmpswp52mgx/tests/certificate/tests_many_self_signed.yml:18 -------------- Parse certificate ------------------------------------------------------- 0.69s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:74 - Parse certificate ------------------------------------------------------- 0.64s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.60s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Parse certificate ------------------------------------------------------- 0.60s /tmp/tmpswp52mgx/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.56s /tmp/tmptdk3_2m8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33