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:48:59 +0000 (0:00:00.019) 0:00:00.019 ******** 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.192487", "end": "2022-07-06 04:48:59.141407", "rc": 0, "start": "2022-07-06 04:48:58.948920" } 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:49:00 +0000 (0:00:00.786) 0:00:00.805 ******** =============================================================================== Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_dns_ip_email.yml *********************************************** 2 plays in /tmp/tmphw7p6t3p/tests/tests_dns_ip_email.yml PLAY [Issue certificate with dns, ip and email in SAN] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmphw7p6t3p/tests/tests_dns_ip_email.yml:2 Wednesday 06 July 2022 04:49:00 +0000 (0:00:00.021) 0:00:00.827 ******** 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:49:01 +0000 (0:00:01.039) 0:00:01.866 ******** 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:49:01 +0000 (0:00:00.026) 0:00:01.893 ******** 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:49:01 +0000 (0:00:00.519) 0:00:02.413 ******** 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:49:01 +0000 (0:00:00.039) 0:00:02.452 ******** 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:49:04 +0000 (0:00:02.387) 0:00:04.839 ******** 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:49:05 +0000 (0:00:01.887) 0:00:06.727 ******** 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:49:06 +0000 (0:00:00.545) 0:00:07.272 ******** 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:49:06 +0000 (0:00:00.392) 0:00:07.664 ******** 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": "3796992", "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:49:07 +0000 (0:00:00.804) 0:00:08.469 ******** changed: [/cache/centos-8.qcow2] => (item={'name': 'mycert_dns_ip_email', 'common_name': 'My Certificate with SAN', 'dns': ['sub1.example.com', 'www.example.com', 'sub2.example.com', 'sub3.example.com'], 'ip': ['192.0.2.12', '198.51.100.65', '2001:db8::2:1'], 'email': ['sysadmin@example.com', 'support@example.com'], 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "My Certificate with SAN", "dns": [ "sub1.example.com", "www.example.com", "sub2.example.com", "sub3.example.com" ], "email": [ "sysadmin@example.com", "support@example.com" ], "ip": [ "192.0.2.12", "198.51.100.65", "2001:db8::2:1" ], "name": "mycert_dns_ip_email" } } 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_dns_ip_email.yml:24 Wednesday 06 July 2022 04:49:09 +0000 (0:00:02.012) 0:00:10.481 ******** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmphw7p6t3p/tests/tests_dns_ip_email.yml:54 Wednesday 06 July 2022 04:49:10 +0000 (0:00:00.801) 0:00:11.283 ******** included: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml for /cache/centos-8.qcow2 => (item={'path': '/etc/pki/tls/certs/mycert_dns_ip_email.crt', 'key_path': '/etc/pki/tls/private/mycert_dns_ip_email.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'My Certificate with SAN'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'sub1.example.com'}, {'name': 'DNS', 'value': 'www.example.com'}, {'name': 'DNS', 'value': 'sub2.example.com'}, {'name': 'DNS', 'value': 'sub3.example.com'}, {'name': 'email', 'value': 'sysadmin@example.com'}, {'name': 'email', 'value': 'support@example.com'}, {'name': 'IP Address', 'value': '192.0.2.12'}, {'name': 'IP Address', 'value': '198.51.100.65'}, {'name': 'IP Address', 'value': '2001:db8::2:1'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 04:49:10 +0000 (0:00:00.040) 0:00:11.324 ******** 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:49:10 +0000 (0:00:00.066) 0:00:11.390 ******** 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:49:12 +0000 (0:00:01.802) 0:00:13.192 ******** 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:49:13 +0000 (0:00:01.154) 0:00:14.347 ******** 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:49:14 +0000 (0:00:00.879) 0:00:15.226 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657082948.6930878, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "265f362cb58f798fa2dbcd5865283012aa8d73c5", "ctime": 1657082948.6900878, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8494470, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657082948.6900878, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_dns_ip_email.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1484, "uid": 0, "version": "1049141434", "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:49:15 +0000 (0:00:00.512) 0:00:15.738 ******** 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:49:15 +0000 (0:00:00.031) 0:00:15.770 ******** 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:49:15 +0000 (0:00:00.083) 0:00:15.853 ******** 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:49:15 +0000 (0:00:00.085) 0:00:15.939 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657082948.6450877, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "41f5d718b3a4161f31c6677f7d44717d4c6c51a5", "ctime": 1657082948.6900878, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8505204, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657082948.6900878, "nlink": 1, "path": "/etc/pki/tls/private/mycert_dns_ip_email.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1531589139", "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:49:15 +0000 (0:00:00.399) 0:00:16.338 ******** 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:49:15 +0000 (0:00:00.033) 0:00:16.371 ******** 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:49:15 +0000 (0:00:00.075) 0:00:16.447 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_dns_ip_email.crt" ], "delta": "0:00:00.245950", "end": "2022-07-06 04:49:15.426825", "rc": 0, "start": "2022-07-06 04:49:15.180875" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "My Certificate with SAN" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "sub1.example.com" }, { "name": "DNS", "value": "www.example.com" }, { "name": "DNS", "value": "sub2.example.com" }, { "name": "DNS", "value": "sub3.example.com" }, { "name": "email", "value": "sysadmin@example.com" }, { "name": "email", "value": "support@example.com" }, { "name": "IP Address", "value": "192.0.2.12" }, { "name": "IP Address", "value": "198.51.100.65" }, { "name": "IP Address", "value": "2001:db8::2:1" } ], "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": "25:AE:A0:D0:29:82:2B:6C:D6:40:6E:B4:FE:B1:21:30:5B:8E:D8:89", "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": "84:8F:5B:2F:9F:7B:4C:CA:19:4B:AC:F0:97:8D:A0:38:32:54:6E:5F:F6:D6:52:86:43:6A:98:CE:6F:5C:5A:0C:37:A0:7A:53:A2:BA:F6:17:54:4F:1C:74:D0:45:E2:09:98:3C:17:95:4E:01:22:1D:95:44:B7:61:3B:5E:D3:D7:73:42:F9:56:C0:B4:B6:3B:4C:19:17:CC:06:B8:6D:22:06:29:85:92:3E:19:E1:9B:77:59:74:EE:5E:54:84:A8:6C:F3:A5:3D:B9:74:21:78:78:99:87:72:B7:50:A5:81:BB:57:50:72:0A:61:69:08:BC:95:60:E1:CD:04:AC:C2:4A:14:B6:D8:70:69:2C:C7:A2:24:E3:AC:FF:93:6E:24:2E:52:02:09:30:09:F7:CA:E3:26:C2:A6:F3:CC:69:5D:61:21:F9:0F:F1:D2:6A:07:C6:16:72:B7:BF:D6:62:55:F0:F4:3E:3F:49:1A:F1:81:29:9A:14:0C:75:08:17:AD:F2:37:03:94:2D:D7:DE:5B:53:8E:9D:BF:CB:13:BD:8B:BB:94:09:62:BE:73:DD:2C:55:23:BE:20:34:DE:7E:AC:1D:EA:85:00:8F:2B:15:18:EB:2B:FA:A4:B7:76:EF:4E:3D:DC:A9:4A:5B:9D:FC:10:D8:16:26:23:28:BC:17:24" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 04:44:16", "not_valid_before": "2022-07-06 04:49:08" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 04:49:16 +0000 (0:00:00.644) 0:00:17.092 ******** 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": "sub1.example.com" }, { "name": "DNS", "value": "www.example.com" }, { "name": "DNS", "value": "sub2.example.com" }, { "name": "DNS", "value": "sub3.example.com" }, { "name": "email", "value": "sysadmin@example.com" }, { "name": "email", "value": "support@example.com" }, { "name": "IP Address", "value": "192.0.2.12" }, { "name": "IP Address", "value": "198.51.100.65" }, { "name": "IP Address", "value": "2001:db8::2:1" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "25:AE:A0:D0:29:82:2B:6C:D6:40:6E:B4:FE:B1:21:30:5B:8E:D8:89" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "84:8F:5B:2F:9F:7B:4C:CA:19:4B:AC:F0:97:8D:A0:38:32:54:6E:5F:F6:D6:52:86:43:6A:98:CE:6F:5C:5A:0C:37:A0:7A:53:A2:BA:F6:17:54:4F:1C:74:D0:45:E2:09:98:3C:17:95:4E:01:22:1D:95:44:B7:61:3B:5E:D3:D7:73:42:F9:56:C0:B4:B6:3B:4C:19:17:CC:06:B8:6D:22:06:29:85:92:3E:19:E1:9B:77:59:74:EE:5E:54:84:A8:6C:F3:A5:3D:B9:74:21:78:78:99:87:72:B7:50:A5:81:BB:57:50:72:0A:61:69:08:BC:95:60:E1:CD:04:AC:C2:4A:14:B6:D8:70:69:2C:C7:A2:24:E3:AC:FF:93:6E:24:2E:52:02:09:30:09:F7:CA:E3:26:C2:A6:F3:CC:69:5D:61:21:F9:0F:F1:D2:6A:07:C6:16:72:B7:BF:D6:62:55:F0:F4:3E:3F:49:1A:F1:81:29:9A:14:0C:75:08:17:AD:F2:37:03:94:2D:D7:DE:5B:53:8E:9D:BF:CB:13:BD:8B:BB:94:09:62:BE:73:DD:2C:55:23:BE:20:34:DE:7E:AC:1D:EA:85:00:8F:2B:15:18:EB:2B:FA:A4:B7:76:EF:4E:3D:DC:A9:4A:5B:9D:FC:10:D8:16:26:23:28:BC:17:24" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "My Certificate with SAN" } ], "validity": { "not_valid_after": "2023-07-06 04:44:16", "not_valid_before": "2022-07-06 04:49:08" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 04:49:16 +0000 (0:00:00.071) 0:00:17.163 ******** 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:49:16 +0000 (0:00:00.070) 0:00:17.233 ******** 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:49:16 +0000 (0:00:00.034) 0:00:17.267 ******** 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:49:16 +0000 (0:00:00.077) 0:00:17.345 ******** 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:49:16 +0000 (0:00:00.074) 0:00:17.420 ******** 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:49:16 +0000 (0:00:00.095) 0:00:17.516 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_dns_ip_email.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.060579", "end": "2022-07-06 04:49:16.280559", "rc": 0, "start": "2022-07-06 04:49:16.219980" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 04:49:17 +0000 (0:00:00.424) 0:00:17.940 ******** 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:49:17 +0000 (0:00:00.052) 0:00:17.993 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 2.39s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- linux-system-roles.certificate : Ensure certificate requests ------------ 2.01s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 linux-system-roles.certificate : Ensure provider packages are installed --- 1.89s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Ensure python3 is installed --------------------------------------------- 1.80s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:6 -------------- Install the package, force upgrade -------------------------------------- 1.15s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:11 ------------- Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmphw7p6t3p/tests/tests_dns_ip_email.yml:2 ------------------------------- Install certreader ------------------------------------------------------ 0.88s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:18 ------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.80s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmphw7p6t3p/tests/tests_dns_ip_email.yml:24 ------------------------------ Enable HA repos --------------------------------------------------------- 0.79s /cache/centos-8_setup.yml:5 --------------------------------------------------- Parse certificate ------------------------------------------------------- 0.64s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.55s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.52s /tmp/tmphw7p6t3p/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Retrieve certificate file stats ----------------------------------------- 0.51s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:26 ------------- Retrieve auto-renew flag ------------------------------------------------ 0.42s /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 - Verify certificate Extended Key Usage ----------------------------------- 0.10s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:125 ------------ Verify certificate permissions ------------------------------------------ 0.09s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:49 ------------- Verify certificate file owner and group --------------------------------- 0.08s /tmp/tmphw7p6t3p/tests/tasks/assert_certificate_parameters.yml:37 ------------- 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:02:34 +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.232557", "end": "2022-07-06 05:02:34.030413", "rc": 0, "start": "2022-07-06 05:02:33.797856" } 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:02:34 +0000 (0:00:00.818) 0:00:00.836 ******** =============================================================================== Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- PLAYBOOK: tests_dns_ip_email.yml *********************************************** 2 plays in /tmp/tmpap4wle35/tests/certificate/tests_dns_ip_email.yml PLAY [Issue certificate with dns, ip and email in SAN] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tests_dns_ip_email.yml:2 Wednesday 06 July 2022 05:02:34 +0000 (0:00:00.024) 0:00:00.861 ******** 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:02:35 +0000 (0:00:01.025) 0:00:01.886 ******** 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:02:35 +0000 (0:00:00.028) 0:00:01.915 ******** 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:02:36 +0000 (0:00:00.518) 0:00:02.434 ******** 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:02:36 +0000 (0:00:00.040) 0:00:02.474 ******** 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:02:38 +0000 (0:00:02.095) 0:00:04.570 ******** 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:02:40 +0000 (0:00:01.825) 0:00:06.396 ******** 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:02:40 +0000 (0:00:00.522) 0:00:06.918 ******** 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:02:41 +0000 (0:00:00.413) 0:00:07.332 ******** 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": "3792896", "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:02:42 +0000 (0:00:00.799) 0:00:08.132 ******** changed: [/cache/centos-8.qcow2] => (item={'name': 'mycert_dns_ip_email', 'common_name': 'My Certificate with SAN', 'dns': ['sub1.example.com', 'www.example.com', 'sub2.example.com', 'sub3.example.com'], 'ip': ['192.0.2.12', '198.51.100.65', '2001:db8::2:1'], 'email': ['sysadmin@example.com', 'support@example.com'], 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "My Certificate with SAN", "dns": [ "sub1.example.com", "www.example.com", "sub2.example.com", "sub3.example.com" ], "email": [ "sysadmin@example.com", "support@example.com" ], "ip": [ "192.0.2.12", "198.51.100.65", "2001:db8::2:1" ], "name": "mycert_dns_ip_email" } } 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_dns_ip_email.yml:24 Wednesday 06 July 2022 05:02:43 +0000 (0:00:01.000) 0:00:09.132 ******** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpap4wle35/tests/certificate/tests_dns_ip_email.yml:54 Wednesday 06 July 2022 05:02:43 +0000 (0:00:00.771) 0:00:09.904 ******** included: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/centos-8.qcow2 => (item={'path': '/etc/pki/tls/certs/mycert_dns_ip_email.crt', 'key_path': '/etc/pki/tls/private/mycert_dns_ip_email.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'My Certificate with SAN'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'sub1.example.com'}, {'name': 'DNS', 'value': 'www.example.com'}, {'name': 'DNS', 'value': 'sub2.example.com'}, {'name': 'DNS', 'value': 'sub3.example.com'}, {'name': 'email', 'value': 'sysadmin@example.com'}, {'name': 'email', 'value': 'support@example.com'}, {'name': 'IP Address', 'value': '192.0.2.12'}, {'name': 'IP Address', 'value': '198.51.100.65'}, {'name': 'IP Address', 'value': '2001:db8::2:1'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 05:02:44 +0000 (0:00:00.042) 0:00:09.947 ******** 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:02:44 +0000 (0:00:00.027) 0:00:09.974 ******** 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:02:45 +0000 (0:00:01.833) 0:00:11.808 ******** 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:02:47 +0000 (0:00:01.160) 0:00:12.969 ******** 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:02:47 +0000 (0:00:00.899) 0:00:13.868 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657083762.136881, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d1ce129e5f242261fd6aa4b557830e33a298e5b1", "ctime": 1657083762.1348813, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8539527, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657083762.1348813, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_dns_ip_email.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1484, "uid": 0, "version": "3907611845", "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:02:48 +0000 (0:00:00.517) 0:00:14.386 ******** 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:02:48 +0000 (0:00:00.063) 0:00:14.450 ******** 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:02:48 +0000 (0:00:00.074) 0:00:14.525 ******** 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:02:48 +0000 (0:00:00.044) 0:00:14.569 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "stat": { "atime": 1657083762.087881, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "64874f10fc38f941cf17136c868c449afff37bcb", "ctime": 1657083762.1348813, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8539524, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657083762.1348813, "nlink": 1, "path": "/etc/pki/tls/private/mycert_dns_ip_email.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "4249564459", "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:02:49 +0000 (0:00:00.382) 0:00:14.952 ******** 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:02:49 +0000 (0:00:00.063) 0:00:15.015 ******** 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:02:49 +0000 (0:00:00.073) 0:00:15.089 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_dns_ip_email.crt" ], "delta": "0:00:00.231234", "end": "2022-07-06 05:02:48.931965", "rc": 0, "start": "2022-07-06 05:02:48.700731" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "My Certificate with SAN" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "sub1.example.com" }, { "name": "DNS", "value": "www.example.com" }, { "name": "DNS", "value": "sub2.example.com" }, { "name": "DNS", "value": "sub3.example.com" }, { "name": "email", "value": "sysadmin@example.com" }, { "name": "email", "value": "support@example.com" }, { "name": "IP Address", "value": "192.0.2.12" }, { "name": "IP Address", "value": "198.51.100.65" }, { "name": "IP Address", "value": "2001:db8::2:1" } ], "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": "85:C6:4A:A1:F1:E5:99:7E:81:73:7D:1A:18:0C:93:B6:CC:CA:5F:9A", "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": "26:D3:6F:A2:9E:FD:D8:A8:A1:CC:2A:FE:D2:49:F3:03:3F:89:55:81:3E:73:68:A3:D9:D1:CD:DC:B4:79:0C:95:72:39:11:39:8F:44:FF:F4:2B:7A:38:41:1D:99:94:59:12:1D:A2:72:CB:96:E4:44:FF:AC:58:EC:AE:D5:3B:3A:02:95:26:23:AD:4B:DD:0D:B9:03:41:39:C5:7B:DF:9B:C6:90:84:C3:A8:E7:73:50:D7:A8:0F:79:1A:51:F0:14:58:95:DA:6E:53:00:F3:39:58:18:B1:37:D2:93:CA:A4:26:25:A1:B6:21:98:3B:5D:A9:BF:C6:36:20:30:25:B8:98:4B:7A:70:03:30:4C:74:D5:27:C0:8A:67:8A:0C:24:47:18:70:6C:73:02:6E:5C:9B:F9:E2:4D:D0:35:94:E2:88:6C:9C:58:FB:FE:9B:45:AB:DD:E2:9C:D8:03:5C:27:1A:00:5D:17:14:69:5C:B7:5D:55:76:B3:A9:06:69:5A:E4:C4:65:59:5F:9D:EC:98:22:9B:34:A0:BA:E6:55:5A:E2:D5:91:59:37:31:A0:6B:49:7A:80:66:F2:E9:6C:7C:22:E4:DB:AF:FA:31:8E:5F:C8:24:D7:1A:D3:FE:A8:17:50:FF:79:32:29:19:29:9F:0D:11:04:9D:78:86:AB:05" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 04:57:42", "not_valid_before": "2022-07-06 05:02:42" } } 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:02:49 +0000 (0:00:00.645) 0:00:15.734 ******** 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": "sub1.example.com" }, { "name": "DNS", "value": "www.example.com" }, { "name": "DNS", "value": "sub2.example.com" }, { "name": "DNS", "value": "sub3.example.com" }, { "name": "email", "value": "sysadmin@example.com" }, { "name": "email", "value": "support@example.com" }, { "name": "IP Address", "value": "192.0.2.12" }, { "name": "IP Address", "value": "198.51.100.65" }, { "name": "IP Address", "value": "2001:db8::2:1" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "85:C6:4A:A1:F1:E5:99:7E:81:73:7D:1A:18:0C:93:B6:CC:CA:5F:9A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "26:D3:6F:A2:9E:FD:D8:A8:A1:CC:2A:FE:D2:49:F3:03:3F:89:55:81:3E:73:68:A3:D9:D1:CD:DC:B4:79:0C:95:72:39:11:39:8F:44:FF:F4:2B:7A:38:41:1D:99:94:59:12:1D:A2:72:CB:96:E4:44:FF:AC:58:EC:AE:D5:3B:3A:02:95:26:23:AD:4B:DD:0D:B9:03:41:39:C5:7B:DF:9B:C6:90:84:C3:A8:E7:73:50:D7:A8:0F:79:1A:51:F0:14:58:95:DA:6E:53:00:F3:39:58:18:B1:37:D2:93:CA:A4:26:25:A1:B6:21:98:3B:5D:A9:BF:C6:36:20:30:25:B8:98:4B:7A:70:03:30:4C:74:D5:27:C0:8A:67:8A:0C:24:47:18:70:6C:73:02:6E:5C:9B:F9:E2:4D:D0:35:94:E2:88:6C:9C:58:FB:FE:9B:45:AB:DD:E2:9C:D8:03:5C:27:1A:00:5D:17:14:69:5C:B7:5D:55:76:B3:A9:06:69:5A:E4:C4:65:59:5F:9D:EC:98:22:9B:34:A0:BA:E6:55:5A:E2:D5:91:59:37:31:A0:6B:49:7A:80:66:F2:E9:6C:7C:22:E4:DB:AF:FA:31:8E:5F:C8:24:D7:1A:D3:FE:A8:17:50:FF:79:32:29:19:29:9F:0D:11:04:9D:78:86:AB:05" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "My Certificate with SAN" } ], "validity": { "not_valid_after": "2023-07-06 04:57:42", "not_valid_before": "2022-07-06 05:02:42" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 05:02:49 +0000 (0:00:00.045) 0:00:15.779 ******** 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:02:49 +0000 (0:00:00.047) 0:00:15.826 ******** 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:02:49 +0000 (0:00:00.032) 0:00:15.859 ******** 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:02:49 +0000 (0:00:00.044) 0:00:15.904 ******** 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:02:50 +0000 (0:00:00.045) 0:00:15.950 ******** 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:02:50 +0000 (0:00:00.054) 0:00:16.004 ******** ok: [/cache/centos-8.qcow2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_dns_ip_email.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.061970", "end": "2022-07-06 05:02:49.630837", "rc": 0, "start": "2022-07-06 05:02:49.568867" } 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:02:50 +0000 (0:00:00.424) 0:00:16.429 ******** 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:02:50 +0000 (0:00:00.053) 0:00:16.483 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.10s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.83s /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 - Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpap4wle35/tests/certificate/tests_dns_ip_email.yml:2 ------------------- fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.00s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Install certreader ------------------------------------------------------ 0.90s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:18 - Enable HA repos --------------------------------------------------------- 0.82s /cache/centos-8_setup.yml:5 --------------------------------------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.80s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.77s /tmp/tmpap4wle35/tests/certificate/tests_dns_ip_email.yml:24 ------------------ Parse certificate ------------------------------------------------------- 0.65s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.52s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.52s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Retrieve certificate file stats ----------------------------------------- 0.52s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:26 - Retrieve auto-renew flag ------------------------------------------------ 0.42s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:132 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.41s /tmp/tmpch7qdmnu/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Retrieve key file stats ------------------------------------------------- 0.38s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:53 - Verify certificate file owner and group --------------------------------- 0.07s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:37 - Verify key file owner and group ----------------------------------------- 0.07s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:64 - Verify if certificate file exists --------------------------------------- 0.06s /tmp/tmpap4wle35/tests/certificate/tasks/assert_certificate_parameters.yml:31 -