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/tmpch7qdmnu 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 06 July 2022 04:52:05 +0000 (0:00:00.018) 0:00:00.018 ******** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.199622", "end": "2022-07-06 04:52:05.139269", "rc": 0, "start": "2022-07-06 04:52:04.939647" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 06 July 2022 04:52:06 +0000 (0:00:00.780) 0:00:00.799 ******** =============================================================================== Enable HA repos --------------------------------------------------------- 0.78s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_provider.yml *************************************************** 2 plays in /tmp/tmphw7p6t3p/tests/tests_provider.yml PLAY [Test issuing certificate with certmonger provider] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmphw7p6t3p/tests/tests_provider.yml:2 Wednesday 06 July 2022 04:52:06 +0000 (0:00:00.020) 0:00:00.819 ******** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 04:52:07 +0000 (0:00:01.032) 0:00:01.852 ******** included: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 04:52:07 +0000 (0:00:00.025) 0:00:01.878 ******** ok: [/cache/centos-8.qcow2] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 04:52:07 +0000 (0:00:00.512) 0:00:02.390 ******** skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 04:52:07 +0000 (0:00:00.040) 0:00:02.431 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 04:52:10 +0000 (0:00:02.309) 0:00:04.740 ******** ok: [/cache/centos-8.qcow2] => (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/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 04:52:11 +0000 (0:00:01.879) 0:00:06.620 ******** ok: [/cache/centos-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 04:52:12 +0000 (0:00:00.555) 0:00:07.175 ******** ok: [/cache/centos-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 04:52:12 +0000 (0:00:00.388) 0:00:07.563 ******** ok: [/cache/centos-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 04:44:15 UTC", "ActiveEnterTimestampMonotonic": "276633786", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target syslog.target systemd-journald.socket network.target basic.target system.slice dbus.service dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 04:44:15 UTC", "AssertTimestampMonotonic": "276623232", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 04:44:15 UTC", "ConditionTimestampMonotonic": "276623232", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "24015", "ExecMainStartTimestamp": "Wed 2022-07-06 04:44:15 UTC", "ExecMainStartTimestampMonotonic": "276624121", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 04:44:15 UTC", "InactiveExitTimestampMonotonic": "276624167", "InvocationID": "3de97fcbf89741f9816de82898a648f3", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14647", "LimitNPROCSoft": "14647", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14647", "LimitSIGPENDINGSoft": "14647", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "24015", "MemoryAccounting": "yes", "MemoryCurrent": "4468736", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "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", "StandardInputData": "", "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 04:44:15 UTC", "StateChangeTimestampMonotonic": "276633786", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "23435", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-07-06 04:44:15 UTC", "WatchdogTimestampMonotonic": "276633785", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 04:52:13 +0000 (0:00:00.769) 0:00:08.332 ******** changed: [/cache/centos-8.qcow2] => (item={'name': 'mycert_provider', 'dns': 'www.example.com', 'ca': 'self-sign', 'provider': 'certmonger'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } } MSG: Certificate requested (new). META: role_complete for /cache/centos-8.qcow2 META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmphw7p6t3p/tests/tests_provider.yml:13 Wednesday 06 July 2022 04:52:14 +0000 (0:00:00.900) 0:00:09.232 ******** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmphw7p6t3p/tests/tests_provider.yml:27 Wednesday 06 July 2022 04:52:15 +0000 (0:00:00.763) 0:00:09.996 ******** included: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml for /cache/centos-8.qcow2 => (item={'path': '/etc/pki/tls/certs/mycert_provider.crt', 'key_path': '/etc/pki/tls/private/mycert_provider.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 04:52:15 +0000 (0:00:00.040) 0:00:10.036 ******** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 04:52:15 +0000 (0:00:00.026) 0:00:10.063 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 04:52:17 +0000 (0:00:01.831) 0:00:11.894 ******** ok: [/cache/centos-8.qcow2] => { "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.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 04:52:18 +0000 (0:00:01.161) 0:00:13.056 ******** ok: [/cache/centos-8.qcow2] => { "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.6/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.6/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 04:52:19 +0000 (0:00:00.872) 0:00:13.929 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657083133.494088, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "46015a1b8c6fece95f1d02af681a969fc2bf8fd0", "ctime": 1657083133.491088, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8494231, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657083133.491088, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_provider.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1817281678", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 04:52:19 +0000 (0:00:00.503) 0:00:14.432 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 04:52:19 +0000 (0:00:00.062) 0:00:14.494 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 04:52:19 +0000 (0:00:00.074) 0:00:14.568 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 04:52:19 +0000 (0:00:00.043) 0:00:14.612 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657083133.445088, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "393c9a51d425bac1ae983844d5af9e943a890e28", "ctime": 1657083133.491088, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8494230, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657083133.491088, "nlink": 1, "path": "/etc/pki/tls/private/mycert_provider.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "4228177035", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 04:52:20 +0000 (0:00:00.397) 0:00:15.010 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 04:52:20 +0000 (0:00:00.060) 0:00:15.070 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 04:52:20 +0000 (0:00:00.072) 0:00:15.143 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_provider.crt" ], "delta": "0:00:00.224683", "end": "2022-07-06 04:52:20.100672", "rc": 0, "start": "2022-07-06 04:52:19.875989" } 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": "43:3B:1C:26:97:7D:50:F5:04:68:C3:81:31:C4:F1:0D:3E:41:FB:88", "critical": false }, "authorityKeyIdentifier": { "value": "02:3D:01:2A:A7:6B:8F:B9:76:BD:77:28:A0:B4:BD:F7:1C:93:E3:DD", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "83:3D:0E:82:B1:4C:F9:8A:D4:F1:C1:C3:D1:1F:31:63:76:A2:FA:BF:0B:ED:09:45:BF:93:64:59:BB:DF:46:2B:62:60:4E:33:92:A1:22:D7:F5:BD:E1:11:E3:D3:A5:49:E3:B2:F1:26:6E:B5:86:1D:F4:38:E9:09:F6:BD:72:D6:67:FF:3B:1A:80:A4:AD:2A:9A:CB:F8:CC:8F:11:B7:A7:EA:FF:75:A9:94:14:2A:53:55:E5:F4:D0:03:62:56:A7:D7:D4:A3:B4:64:6B:F7:DE:C8:0D:23:EB:56:4E:56:0B:8F:FB:8F:FF:E1:7A:31:7D:CD:EE:88:54:66:A2:24:CD:79:2F:C1:68:C9:00:31:F4:F4:E6:FA:39:71:E8:59:59:AE:A6:3A:C8:12:59:63:BB:34:0D:8E:B7:46:67:BB:73:B5:2F:21:0D:16:13:82:EB:B7:E9:FB:15:49:1E:5C:CD:19:95:FC:6B:C0:34:42:8F:52:93:02:F5:CA:5D:00:C8:9D:09:76:CF:F7:92:F3:95:E1:E9:B2:6C:8E:F9:2B:17:40:AB:06:8C:C5:E0:AE:73:7C:2D:8A:21:47:94:A0:DA:30:B2:F0:E3:F5:88:A1:6B:6E:53:76:D9:47:88:46:E9:D8:B4:49:FE:6F:A1:98:72:42:02:54:C5:1E:EC:7B:F7" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 04:44:16", "not_valid_before": "2022-07-06 04:52:13" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.612) 0:00:15.755 ******** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "02:3D:01:2A:A7:6B:8F:B9:76:BD:77:28:A0:B4:BD:F7:1C:93:E3:DD" }, "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": "43:3B:1C:26:97:7D:50:F5:04:68:C3:81:31:C4:F1:0D:3E:41:FB:88" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "83:3D:0E:82:B1:4C:F9:8A:D4:F1:C1:C3:D1:1F:31:63:76:A2:FA:BF:0B:ED:09:45:BF:93:64:59:BB:DF:46:2B:62:60:4E:33:92:A1:22:D7:F5:BD:E1:11:E3:D3:A5:49:E3:B2:F1:26:6E:B5:86:1D:F4:38:E9:09:F6:BD:72:D6:67:FF:3B:1A:80:A4:AD:2A:9A:CB:F8:CC:8F:11:B7:A7:EA:FF:75:A9:94:14:2A:53:55:E5:F4:D0:03:62:56:A7:D7:D4:A3:B4:64:6B:F7:DE:C8:0D:23:EB:56:4E:56:0B:8F:FB:8F:FF:E1:7A:31:7D:CD:EE:88:54:66:A2:24:CD:79:2F:C1:68:C9:00:31:F4:F4:E6:FA:39:71:E8:59:59:AE:A6:3A:C8:12:59:63:BB:34:0D:8E:B7:46:67:BB:73:B5:2F:21:0D:16:13:82:EB:B7:E9:FB:15:49:1E:5C:CD:19:95:FC:6B:C0:34:42:8F:52:93:02:F5:CA:5D:00:C8:9D:09:76:CF:F7:92:F3:95:E1:E9:B2:6C:8E:F9:2B:17:40:AB:06:8C:C5:E0:AE:73:7C:2D:8A:21:47:94:A0:DA:30:B2:F0:E3:F5:88:A1:6B:6E:53:76:D9:47:88:46:E9:D8:B4:49:FE:6F:A1:98:72:42:02:54:C5:1E:EC:7B:F7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 04:44:16", "not_valid_before": "2022-07-06 04:52:13" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.086) 0:00:15.841 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.046) 0:00:15.888 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.034) 0:00:15.922 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.044) 0:00:15.966 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.042) 0:00:16.008 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.048) 0:00:16.056 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_provider.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.077910", "end": "2022-07-06 04:52:20.841230", "rc": 0, "start": "2022-07-06 04:52:20.763320" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.439) 0:00:16.495 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=32 changed=2 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 04:52:21 +0000 (0:00:00.052) 0:00:16.547 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 2.31s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- linux-system-roles.certificate : Ensure provider packages are installed --- 1.88s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Ensure python3 is installed --------------------------------------------- 1.83s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:6 -------------- Install the package, force upgrade -------------------------------------- 1.16s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:11 ------------- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmphw7p6t3p/tests/tests_provider.yml:2 ----------------------------------- linux-system-roles.certificate : Ensure certificate requests ------------ 0.90s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Install certreader ------------------------------------------------------ 0.87s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:18 ------------- Enable HA repos --------------------------------------------------------- 0.78s /cache/centos-8_setup.yml:5 --------------------------------------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.77s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Gathering Facts --------------------------------------------------------- 0.76s /tmp/tmphw7p6t3p/tests/tests_provider.yml:13 ---------------------------------- Parse certificate ------------------------------------------------------- 0.61s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.56s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.51s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Retrieve certificate file stats ----------------------------------------- 0.50s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:26 ------------- Retrieve auto-renew flag ------------------------------------------------ 0.44s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:141 ------------ Retrieve key file stats ------------------------------------------------- 0.40s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:55 ------------- linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.39s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 - Load certificate YAML to cert_issued variable --------------------------- 0.09s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:83 ------------- Verify certificate file owner and group --------------------------------- 0.07s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:37 ------------- Verify key file owner and group ----------------------------------------- 0.07s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:66 ------------- 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/tmpch7qdmnu 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: centos-8_setup.yml *************************************************** 1 plays in /cache/centos-8_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-8_setup.yml:5 Wednesday 06 July 2022 05:05:38 +0000 (0:00:00.018) 0:00:00.018 ******** changed: [/cache/centos-8.qcow2] => { "ansible_facts": { "discovered_interpreter_python": "/usr/libexec/platform-python" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.195866", "end": "2022-07-06 05:05:38.328535", "rc": 0, "start": "2022-07-06 05:05:38.132669" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 06 July 2022 05:05:39 +0000 (0:00:00.779) 0:00:00.798 ******** =============================================================================== Enable HA repos --------------------------------------------------------- 0.78s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_provider.yml *************************************************** 2 plays in /tmp/tmpap4wle35/tests/certificate/tests_provider.yml PLAY [Test issuing certificate with certmonger provider] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tests_provider.yml:2 Wednesday 06 July 2022 05:05:39 +0000 (0:00:00.023) 0:00:00.821 ******** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 05:05:40 +0000 (0:00:01.016) 0:00:01.838 ******** included: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/centos-8.qcow2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 05:05:40 +0000 (0:00:00.027) 0:00:01.866 ******** ok: [/cache/centos-8.qcow2] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 05:05:40 +0000 (0:00:00.514) 0:00:02.380 ******** skipping: [/cache/centos-8.qcow2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-8.qcow2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 05:05:40 +0000 (0:00:00.042) 0:00:02.423 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 05:05:43 +0000 (0:00:02.165) 0:00:04.588 ******** ok: [/cache/centos-8.qcow2] => (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/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 05:05:44 +0000 (0:00:01.831) 0:00:06.420 ******** ok: [/cache/centos-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 05:05:45 +0000 (0:00:00.525) 0:00:06.945 ******** ok: [/cache/centos-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 05:05:45 +0000 (0:00:00.385) 0:00:07.331 ******** ok: [/cache/centos-8.qcow2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 04:57:42 UTC", "ActiveEnterTimestampMonotonic": "255054911", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service sysinit.target basic.target network.target dbus.socket system.slice systemd-journald.socket syslog.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 04:57:42 UTC", "AssertTimestampMonotonic": "255044022", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 04:57:42 UTC", "ConditionTimestampMonotonic": "255044022", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "24010", "ExecMainStartTimestamp": "Wed 2022-07-06 04:57:42 UTC", "ExecMainStartTimestampMonotonic": "255045047", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 04:57:42 UTC", "InactiveExitTimestampMonotonic": "255045090", "InvocationID": "87aa9c8e0e7049a4bbed02fba42c187d", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14647", "LimitNPROCSoft": "14647", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14647", "LimitSIGPENDINGSoft": "14647", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "24010", "MemoryAccounting": "yes", "MemoryCurrent": "4468736", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "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", "StandardInputData": "", "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 04:57:42 UTC", "StateChangeTimestampMonotonic": "255054911", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "23435", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Wed 2022-07-06 04:57:42 UTC", "WatchdogTimestampMonotonic": "255054910", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 05:05:46 +0000 (0:00:00.789) 0:00:08.121 ******** changed: [/cache/centos-8.qcow2] => (item={'name': 'mycert_provider', 'dns': 'www.example.com', 'ca': 'self-sign', 'provider': 'certmonger'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } } MSG: Certificate requested (new). META: role_complete for /cache/centos-8.qcow2 META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tests_provider.yml:13 Wednesday 06 July 2022 05:05:47 +0000 (0:00:01.023) 0:00:09.144 ******** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tests_provider.yml:27 Wednesday 06 July 2022 05:05:48 +0000 (0:00:00.771) 0:00:09.916 ******** included: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/centos-8.qcow2 => (item={'path': '/etc/pki/tls/certs/mycert_provider.crt', 'key_path': '/etc/pki/tls/private/mycert_provider.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 05:05:48 +0000 (0:00:00.042) 0:00:09.959 ******** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 05:05:48 +0000 (0:00:00.027) 0:00:09.986 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 05:05:50 +0000 (0:00:01.871) 0:00:11.858 ******** ok: [/cache/centos-8.qcow2] => { "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.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 05:05:51 +0000 (0:00:01.157) 0:00:13.016 ******** ok: [/cache/centos-8.qcow2] => { "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.6/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.6/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.6/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 05:05:52 +0000 (0:00:00.907) 0:00:13.923 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657083946.505881, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "61a1a5abe24bc6469c360ab8aeea8f24cb03e8db", "ctime": 1657083946.502881, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8539282, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657083946.502881, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_provider.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "2888249406", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 05:05:52 +0000 (0:00:00.515) 0:00:14.438 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 05:05:52 +0000 (0:00:00.074) 0:00:14.512 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 05:05:52 +0000 (0:00:00.049) 0:00:14.562 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 05:05:53 +0000 (0:00:00.068) 0:00:14.630 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657083946.455881, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5cedf2987fba982be53ae04b712023bae124d9c0", "ctime": 1657083946.502881, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8539280, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657083946.502881, "nlink": 1, "path": "/etc/pki/tls/private/mycert_provider.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1641425730", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 05:05:53 +0000 (0:00:00.408) 0:00:15.038 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 05:05:53 +0000 (0:00:00.092) 0:00:15.131 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 05:05:53 +0000 (0:00:00.053) 0:00:15.185 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_provider.crt" ], "delta": "0:00:00.225484", "end": "2022-07-06 05:05:53.314028", "rc": 0, "start": "2022-07-06 05:05:53.088544" } 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": "8B:E7:C7:13:80:9D:7D:B6:C0:84:E1:EB:30:69:B1:4E:30:81:FC:EE", "critical": false }, "authorityKeyIdentifier": { "value": "C5:FD:E2:7E:B6:D3:3B:5A:3E:46:F2:AC:4C:17:50:0B:30:3C:AB:DC", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7E:2F:4B:80:9C:95:71:8C:71:39:02:F8:BF:EF:06:AE:F2:C4:BB:5B:16:7A:4C:52:D0:53:08:A6:B4:E6:09:A1:13:98:17:59:35:42:5B:19:36:75:58:B2:D8:35:16:01:0B:E8:C4:28:18:CD:9E:F5:55:53:9F:30:00:47:05:AC:A5:10:F7:3F:18:F7:89:BF:CC:61:88:CA:55:26:7C:B3:29:06:85:43:61:FD:E2:47:F1:22:B9:0F:41:6F:3F:A1:7E:1E:D1:0C:01:F8:CB:2E:B9:9D:F2:21:EE:8A:F9:1F:68:17:C2:15:9F:65:C9:4A:B7:D9:6D:0A:8D:89:B9:CA:00:8E:01:48:E5:15:1D:3E:E7:3B:34:37:DF:02:F6:B4:C6:DB:9D:A0:FB:4A:E6:35:0A:6A:99:66:47:8D:66:B8:D7:7E:72:0A:48:73:5F:C9:B9:5D:2E:90:80:B7:79:FC:0E:F6:AE:EB:D7:B7:5E:9E:0B:6E:4C:71:7D:E4:F2:50:D9:38:5A:3D:94:4F:AA:E4:30:3B:21:4C:10:65:BB:DC:D2:2A:F8:C1:F9:6E:CF:54:75:C6:E8:04:FC:9C:38:10:41:A3:F6:EE:71:8A:2D:F4:59:83:AD:90:C2:FB:3B:AF:58:C4:B6:2A:55:A8:26:1A:E0:33:E2:7C:A4:83:D2:C4" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 04:57:42", "not_valid_before": "2022-07-06 05:05:46" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.596) 0:00:15.782 ******** ok: [/cache/centos-8.qcow2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "C5:FD:E2:7E:B6:D3:3B:5A:3E:46:F2:AC:4C:17:50:0B:30:3C:AB:DC" }, "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": "8B:E7:C7:13:80:9D:7D:B6:C0:84:E1:EB:30:69:B1:4E:30:81:FC:EE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7E:2F:4B:80:9C:95:71:8C:71:39:02:F8:BF:EF:06:AE:F2:C4:BB:5B:16:7A:4C:52:D0:53:08:A6:B4:E6:09:A1:13:98:17:59:35:42:5B:19:36:75:58:B2:D8:35:16:01:0B:E8:C4:28:18:CD:9E:F5:55:53:9F:30:00:47:05:AC:A5:10:F7:3F:18:F7:89:BF:CC:61:88:CA:55:26:7C:B3:29:06:85:43:61:FD:E2:47:F1:22:B9:0F:41:6F:3F:A1:7E:1E:D1:0C:01:F8:CB:2E:B9:9D:F2:21:EE:8A:F9:1F:68:17:C2:15:9F:65:C9:4A:B7:D9:6D:0A:8D:89:B9:CA:00:8E:01:48:E5:15:1D:3E:E7:3B:34:37:DF:02:F6:B4:C6:DB:9D:A0:FB:4A:E6:35:0A:6A:99:66:47:8D:66:B8:D7:7E:72:0A:48:73:5F:C9:B9:5D:2E:90:80:B7:79:FC:0E:F6:AE:EB:D7:B7:5E:9E:0B:6E:4C:71:7D:E4:F2:50:D9:38:5A:3D:94:4F:AA:E4:30:3B:21:4C:10:65:BB:DC:D2:2A:F8:C1:F9:6E:CF:54:75:C6:E8:04:FC:9C:38:10:41:A3:F6:EE:71:8A:2D:F4:59:83:AD:90:C2:FB:3B:AF:58:C4:B6:2A:55:A8:26:1A:E0:33:E2:7C:A4:83:D2:C4" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 04:57:42", "not_valid_before": "2022-07-06 05:05:46" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.043) 0:00:15.825 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.046) 0:00:15.872 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.032) 0:00:15.904 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.044) 0:00:15.949 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.045) 0:00:15.994 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.044) 0:00:16.039 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_provider.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.076788", "end": "2022-07-06 05:05:54.032880", "rc": 0, "start": "2022-07-06 05:05:53.956092" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.451) 0:00:16.491 ******** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=32 changed=2 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 05:05:54 +0000 (0:00:00.051) 0:00:16.542 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.17s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.87s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.83s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Install the package, force upgrade -------------------------------------- 1.16s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:11 - fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.02s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpap4wle35/tests/certificate/tests_provider.yml:2 ----------------------- Install certreader ------------------------------------------------------ 0.91s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:18 - fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.79s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Enable HA repos --------------------------------------------------------- 0.78s /cache/centos-8_setup.yml:5 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.77s /tmp/tmpap4wle35/tests/certificate/tests_provider.yml:13 ---------------------- Parse certificate ------------------------------------------------------- 0.60s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.53s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 0.52s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:26 - fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.51s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Retrieve auto-renew flag ------------------------------------------------ 0.45s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:132 Retrieve key file stats ------------------------------------------------- 0.41s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:53 - fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.39s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Verify if key file exists ----------------------------------------------- 0.09s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:58 - Verify if certificate file exists --------------------------------------- 0.07s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:31 - Verify certificate permissions ------------------------------------------ 0.07s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:47 -