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/tmppc8868jw 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_basic_self_signed.yml ****************************************** 2 plays in /tmp/tmprylna2eo/tests/tests_basic_self_signed.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmprylna2eo/tests/tests_basic_self_signed.yml:2 Wednesday 06 July 2022 06:25:53 +0000 (0:00:00.014) 0:00:00.014 ******** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 06:25:54 +0000 (0:00:01.152) 0:00:01.166 ******** included: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 06:25:54 +0000 (0:00:00.028) 0:00:01.195 ******** ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 06:25:54 +0000 (0:00:00.532) 0:00:01.727 ******** skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 06:25:54 +0000 (0:00:00.040) 0:00:01.768 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 06:25:55 +0000 (0:00:01.108) 0:00:02.876 ******** ok: [/cache/rhel-9.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/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 06:25:56 +0000 (0:00:00.950) 0:00:03.827 ******** ok: [/cache/rhel-9.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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 06:25:57 +0000 (0:00:00.510) 0:00:04.337 ******** ok: [/cache/rhel-9.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": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 06:25:57 +0000 (0:00:00.404) 0:00:04.741 ******** ok: [/cache/rhel-9.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 02:21:33 EDT", "ActiveEnterTimestampMonotonic": "202991623", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target dbus-broker.service network.target syslog.target basic.target system.slice dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 02:21:33 EDT", "AssertTimestampMonotonic": "202981017", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "35968056000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 02:21:33 EDT", "ConditionTimestampMonotonic": "202981015", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "19556", "ExecMainStartTimestamp": "Wed 2022-07-06 02:21:33 EDT", "ExecMainStartTimestampMonotonic": "202982480", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 02:21:33 EDT", "InactiveExitTimestampMonotonic": "202982812", "InvocationID": "c0689ec12baa457caecfdc36591ca310", "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": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14636", "LimitNPROCSoft": "14636", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14636", "LimitSIGPENDINGSoft": "14636", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "19556", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "2621440", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-07-06 02:25:19 EDT", "StateChangeTimestampMonotonic": "428838015", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "23418", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 06:25:58 +0000 (0:00:00.778) 0:00:05.520 ******** changed: [/cache/rhel-9.qcow2.snap] => (item={'name': 'mycert_basic_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_basic_self_signed" } } MSG: Certificate requested (new). META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmprylna2eo/tests/tests_basic_self_signed.yml:13 Wednesday 06 July 2022 06:25:59 +0000 (0:00:01.090) 0:00:06.610 ******** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmprylna2eo/tests/tests_basic_self_signed.yml:27 Wednesday 06 July 2022 06:26:00 +0000 (0:00:00.783) 0:00:07.393 ******** included: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml for /cache/rhel-9.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_basic_self_signed.crt', 'key_path': '/etc/pki/tls/private/mycert_basic_self_signed.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 06:26:00 +0000 (0:00:00.043) 0:00:07.437 ******** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 06:26:00 +0000 (0:00:00.031) 0:00:07.469 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 06:26:01 +0000 (0:00:00.901) 0:00:08.371 ******** ok: [/cache/rhel-9.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.9/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 06:26:02 +0000 (0:00:01.178) 0:00:09.550 ******** ok: [/cache/rhel-9.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.9/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.9/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.9/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.9/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.9/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.9/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 06:26:03 +0000 (0:00:00.897) 0:00:10.447 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657088759.607071, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8c167b4c051db1d58c18907581a3e86fa471f881", "ctime": 1657088759.6040711, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25257061, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657088759.6040711, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_basic_self_signed.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "2134350294", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 06:26:03 +0000 (0:00:00.493) 0:00:10.941 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 06:26:04 +0000 (0:00:00.060) 0:00:11.001 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 06:26:04 +0000 (0:00:00.046) 0:00:11.047 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 06:26:04 +0000 (0:00:00.069) 0:00:11.117 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657088759.540071, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "eb86324e07a127053d0e65091c4235a938114f4a", "ctime": 1657088759.6040711, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16829122, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657088759.6040711, "nlink": 1, "path": "/etc/pki/tls/private/mycert_basic_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "286805261", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 06:26:04 +0000 (0:00:00.416) 0:00:11.533 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 06:26:04 +0000 (0:00:00.059) 0:00:11.592 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 06:26:04 +0000 (0:00:00.045) 0:00:11.638 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_basic_self_signed.crt" ], "delta": "0:00:00.195938", "end": "2022-07-06 02:26:05.416561", "rc": 0, "start": "2022-07-06 02:26:05.220623" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "AE:BD:C6:D9:B7:73:5E:3F:BD:8A:F0:20:14:39:64:1F:BA:62:6E:AA", "critical": false }, "authorityKeyIdentifier": { "value": "E2:7D:58:1C:3B:07:55:BD:7E:79:94:D5:33:C0:12:12:C8:60:DF:80", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "9D:F5:74:34:3C:B8:60:5C:4E:3C:45:9A:E7:3D:A8:C3:4C:2E:A4:51:87:03:36:EA:88:29:E2:99:3F:C4:C8:34:1A:69:A6:61:82:E0:5F:B2:C8:6C:FC:48:A0:81:53:FF:CC:94:2D:12:D5:B2:92:6C:90:44:CE:16:03:69:C0:FA:57:6E:3A:8E:2A:06:68:E7:95:AD:CF:57:B9:F4:FE:AB:F2:65:9B:B9:55:19:30:FF:E8:12:2C:86:F3:DC:B2:9B:62:69:3D:8A:96:1E:4A:29:FA:E0:CA:7B:E6:7A:BA:BD:C7:E7:22:BD:43:B8:7A:CF:96:30:E5:A2:36:C5:15:92:11:02:B8:F2:06:12:33:B3:32:93:F3:FF:02:72:10:C6:9D:B8:0C:13:07:16:D2:16:87:79:EC:4D:BA:78:E7:CC:32:12:0F:27:C3:C9:9F:F5:BC:20:A4:07:29:29:43:50:00:8C:60:DE:EE:55:8A:A8:73:F5:F8:83:F5:3F:68:11:3F:28:7F:E0:BA:03:18:84:DA:A9:42:A3:4E:28:98:02:4D:82:D7:50:69:31:B8:A7:3B:D2:10:96:E9:47:F6:51:EF:D9:6A:CA:C9:55:C2:AD:42:A4:78:79:96:84:01:D3:92:A0:04:BE:9D:7F:85:53:9E:DD:97:96:A6:19:94:1B" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 06:21:34", "not_valid_before": "2022-07-06 06:25:59" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 06:26:05 +0000 (0:00:00.680) 0:00:12.318 ******** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E2:7D:58:1C:3B:07:55:BD:7E:79:94:D5:33:C0:12:12:C8:60:DF:80" }, "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": "AE:BD:C6:D9:B7:73:5E:3F:BD:8A:F0:20:14:39:64:1F:BA:62:6E:AA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "9D:F5:74:34:3C:B8:60:5C:4E:3C:45:9A:E7:3D:A8:C3:4C:2E:A4:51:87:03:36:EA:88:29:E2:99:3F:C4:C8:34:1A:69:A6:61:82:E0:5F:B2:C8:6C:FC:48:A0:81:53:FF:CC:94:2D:12:D5:B2:92:6C:90:44:CE:16:03:69:C0:FA:57:6E:3A:8E:2A:06:68:E7:95:AD:CF:57:B9:F4:FE:AB:F2:65:9B:B9:55:19:30:FF:E8:12:2C:86:F3:DC:B2:9B:62:69:3D:8A:96:1E:4A:29:FA:E0:CA:7B:E6:7A:BA:BD:C7:E7:22:BD:43:B8:7A:CF:96:30:E5:A2:36:C5:15:92:11:02:B8:F2:06:12:33:B3:32:93:F3:FF:02:72:10:C6:9D:B8:0C:13:07:16:D2:16:87:79:EC:4D:BA:78:E7:CC:32:12:0F:27:C3:C9:9F:F5:BC:20:A4:07:29:29:43:50:00:8C:60:DE:EE:55:8A:A8:73:F5:F8:83:F5:3F:68:11:3F:28:7F:E0:BA:03:18:84:DA:A9:42:A3:4E:28:98:02:4D:82:D7:50:69:31:B8:A7:3B:D2:10:96:E9:47:F6:51:EF:D9:6A:CA:C9:55:C2:AD:42:A4:78:79:96:84:01:D3:92:A0:04:BE:9D:7F:85:53:9E:DD:97:96:A6:19:94:1B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 06:21:34", "not_valid_before": "2022-07-06 06:25:59" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 06:26:05 +0000 (0:00:00.045) 0:00:12.364 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 06:26:05 +0000 (0:00:00.046) 0:00:12.410 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 06:26:05 +0000 (0:00:00.033) 0:00:12.444 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 06:26:05 +0000 (0:00:00.049) 0:00:12.493 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 06:26:05 +0000 (0:00:00.054) 0:00:12.547 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 06:26:05 +0000 (0:00:00.044) 0:00:12.592 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_basic_self_signed.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048025", "end": "2022-07-06 02:26:06.099913", "rc": 0, "start": "2022-07-06 02:26:06.051888" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 06:26:06 +0000 (0:00:00.410) 0:00:13.003 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 06:26:06 +0000 (0:00:00.055) 0:00:13.059 ******** =============================================================================== Install the package, force upgrade -------------------------------------- 1.18s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:11 ------------- Gathering Facts --------------------------------------------------------- 1.15s /tmp/tmprylna2eo/tests/tests_basic_self_signed.yml:2 -------------------------- linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.11s /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- linux-system-roles.certificate : Ensure certificate requests ------------ 1.09s /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 linux-system-roles.certificate : Ensure provider packages are installed --- 0.95s /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Ensure python3 is installed --------------------------------------------- 0.90s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:6 -------------- Install certreader ------------------------------------------------------ 0.90s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:18 ------------- Gathering Facts --------------------------------------------------------- 0.78s /tmp/tmprylna2eo/tests/tests_basic_self_signed.yml:13 ------------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.78s /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Parse certificate ------------------------------------------------------- 0.68s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.53s /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.51s /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - Retrieve certificate file stats ----------------------------------------- 0.49s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:26 ------------- Retrieve key file stats ------------------------------------------------- 0.42s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:55 ------------- Retrieve auto-renew flag ------------------------------------------------ 0.41s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:141 ------------ linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.40s /tmp/tmprylna2eo/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 - Verify certificate permissions ------------------------------------------ 0.07s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:49 ------------- Verify if certificate file exists --------------------------------------- 0.06s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:31 ------------- Verify if key file exists ----------------------------------------------- 0.06s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:60 ------------- Verify certificate auto-renew flag -------------------------------------- 0.06s /tmp/tmprylna2eo/tests/tasks/assert_certificate_parameters.yml:150 ------------ 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/tmppc8868jw 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_basic_self_signed.yml ****************************************** 2 plays in /tmp/tmppcorpegn/tests/certificate/tests_basic_self_signed.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppcorpegn/tests/certificate/tests_basic_self_signed.yml:2 Wednesday 06 July 2022 06:37:26 +0000 (0:00:00.014) 0:00:00.014 ******** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 06:37:27 +0000 (0:00:01.146) 0:00:01.161 ******** included: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 06:37:27 +0000 (0:00:00.028) 0:00:01.189 ******** ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 06:37:28 +0000 (0:00:00.534) 0:00:01.724 ******** skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-9.qcow2.snap] => (item=RedHat_9.0.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.0.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 06:37:28 +0000 (0:00:00.039) 0:00:01.764 ******** ok: [/cache/rhel-9.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/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 06:37:29 +0000 (0:00:01.085) 0:00:02.850 ******** ok: [/cache/rhel-9.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/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 06:37:30 +0000 (0:00:00.978) 0:00:03.829 ******** ok: [/cache/rhel-9.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": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 06:37:31 +0000 (0:00:00.523) 0:00:04.352 ******** ok: [/cache/rhel-9.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": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 06:37:31 +0000 (0:00:00.398) 0:00:04.750 ******** ok: [/cache/rhel-9.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 02:33:03 EDT", "ActiveEnterTimestampMonotonic": "196651017", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice network.target sysinit.target basic.target syslog.target dbus-broker.service systemd-journald.socket dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 02:33:03 EDT", "AssertTimestampMonotonic": "196638069", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "35001573000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 02:33:03 EDT", "ConditionTimestampMonotonic": "196638067", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "19537", "ExecMainStartTimestamp": "Wed 2022-07-06 02:33:03 EDT", "ExecMainStartTimestampMonotonic": "196639864", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-07-06 02:33:03 EDT", "InactiveExitTimestampMonotonic": "196640238", "InvocationID": "54468520e6274a09a70579107544ed55", "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": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14636", "LimitNPROCSoft": "14636", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14636", "LimitSIGPENDINGSoft": "14636", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "19537", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "2609152", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2022-07-06 02:36:52 EDT", "StateChangeTimestampMonotonic": "425846403", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "23418", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 06:37:32 +0000 (0:00:00.804) 0:00:05.555 ******** changed: [/cache/rhel-9.qcow2.snap] => (item={'name': 'mycert_basic_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_basic_self_signed" } } MSG: Certificate requested (new). META: role_complete for /cache/rhel-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmppcorpegn/tests/certificate/tests_basic_self_signed.yml:13 Wednesday 06 July 2022 06:37:33 +0000 (0:00:01.361) 0:00:06.917 ******** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmppcorpegn/tests/certificate/tests_basic_self_signed.yml:27 Wednesday 06 July 2022 06:37:34 +0000 (0:00:00.802) 0:00:07.719 ******** included: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/rhel-9.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_basic_self_signed.crt', 'key_path': '/etc/pki/tls/private/mycert_basic_self_signed.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 06:37:34 +0000 (0:00:00.042) 0:00:07.762 ******** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 06:37:34 +0000 (0:00:00.028) 0:00:07.790 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 06:37:35 +0000 (0:00:00.961) 0:00:08.752 ******** ok: [/cache/rhel-9.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.9/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 06:37:36 +0000 (0:00:01.226) 0:00:09.979 ******** ok: [/cache/rhel-9.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.9/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.9/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.9/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.9/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.9/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.9/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 06:37:37 +0000 (0:00:00.937) 0:00:10.916 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657089453.4992816, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "312e57ba6f7ba8892645f87f8cbfde1856412871", "ctime": 1657089453.4962816, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25257059, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657089453.4962816, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_basic_self_signed.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3089398523", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 06:37:38 +0000 (0:00:00.492) 0:00:11.409 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 06:37:38 +0000 (0:00:00.064) 0:00:11.474 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 06:37:38 +0000 (0:00:00.076) 0:00:11.550 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 06:37:38 +0000 (0:00:00.044) 0:00:11.595 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657089453.4342816, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "44af329513c8b459b82494f6fd6b2fbdedb4edc2", "ctime": 1657089453.4962816, "dev": 64516, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 16829122, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657089453.4962816, "nlink": 1, "path": "/etc/pki/tls/private/mycert_basic_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2254322558", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 06:37:38 +0000 (0:00:00.368) 0:00:11.964 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 06:37:38 +0000 (0:00:00.061) 0:00:12.025 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 06:37:38 +0000 (0:00:00.070) 0:00:12.095 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_basic_self_signed.crt" ], "delta": "0:00:00.200663", "end": "2022-07-06 02:37:39.552708", "rc": 0, "start": "2022-07-06 02:37:39.352045" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "BE:11:C4:B5:B1:DD:EF:0C:17:52:1D:A8:EE:F7:17:07:CC:12:4D:E2", "critical": false }, "authorityKeyIdentifier": { "value": "54:AF:7E:70:34:A9:C1:47:38:E3:1B:3F:D8:F2:4D:5B:65:C9:80:D2", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "21:4C:9B:15:53:9C:55:5D:22:6A:94:4A:22:54:71:85:E7:06:A9:71:CB:80:36:4C:9D:9B:5B:1C:BF:86:17:2C:F8:0E:DF:47:C5:CC:82:81:D1:86:CA:2E:73:E6:AB:A4:9C:9A:00:73:54:7E:60:19:FE:B8:97:1B:D2:38:15:3C:00:DB:7D:D0:A9:AF:35:AB:CE:26:8E:37:8A:51:5E:79:87:02:4C:41:A1:F3:0A:62:76:FF:8D:41:BE:3D:EB:46:98:65:D7:16:B9:CC:5B:EF:F9:9C:15:AD:06:33:C6:0D:C1:E1:8C:6E:7B:A6:CD:36:77:14:C5:7C:26:B5:BB:93:2B:C5:D0:5A:DF:60:A2:5D:53:D1:8B:FD:0E:36:75:8C:21:66:94:67:A0:AE:A6:7C:3D:3F:FF:F8:E0:DB:70:33:68:E8:51:7F:AD:47:8A:B5:3E:CC:A2:83:22:54:26:70:40:0A:35:62:EE:25:64:21:89:9A:B8:DD:F6:2D:1C:4B:8A:53:8A:BE:F5:9E:0F:29:91:03:F0:C5:5A:53:6E:ED:6A:22:FB:68:99:7F:E0:FD:44:79:2F:DB:71:DC:E3:0B:F1:1B:91:6E:B1:DF:3C:15:DC:68:AD:97:3A:17:FC:3B:A6:52:7E:3F:B8:6A:0E:A9:1F:D8:28:9F:BB:BB:4B:6A" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 06:33:04", "not_valid_before": "2022-07-06 06:37:33" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 06:37:39 +0000 (0:00:00.679) 0:00:12.775 ******** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "54:AF:7E:70:34:A9:C1:47:38:E3:1B:3F:D8:F2:4D:5B:65:C9:80:D2" }, "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": "BE:11:C4:B5:B1:DD:EF:0C:17:52:1D:A8:EE:F7:17:07:CC:12:4D:E2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "21:4C:9B:15:53:9C:55:5D:22:6A:94:4A:22:54:71:85:E7:06:A9:71:CB:80:36:4C:9D:9B:5B:1C:BF:86:17:2C:F8:0E:DF:47:C5:CC:82:81:D1:86:CA:2E:73:E6:AB:A4:9C:9A:00:73:54:7E:60:19:FE:B8:97:1B:D2:38:15:3C:00:DB:7D:D0:A9:AF:35:AB:CE:26:8E:37:8A:51:5E:79:87:02:4C:41:A1:F3:0A:62:76:FF:8D:41:BE:3D:EB:46:98:65:D7:16:B9:CC:5B:EF:F9:9C:15:AD:06:33:C6:0D:C1:E1:8C:6E:7B:A6:CD:36:77:14:C5:7C:26:B5:BB:93:2B:C5:D0:5A:DF:60:A2:5D:53:D1:8B:FD:0E:36:75:8C:21:66:94:67:A0:AE:A6:7C:3D:3F:FF:F8:E0:DB:70:33:68:E8:51:7F:AD:47:8A:B5:3E:CC:A2:83:22:54:26:70:40:0A:35:62:EE:25:64:21:89:9A:B8:DD:F6:2D:1C:4B:8A:53:8A:BE:F5:9E:0F:29:91:03:F0:C5:5A:53:6E:ED:6A:22:FB:68:99:7F:E0:FD:44:79:2F:DB:71:DC:E3:0B:F1:1B:91:6E:B1:DF:3C:15:DC:68:AD:97:3A:17:FC:3B:A6:52:7E:3F:B8:6A:0E:A9:1F:D8:28:9F:BB:BB:4B:6A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 06:33:04", "not_valid_before": "2022-07-06 06:37:33" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 06:37:39 +0000 (0:00:00.041) 0:00:12.817 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 06:37:39 +0000 (0:00:00.044) 0:00:12.861 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 06:37:39 +0000 (0:00:00.032) 0:00:12.893 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 06:37:39 +0000 (0:00:00.042) 0:00:12.936 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 06:37:39 +0000 (0:00:00.042) 0:00:12.979 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 06:37:39 +0000 (0:00:00.045) 0:00:13.024 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_basic_self_signed.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048061", "end": "2022-07-06 02:37:40.209919", "rc": 0, "start": "2022-07-06 02:37:40.161858" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 06:37:40 +0000 (0:00:00.407) 0:00:13.432 ******** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 06:37:40 +0000 (0:00:00.053) 0:00:13.485 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.36s /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Install the package, force upgrade -------------------------------------- 1.23s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Gathering Facts --------------------------------------------------------- 1.15s /tmp/tmppcorpegn/tests/certificate/tests_basic_self_signed.yml:2 -------------- fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.09s /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.98s /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Ensure python3 is installed --------------------------------------------- 0.96s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- Install certreader ------------------------------------------------------ 0.94s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:18 - fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.80s /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmppcorpegn/tests/certificate/tests_basic_self_signed.yml:13 ------------- Parse certificate ------------------------------------------------------- 0.68s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.53s /tmp/tmppc8868jw/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/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 0.49s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:26 - Retrieve auto-renew flag ------------------------------------------------ 0.41s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:132 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.40s /tmp/tmppc8868jw/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Retrieve key file stats ------------------------------------------------- 0.37s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:53 - Verify certificate file owner and group --------------------------------- 0.08s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:37 - Verify key file owner and group ----------------------------------------- 0.07s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:64 - Verify if certificate file exists --------------------------------------- 0.06s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:31 - Verify if key file exists ----------------------------------------------- 0.06s /tmp/tmppcorpegn/tests/certificate/tasks/assert_certificate_parameters.yml:58 -