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/tmpsp7qopjw 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_subject_complex.yml ******************************************** 2 plays in /tmp/tmpjupnnp9c/tests/tests_subject_complex.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjupnnp9c/tests/tests_subject_complex.yml:2 Wednesday 06 July 2022 04:27:00 +0000 (0:00:00.013) 0:00:00.013 ******** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 04:27:02 +0000 (0:00:01.134) 0:00:01.147 ******** included: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 04:27:02 +0000 (0:00:00.025) 0:00:01.173 ******** ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 04:27:02 +0000 (0:00:00.541) 0:00:01.715 ******** skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 04:27:02 +0000 (0:00:00.040) 0:00:01.755 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 04:27:04 +0000 (0:00:01.565) 0:00:03.321 ******** ok: [/cache/rhel-8-y.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/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 04:27:05 +0000 (0:00:01.409) 0:00:04.730 ******** ok: [/cache/rhel-8-y.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": 41, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 04:27:06 +0000 (0:00:00.530) 0:00:05.260 ******** ok: [/cache/rhel-8-y.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": 41, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 04:27:06 +0000 (0:00:00.407) 0:00:05.667 ******** ok: [/cache/rhel-8-y.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 00:19:07 EDT", "ActiveEnterTimestampMonotonic": "209835307", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket dbus.service sysinit.target syslog.target network.target systemd-journald.socket basic.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 00:19:07 EDT", "AssertTimestampMonotonic": "209824609", "Before": "multi-user.target shutdown.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 00:19:07 EDT", "ConditionTimestampMonotonic": "209824609", "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": "20356", "ExecMainStartTimestamp": "Wed 2022-07-06 00:19:07 EDT", "ExecMainStartTimestampMonotonic": "209825682", "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 00:19:07 EDT", "InactiveExitTimestampMonotonic": "209825779", "InvocationID": "9b7f2c992b884db7b09cb5a377a5b7df", "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": "14640", "LimitNPROCSoft": "14640", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14640", "LimitSIGPENDINGSoft": "14640", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "20356", "MemoryAccounting": "yes", "MemoryCurrent": "4513792", "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": "sysinit.target dbus.socket system.slice", "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 00:19:07 EDT", "StateChangeTimestampMonotonic": "209835307", "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": "23424", "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 00:19:07 EDT", "WatchdogTimestampMonotonic": "209835306", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 04:27:07 +0000 (0:00:00.781) 0:00:06.449 ******** changed: [/cache/rhel-8-y.qcow2.snap] => (item={'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } } MSG: Certificate requested (new). META: role_complete for /cache/rhel-8-y.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjupnnp9c/tests/tests_subject_complex.yml:16 Wednesday 06 July 2022 04:27:08 +0000 (0:00:01.008) 0:00:07.458 ******** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpjupnnp9c/tests/tests_subject_complex.yml:37 Wednesday 06 July 2022 04:27:09 +0000 (0:00:00.818) 0:00:08.277 ******** included: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml for /cache/rhel-8-y.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_subject_complex.crt', 'key_path': '/etc/pki/tls/private/mycert_subject_complex.key', 'subject': [{'name': 'emailAddress', 'oid': '1.2.840.113549.1.9.1', 'value': 'admin@example.com'}, {'name': 'commonName', 'oid': '2.5.4.3', 'value': '# \\\\Every"thing+that,ne;edsing\\0 '}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 04:27:09 +0000 (0:00:00.044) 0:00:08.322 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 04:27:09 +0000 (0:00:00.035) 0:00:08.357 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 04:27:10 +0000 (0:00:01.321) 0:00:09.678 ******** ok: [/cache/rhel-8-y.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.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 04:27:11 +0000 (0:00:01.152) 0:00:10.830 ******** ok: [/cache/rhel-8-y.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.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/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 04:27:12 +0000 (0:00:00.903) 0:00:11.734 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "stat": { "atime": 1657081628.107274, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e550b8f4cc0de1665d6edae1b80df552a6a30ac1", "ctime": 1657081628.1032739, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17014057, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657081628.1032739, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject_complex.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1375, "uid": 0, "version": "2740376339", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 04:27:13 +0000 (0:00:00.517) 0:00:12.252 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 04:27:13 +0000 (0:00:00.041) 0:00:12.293 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 04:27:13 +0000 (0:00:00.081) 0:00:12.374 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 04:27:13 +0000 (0:00:00.078) 0:00:12.452 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "stat": { "atime": 1657081628.056274, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d6feb13e3a677b95501b909b911f5f255fce78b7", "ctime": 1657081628.1032739, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 26548769, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657081628.1032739, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject_complex.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "3517200460", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 04:27:13 +0000 (0:00:00.417) 0:00:12.869 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 04:27:13 +0000 (0:00:00.037) 0:00:12.907 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 04:27:13 +0000 (0:00:00.081) 0:00:12.988 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_subject_complex.crt" ], "delta": "0:00:00.235821", "end": "2022-07-06 00:27:14.485595", "rc": 0, "start": "2022-07-06 00:27:14.249774" } STDOUT: { "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "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": "41:A1:59:8D:C5:25:4F:CB:4B:D0:A6:AD:F4:C3:DE:64:3B:6F:FB:2C", "critical": false }, "authorityKeyIdentifier": { "value": "EA:13:1C:D9:76:B4:03:87:EC:1C:CA:DF:E8:85:E1:98:02:AB:53:26", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AC:0B:14:15:9F:1A:B7:63:2C:82:C3:21:14:F6:65:A9:73:D3:10:C5:F1:A3:B9:6E:80:7C:15:48:FB:F4:AB:FF:7C:95:A8:E5:05:52:8D:9B:7C:30:6E:95:EF:F4:19:08:1E:8E:B5:A0:DD:1F:EB:CB:A8:8C:1A:3B:B6:91:B3:23:5A:44:19:4B:D1:8C:F4:78:AC:D7:44:02:73:56:C9:85:25:F7:BE:26:76:DD:50:27:93:3E:80:78:77:5F:04:26:21:69:C6:CD:EC:97:E5:46:C4:73:72:6F:7C:EC:EA:B3:F2:69:D2:7D:BB:0E:EE:D3:85:4A:F8:10:6E:E8:AC:ED:61:22:B7:6B:B9:4C:3B:0A:C0:58:0F:90:FB:54:F9:FC:AB:31:7A:FD:D3:E3:95:F3:65:1A:8A:19:9A:43:C1:99:54:63:F2:6E:36:72:E7:27:39:03:29:E3:71:AD:A6:6F:99:21:F1:10:A6:35:A9:61:80:C4:34:39:C5:12:21:B3:E7:BB:7D:C9:63:15:77:5E:96:E1:1B:87:27:6A:C3:86:E6:E6:EA:57:DA:C0:D5:31:E9:51:77:D4:C5:41:D1:37:53:C2:12:77:65:91:6E:1B:3B:A3:A2:E0:3F:4D:A3:AC:2F:77:6B:67:A2:B0:97:59:35:1E:EA:B3:A8:F4:10:D4" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 04:19:07", "not_valid_before": "2022-07-06 04:27:08" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 04:27:14 +0000 (0:00:00.739) 0:00:13.727 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "EA:13:1C:D9:76:B4:03:87:EC:1C:CA:DF:E8:85:E1:98:02:AB:53:26" }, "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": "41:A1:59:8D:C5:25:4F:CB:4B:D0:A6:AD:F4:C3:DE:64:3B:6F:FB:2C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AC:0B:14:15:9F:1A:B7:63:2C:82:C3:21:14:F6:65:A9:73:D3:10:C5:F1:A3:B9:6E:80:7C:15:48:FB:F4:AB:FF:7C:95:A8:E5:05:52:8D:9B:7C:30:6E:95:EF:F4:19:08:1E:8E:B5:A0:DD:1F:EB:CB:A8:8C:1A:3B:B6:91:B3:23:5A:44:19:4B:D1:8C:F4:78:AC:D7:44:02:73:56:C9:85:25:F7:BE:26:76:DD:50:27:93:3E:80:78:77:5F:04:26:21:69:C6:CD:EC:97:E5:46:C4:73:72:6F:7C:EC:EA:B3:F2:69:D2:7D:BB:0E:EE:D3:85:4A:F8:10:6E:E8:AC:ED:61:22:B7:6B:B9:4C:3B:0A:C0:58:0F:90:FB:54:F9:FC:AB:31:7A:FD:D3:E3:95:F3:65:1A:8A:19:9A:43:C1:99:54:63:F2:6E:36:72:E7:27:39:03:29:E3:71:AD:A6:6F:99:21:F1:10:A6:35:A9:61:80:C4:34:39:C5:12:21:B3:E7:BB:7D:C9:63:15:77:5E:96:E1:1B:87:27:6A:C3:86:E6:E6:EA:57:DA:C0:D5:31:E9:51:77:D4:C5:41:D1:37:53:C2:12:77:65:91:6E:1B:3B:A3:A2:E0:3F:4D:A3:AC:2F:77:6B:67:A2:B0:97:59:35:1E:EA:B3:A8:F4:10:D4" }, "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "validity": { "not_valid_after": "2023-07-06 04:19:07", "not_valid_before": "2022-07-06 04:27:08" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 04:27:14 +0000 (0:00:00.049) 0:00:13.776 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 04:27:14 +0000 (0:00:00.077) 0:00:13.854 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 04:27:14 +0000 (0:00:00.064) 0:00:13.919 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 04:27:14 +0000 (0:00:00.083) 0:00:14.002 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 04:27:14 +0000 (0:00:00.087) 0:00:14.090 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 04:27:15 +0000 (0:00:00.048) 0:00:14.138 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject_complex.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.085332", "end": "2022-07-06 00:27:15.349626", "rc": 0, "start": "2022-07-06 00:27:15.264294" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 04:27:15 +0000 (0:00:00.447) 0:00:14.586 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 04:27:15 +0000 (0:00:00.056) 0:00:14.643 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.57s /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- linux-system-roles.certificate : Ensure provider packages are installed --- 1.41s /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Ensure python3 is installed --------------------------------------------- 1.32s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:6 -------------- Install the package, force upgrade -------------------------------------- 1.15s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:11 ------------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpjupnnp9c/tests/tests_subject_complex.yml:2 ---------------------------- linux-system-roles.certificate : Ensure certificate requests ------------ 1.01s /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Install certreader ------------------------------------------------------ 0.90s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:18 ------------- Gathering Facts --------------------------------------------------------- 0.82s /tmp/tmpjupnnp9c/tests/tests_subject_complex.yml:16 --------------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.78s /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Parse certificate ------------------------------------------------------- 0.74s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.54s /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.53s /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - Retrieve certificate file stats ----------------------------------------- 0.52s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:26 ------------- Retrieve auto-renew flag ------------------------------------------------ 0.45s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:141 ------------ Retrieve key file stats ------------------------------------------------- 0.42s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:55 ------------- linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.41s /tmp/tmpjupnnp9c/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 - Verify certificate Key Usage -------------------------------------------- 0.09s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:112 ------------ Verify key size --------------------------------------------------------- 0.08s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:105 ------------ Verify certificate file owner and group --------------------------------- 0.08s /tmp/tmpjupnnp9c/tests/tasks/assert_certificate_parameters.yml:37 ------------- Verify key file owner and group ----------------------------------------- 0.08s /tmp/tmpjupnnp9c/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/tmpsp7qopjw 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_subject_complex.yml ******************************************** 2 plays in /tmp/tmpj_xtuxdz/tests/certificate/tests_subject_complex.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tests_subject_complex.yml:2 Wednesday 06 July 2022 04:38:48 +0000 (0:00:00.014) 0:00:00.014 ******** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 04:38:49 +0000 (0:00:01.133) 0:00:01.147 ******** included: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 04:38:49 +0000 (0:00:00.028) 0:00:01.176 ******** ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 04:38:50 +0000 (0:00:00.524) 0:00:01.701 ******** skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 04:38:50 +0000 (0:00:00.042) 0:00:01.743 ******** ok: [/cache/rhel-8-y.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/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 04:38:51 +0000 (0:00:01.548) 0:00:03.292 ******** ok: [/cache/rhel-8-y.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/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 04:38:53 +0000 (0:00:01.361) 0:00:04.653 ******** ok: [/cache/rhel-8-y.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": 41, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 04:38:53 +0000 (0:00:00.524) 0:00:05.178 ******** ok: [/cache/rhel-8-y.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": 41, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 04:38:53 +0000 (0:00:00.408) 0:00:05.586 ******** ok: [/cache/rhel-8-y.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 00:30:53 EDT", "ActiveEnterTimestampMonotonic": "208549725", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target dbus.socket systemd-journald.socket basic.target network.target dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 00:30:53 EDT", "AssertTimestampMonotonic": "208539032", "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 00:30:53 EDT", "ConditionTimestampMonotonic": "208539032", "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": "20339", "ExecMainStartTimestamp": "Wed 2022-07-06 00:30:53 EDT", "ExecMainStartTimestampMonotonic": "208540188", "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 00:30:53 EDT", "InactiveExitTimestampMonotonic": "208540321", "InvocationID": "10da18c4a5da4869bbf5df93894e3192", "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": "14640", "LimitNPROCSoft": "14640", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14640", "LimitSIGPENDINGSoft": "14640", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "20339", "MemoryAccounting": "yes", "MemoryCurrent": "4608000", "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": "sysinit.target dbus.socket system.slice", "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 00:30:53 EDT", "StateChangeTimestampMonotonic": "208549725", "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": "23424", "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 00:30:53 EDT", "WatchdogTimestampMonotonic": "208549724", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 04:38:54 +0000 (0:00:00.818) 0:00:06.405 ******** changed: [/cache/rhel-8-y.qcow2.snap] => (item={'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } } MSG: Certificate requested (new). META: role_complete for /cache/rhel-8-y.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tests_subject_complex.yml:16 Wednesday 06 July 2022 04:38:55 +0000 (0:00:01.045) 0:00:07.451 ******** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tests_subject_complex.yml:37 Wednesday 06 July 2022 04:38:56 +0000 (0:00:00.839) 0:00:08.290 ******** included: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/rhel-8-y.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_subject_complex.crt', 'key_path': '/etc/pki/tls/private/mycert_subject_complex.key', 'subject': [{'name': 'emailAddress', 'oid': '1.2.840.113549.1.9.1', 'value': 'admin@example.com'}, {'name': 'commonName', 'oid': '2.5.4.3', 'value': '# \\\\Every"thing+that,ne;edsing\\0 '}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 04:38:56 +0000 (0:00:00.050) 0:00:08.341 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 04:38:56 +0000 (0:00:00.036) 0:00:08.378 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 04:38:58 +0000 (0:00:01.366) 0:00:09.744 ******** ok: [/cache/rhel-8-y.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.6/site-packages (21.3.1) TASK [Install certreader] ****************************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 04:38:59 +0000 (0:00:01.182) 0:00:10.926 ******** ok: [/cache/rhel-8-y.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.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/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 04:39:00 +0000 (0:00:00.871) 0:00:11.798 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "stat": { "atime": 1657082334.8557496, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "60666e9a1cbc8d42bc21a0bbdf23ebea54a88db7", "ctime": 1657082334.8527496, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 17014056, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657082334.8527496, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject_complex.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1375, "uid": 0, "version": "1041348243", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 04:39:00 +0000 (0:00:00.509) 0:00:12.307 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 04:39:00 +0000 (0:00:00.049) 0:00:12.357 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 04:39:00 +0000 (0:00:00.084) 0:00:12.442 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 04:39:00 +0000 (0:00:00.047) 0:00:12.490 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "stat": { "atime": 1657082334.8037496, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "dcb0632e7697934b2e5a4523df6539c7fbe499fc", "ctime": 1657082334.8527496, "dev": 64515, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 26493096, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657082334.8527496, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject_complex.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "105656004", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 04:39:01 +0000 (0:00:00.381) 0:00:12.871 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 04:39:01 +0000 (0:00:00.068) 0:00:12.939 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 04:39:01 +0000 (0:00:00.080) 0:00:13.019 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_subject_complex.crt" ], "delta": "0:00:00.224746", "end": "2022-07-06 00:39:01.329972", "rc": 0, "start": "2022-07-06 00:39:01.105226" } STDOUT: { "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "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": "18:2F:B5:FD:A4:F9:C6:E4:1B:E7:81:74:E5:3B:E0:61:4C:09:1C:D1", "critical": false }, "authorityKeyIdentifier": { "value": "8A:94:1E:CC:14:86:F2:5F:BE:A3:0B:04:B8:91:8D:D3:C3:5A:D9:2C", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "60:AD:37:7C:AD:32:8D:9A:BB:16:18:AE:81:65:86:1E:44:8B:C7:D2:33:95:3F:E1:20:EC:50:DC:5E:64:46:94:F9:1D:A3:CB:7D:67:14:9E:30:45:0D:37:2F:1F:DA:E3:B7:54:0E:38:89:8E:5F:49:83:6F:2E:AD:AE:C2:95:34:43:E1:C0:80:BF:4D:5A:7B:9F:DF:B3:55:5F:7D:74:3F:7E:40:9C:7A:22:05:88:A2:00:16:2D:1E:E7:D5:42:F5:11:C2:91:9A:BF:00:3A:FC:65:17:60:3D:52:C6:17:FF:44:6D:A4:67:C0:3B:36:0C:FE:91:16:C4:49:FD:09:90:07:CA:D6:D0:C3:5D:66:8E:74:7A:8F:51:5F:17:74:4F:8B:74:4A:5A:FE:21:4B:D8:68:63:34:E1:D3:2A:6E:B9:A9:C6:D2:1C:A4:D7:C6:20:E7:8F:1A:01:27:E7:12:7D:ED:52:9A:59:5E:54:E2:C9:33:51:9A:86:47:F8:2B:9D:BF:56:1E:0F:57:C0:70:A0:DA:C4:4B:93:9C:EB:BA:3C:02:57:21:D4:46:5E:F4:17:C1:A8:6A:AC:CA:3D:FB:51:1A:4F:5A:8F:93:09:8F:07:25:3B:32:B7:DE:89:83:22:97:12:8A:2B:67:C4:93:56:1E:D2:FF:D5:B8:55:5F:B8" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 04:30:53", "not_valid_before": "2022-07-06 04:38:54" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.720) 0:00:13.739 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "8A:94:1E:CC:14:86:F2:5F:BE:A3:0B:04:B8:91:8D:D3:C3:5A:D9:2C" }, "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": "18:2F:B5:FD:A4:F9:C6:E4:1B:E7:81:74:E5:3B:E0:61:4C:09:1C:D1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "60:AD:37:7C:AD:32:8D:9A:BB:16:18:AE:81:65:86:1E:44:8B:C7:D2:33:95:3F:E1:20:EC:50:DC:5E:64:46:94:F9:1D:A3:CB:7D:67:14:9E:30:45:0D:37:2F:1F:DA:E3:B7:54:0E:38:89:8E:5F:49:83:6F:2E:AD:AE:C2:95:34:43:E1:C0:80:BF:4D:5A:7B:9F:DF:B3:55:5F:7D:74:3F:7E:40:9C:7A:22:05:88:A2:00:16:2D:1E:E7:D5:42:F5:11:C2:91:9A:BF:00:3A:FC:65:17:60:3D:52:C6:17:FF:44:6D:A4:67:C0:3B:36:0C:FE:91:16:C4:49:FD:09:90:07:CA:D6:D0:C3:5D:66:8E:74:7A:8F:51:5F:17:74:4F:8B:74:4A:5A:FE:21:4B:D8:68:63:34:E1:D3:2A:6E:B9:A9:C6:D2:1C:A4:D7:C6:20:E7:8F:1A:01:27:E7:12:7D:ED:52:9A:59:5E:54:E2:C9:33:51:9A:86:47:F8:2B:9D:BF:56:1E:0F:57:C0:70:A0:DA:C4:4B:93:9C:EB:BA:3C:02:57:21:D4:46:5E:F4:17:C1:A8:6A:AC:CA:3D:FB:51:1A:4F:5A:8F:93:09:8F:07:25:3B:32:B7:DE:89:83:22:97:12:8A:2B:67:C4:93:56:1E:D2:FF:D5:B8:55:5F:B8" }, "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "validity": { "not_valid_after": "2023-07-06 04:30:53", "not_valid_before": "2022-07-06 04:38:54" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.080) 0:00:13.820 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.074) 0:00:13.894 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.063) 0:00:13.958 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.077) 0:00:14.035 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.054) 0:00:14.090 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.051) 0:00:14.141 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject_complex.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.090524", "end": "2022-07-06 00:39:02.212636", "rc": 0, "start": "2022-07-06 00:39:02.122112" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 04:39:02 +0000 (0:00:00.471) 0:00:14.613 ******** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 04:39:03 +0000 (0:00:00.056) 0:00:14.669 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.55s /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.37s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.36s /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Install the package, force upgrade -------------------------------------- 1.18s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpj_xtuxdz/tests/certificate/tests_subject_complex.yml:2 ---------------- fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.05s /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Install certreader ------------------------------------------------------ 0.87s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:18 - Gathering Facts --------------------------------------------------------- 0.84s /tmp/tmpj_xtuxdz/tests/certificate/tests_subject_complex.yml:16 --------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.82s /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Parse certificate ------------------------------------------------------- 0.72s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.52s /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.52s /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 0.51s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:26 - Retrieve auto-renew flag ------------------------------------------------ 0.47s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:132 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.41s /tmp/tmpsp7qopjw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Retrieve key file stats ------------------------------------------------- 0.38s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:53 - Verify certificate file owner and group --------------------------------- 0.08s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:37 - Load certificate YAML to cert_issued variable --------------------------- 0.08s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:79 - Verify key file owner and group ----------------------------------------- 0.08s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:64 - Verify key size --------------------------------------------------------- 0.08s /tmp/tmpj_xtuxdz/tests/certificate/tasks/assert_certificate_parameters.yml:99 -