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/tmpy2gf3dq8 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_provider.yml *************************************************** 2 plays in /tmp/tmpzvh1g0rm/tests/tests_provider.yml PLAY [Test issuing certificate with certmonger provider] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzvh1g0rm/tests/tests_provider.yml:2 Wednesday 06 July 2022 23:25:28 +0000 (0:00:00.013) 0:00:00.013 ******** ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:25:29 +0000 (0:00:01.130) 0:00:01.144 ******** included: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:25:29 +0000 (0:00:00.026) 0:00:01.170 ******** ok: [/cache/fedora-36.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 23:25:29 +0000 (0:00:00.569) 0:00:01.739 ******** skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:25:29 +0000 (0:00:00.039) 0:00:01.779 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:25:31 +0000 (0:00:01.935) 0:00:03.715 ******** ok: [/cache/fedora-36.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/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:25:33 +0000 (0:00:01.727) 0:00:05.443 ******** ok: [/cache/fedora-36.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 0, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:25:34 +0000 (0:00:00.548) 0:00:05.991 ******** ok: [/cache/fedora-36.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 0, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:25:34 +0000 (0:00:00.412) 0:00:06.403 ******** ok: [/cache/fedora-36.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 23:17:45 UTC", "ActiveEnterTimestampMonotonic": "213660433", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target systemd-journald.socket basic.target dbus.socket network.target system.slice dbus-broker.service syslog.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 23:17:45 UTC", "AssertTimestampMonotonic": "213648024", "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": "50445914000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 23:17:45 UTC", "ConditionTimestampMonotonic": "213648022", "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": "6744", "ExecMainStartTimestamp": "Wed 2022-07-06 23:17:45 UTC", "ExecMainStartTimestampMonotonic": "213649397", "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 23:17:45 UTC", "InactiveExitTimestampMonotonic": "213649980", "InvocationID": "cb854aa806d149ff883eec765d1c0f42", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "15524", "LimitNPROCSoft": "15524", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "15524", "LimitSIGPENDINGSoft": "15524", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6744", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "3411968", "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": "sysinit.target dbus.socket system.slice", "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 23:21:36 UTC", "StateChangeTimestampMonotonic": "444501790", "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": "4657", "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/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 23:25:35 +0000 (0:00:00.834) 0:00:07.238 ******** changed: [/cache/fedora-36.qcow2.snap] => (item={'name': 'mycert_provider', 'dns': 'www.example.com', 'ca': 'self-sign', 'provider': 'certmonger'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } } MSG: Certificate requested (new). META: role_complete for /cache/fedora-36.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpzvh1g0rm/tests/tests_provider.yml:13 Wednesday 06 July 2022 23:25:36 +0000 (0:00:01.161) 0:00:08.400 ******** ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpzvh1g0rm/tests/tests_provider.yml:27 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.791) 0:00:09.191 ******** included: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml for /cache/fedora-36.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_provider.crt', 'key_path': '/etc/pki/tls/private/mycert_provider.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.043) 0:00:09.234 ******** ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.027) 0:00:09.261 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:25:39 +0000 (0:00:01.855) 0:00:11.117 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:25:40 +0000 (0:00:01.165) 0:00:12.282 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.896) 0:00:13.179 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149935.7273924, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "24ed4bd6682f9cde787c8a091ff1fe6e8b81fc39", "ctime": 1657149935.7233922, "dev": 31, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 61052, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149935.7233922, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_provider.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "74", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.542) 0:00:13.722 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.033) 0:00:13.755 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.079) 0:00:13.834 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 23:25:41 +0000 (0:00:00.066) 0:00:13.901 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149935.6623924, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ff83383a0b153e78f250dd66b92c14b7e2b4a782", "ctime": 1657149935.7233922, "dev": 31, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 61039, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149935.7233922, "nlink": 1, "path": "/etc/pki/tls/private/mycert_provider.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "74", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.412) 0:00:14.313 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.033) 0:00:14.346 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 23:25:42 +0000 (0:00:00.075) 0:00:14.422 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_provider.crt" ], "delta": "0:00:00.212626", "end": "2022-07-06 23:25:42.611958", "rc": 0, "start": "2022-07-06 23:25:42.399332" } 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": "71:59:85:AC:06:EF:E5:71:D1:FD:CC:51:33:D5:F5:25:19:29:B1:84", "critical": false }, "authorityKeyIdentifier": { "value": "D9:69:C3:F9:77:BD:82:02:43:29:A8:70:BD:5C:3C:FA:BB:39:29:3B", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1F:A7:2E:D8:20:BF:BF:DC:93:82:61:86:8F:3F:5B:83:3C:B4:00:ED:C3:2E:BF:84:12:36:AE:40:6C:85:D8:E6:57:B0:5E:40:D9:26:07:BA:35:F2:BB:5C:41:66:16:BC:12:2A:28:D2:F6:17:E7:78:91:D4:A1:F0:71:60:92:4D:64:DE:EA:A2:35:6B:D4:95:B1:EA:B0:81:59:68:8E:7A:B3:08:2C:ED:FB:C5:71:CF:3D:C6:05:78:63:2F:E4:A0:01:C0:84:D4:A6:73:A8:85:6B:F2:76:AD:68:8E:6B:F3:D9:37:95:5A:0E:ED:8D:E6:19:90:D0:F9:80:0A:CA:87:42:10:8E:DD:57:59:64:3A:27:E9:C4:3B:F2:F6:29:6D:F1:1A:C1:40:17:9E:4B:21:35:CC:7D:EF:6F:85:D9:5F:A1:04:F3:06:B4:FF:8D:F1:F9:46:67:F4:41:FA:7C:D1:78:23:17:93:C7:91:9D:C5:D1:99:B3:11:A9:94:71:10:92:2F:2E:FE:52:C9:F2:5D:13:0A:F9:8F:4D:B0:6F:51:B2:06:60:E3:94:E3:3D:75:24:13:BE:43:13:A7:1E:04:06:5A:21:DF:A6:8B:F7:EA:6E:F3:96:05:89:97:D2:F0:A9:1E:C1:7B:3F:EE:09:A1:CC:6B:B9:DA:3F:61:D9:D1" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:17:45", "not_valid_before": "2022-07-06 23:25:35" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.741) 0:00:15.164 ******** ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D9:69:C3:F9:77:BD:82:02:43:29:A8:70:BD:5C:3C:FA:BB:39:29:3B" }, "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": "71:59:85:AC:06:EF:E5:71:D1:FD:CC:51:33:D5:F5:25:19:29:B1:84" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1F:A7:2E:D8:20:BF:BF:DC:93:82:61:86:8F:3F:5B:83:3C:B4:00:ED:C3:2E:BF:84:12:36:AE:40:6C:85:D8:E6:57:B0:5E:40:D9:26:07:BA:35:F2:BB:5C:41:66:16:BC:12:2A:28:D2:F6:17:E7:78:91:D4:A1:F0:71:60:92:4D:64:DE:EA:A2:35:6B:D4:95:B1:EA:B0:81:59:68:8E:7A:B3:08:2C:ED:FB:C5:71:CF:3D:C6:05:78:63:2F:E4:A0:01:C0:84:D4:A6:73:A8:85:6B:F2:76:AD:68:8E:6B:F3:D9:37:95:5A:0E:ED:8D:E6:19:90:D0:F9:80:0A:CA:87:42:10:8E:DD:57:59:64:3A:27:E9:C4:3B:F2:F6:29:6D:F1:1A:C1:40:17:9E:4B:21:35:CC:7D:EF:6F:85:D9:5F:A1:04:F3:06:B4:FF:8D:F1:F9:46:67:F4:41:FA:7C:D1:78:23:17:93:C7:91:9D:C5:D1:99:B3:11:A9:94:71:10:92:2F:2E:FE:52:C9:F2:5D:13:0A:F9:8F:4D:B0:6F:51:B2:06:60:E3:94:E3:3D:75:24:13:BE:43:13:A7:1E:04:06:5A:21:DF:A6:8B:F7:EA:6E:F3:96:05:89:97:D2:F0:A9:1E:C1:7B:3F:EE:09:A1:CC:6B:B9:DA:3F:61:D9:D1" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 23:17:45", "not_valid_before": "2022-07-06 23:25:35" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.041) 0:00:15.205 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.041) 0:00:15.247 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.032) 0:00:15.280 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.046) 0:00:15.326 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.045) 0:00:15.372 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.044) 0:00:15.417 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_provider.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.065004", "end": "2022-07-06 23:25:43.326115", "rc": 0, "start": "2022-07-06 23:25:43.261111" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.458) 0:00:15.875 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 23:25:43 +0000 (0:00:00.053) 0:00:15.929 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.94s /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- Ensure python3 is installed --------------------------------------------- 1.86s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:6 -------------- linux-system-roles.certificate : Ensure provider packages are installed --- 1.73s /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Install the package, force upgrade -------------------------------------- 1.17s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:11 ------------- linux-system-roles.certificate : Ensure certificate requests ------------ 1.16s /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmpzvh1g0rm/tests/tests_provider.yml:2 ----------------------------------- Install certreader ------------------------------------------------------ 0.90s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:18 ------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.83s /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmpzvh1g0rm/tests/tests_provider.yml:13 ---------------------------------- Parse certificate ------------------------------------------------------- 0.74s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.57s /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.55s /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - Retrieve certificate file stats ----------------------------------------- 0.54s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:26 ------------- Retrieve auto-renew flag ------------------------------------------------ 0.46s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:141 ------------ Retrieve key file stats ------------------------------------------------- 0.41s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:55 ------------- linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.41s /tmp/tmpzvh1g0rm/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 - Verify certificate file owner and group --------------------------------- 0.08s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:37 ------------- Verify key file owner and group ----------------------------------------- 0.08s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:66 ------------- Verify certificate permissions ------------------------------------------ 0.07s /tmp/tmpzvh1g0rm/tests/tasks/assert_certificate_parameters.yml:49 ------------- Verify certificate auto-renew flag -------------------------------------- 0.05s /tmp/tmpzvh1g0rm/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/tmpy2gf3dq8 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_provider.yml *************************************************** 2 plays in /tmp/tmpyv0bgwd0/tests/certificate/tests_provider.yml PLAY [Test issuing certificate with certmonger provider] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tests_provider.yml:2 Wednesday 06 July 2022 23:37:56 +0000 (0:00:00.014) 0:00:00.014 ******** ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:37:57 +0000 (0:00:01.079) 0:00:01.094 ******** included: /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/fedora-36.qcow2.snap TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:37:57 +0000 (0:00:00.026) 0:00:01.121 ******** ok: [/cache/fedora-36.qcow2.snap] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 23:37:57 +0000 (0:00:00.535) 0:00:01.656 ******** skipping: [/cache/fedora-36.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/fedora-36.qcow2.snap] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:37:57 +0000 (0:00:00.038) 0:00:01.695 ******** ok: [/cache/fedora-36.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/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:37:59 +0000 (0:00:01.857) 0:00:03.553 ******** ok: [/cache/fedora-36.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/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:38:01 +0000 (0:00:01.727) 0:00:05.281 ******** ok: [/cache/fedora-36.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 0, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:38:01 +0000 (0:00:00.538) 0:00:05.819 ******** ok: [/cache/fedora-36.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 0, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:38:02 +0000 (0:00:00.409) 0:00:06.229 ******** ok: [/cache/fedora-36.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-07-06 23:30:10 UTC", "ActiveEnterTimestampMonotonic": "204468724", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice dbus.socket sysinit.target basic.target network.target syslog.target dbus-broker.service systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 23:30:10 UTC", "AssertTimestampMonotonic": "204456677", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "47956444000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-07-06 23:30:10 UTC", "ConditionTimestampMonotonic": "204456676", "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": "6978", "ExecMainStartTimestamp": "Wed 2022-07-06 23:30:10 UTC", "ExecMainStartTimestampMonotonic": "204457888", "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 23:30:10 UTC", "InactiveExitTimestampMonotonic": "204458184", "InvocationID": "0603aa74b38f4c68ac63e20db89081ee", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "15524", "LimitNPROCSoft": "15524", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "15524", "LimitSIGPENDINGSoft": "15524", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "6978", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "3383296", "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": "sysinit.target dbus.socket system.slice", "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 23:34:08 UTC", "StateChangeTimestampMonotonic": "442526482", "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": "4657", "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/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 23:38:03 +0000 (0:00:00.801) 0:00:07.030 ******** changed: [/cache/fedora-36.qcow2.snap] => (item={'name': 'mycert_provider', 'dns': 'www.example.com', 'ca': 'self-sign', 'provider': 'certmonger'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } } MSG: Certificate requested (new). META: role_complete for /cache/fedora-36.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tests_provider.yml:13 Wednesday 06 July 2022 23:38:04 +0000 (0:00:01.535) 0:00:08.565 ******** ok: [/cache/fedora-36.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tests_provider.yml:27 Wednesday 06 July 2022 23:38:05 +0000 (0:00:00.794) 0:00:09.360 ******** included: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/fedora-36.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_provider.crt', 'key_path': '/etc/pki/tls/private/mycert_provider.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:38:05 +0000 (0:00:00.048) 0:00:09.408 ******** ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:38:05 +0000 (0:00:00.031) 0:00:09.440 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:38:07 +0000 (0:00:01.782) 0:00:11.223 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.10/site-packages (22.1.2) TASK [Install certreader] ****************************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:38:08 +0000 (0:00:01.146) 0:00:12.369 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.10/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.10/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.10/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.10/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:38:09 +0000 (0:00:00.904) 0:00:13.274 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150684.0963705, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2a550ea9f6c28905552b5c6fa77bf62785baf89c", "ctime": 1657150684.0933704, "dev": 31, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 61052, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150684.0933704, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_provider.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "73", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:38:09 +0000 (0:00:00.512) 0:00:13.786 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.062) 0:00:13.849 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.074) 0:00:13.923 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.043) 0:00:13.967 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150684.0333705, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fac0f60469dd45fe7a9e783ea1936d1f2eeb50d8", "ctime": 1657150684.0933704, "dev": 31, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 61039, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150684.0933704, "nlink": 1, "path": "/etc/pki/tls/private/mycert_provider.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "73", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.384) 0:00:14.351 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.060) 0:00:14.411 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 23:38:10 +0000 (0:00:00.070) 0:00:14.482 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_provider.crt" ], "delta": "0:00:00.206289", "end": "2022-07-06 23:38:10.903516", "rc": 0, "start": "2022-07-06 23:38:10.697227" } 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": "35:9B:78:3A:84:D1:6F:39:70:F0:55:C2:64:06:B5:6D:2E:71:84:3E", "critical": false }, "authorityKeyIdentifier": { "value": "5E:52:CD:04:1D:A6:B4:4F:6D:84:D8:82:A2:63:74:23:0B:B0:BF:FB", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "33:9F:72:60:1A:BC:65:DC:72:A7:9B:59:D9:56:BB:79:3A:8F:2F:18:DD:B5:38:E4:95:F2:4A:63:5D:14:09:0B:10:9A:E6:09:22:23:4F:74:C9:13:82:90:B8:B2:8C:BC:72:13:D6:FA:05:A8:98:87:D5:DD:58:6F:B0:E0:EA:EA:76:13:0B:E0:B1:65:6F:B2:A3:31:BB:08:3A:84:7A:28:BE:83:DD:74:97:27:57:B6:5E:C5:31:ED:52:EE:CB:3A:C3:74:B8:67:60:8F:0C:BF:BE:C5:5C:00:62:E3:DE:54:0A:99:22:51:4D:0E:D3:5A:66:1E:B2:85:75:E0:B3:29:24:BA:E7:6E:6D:B4:02:13:C3:87:76:41:52:56:21:B7:08:F4:63:8A:65:82:8B:E8:A0:75:61:C4:ED:B6:A6:AA:67:37:AF:3E:7C:DB:EF:52:C8:77:DB:97:79:7A:2B:D1:9E:A7:63:B7:60:82:0F:5F:EE:E1:A6:33:14:1C:75:8E:29:5E:34:E3:2F:99:58:39:45:57:8F:B8:6F:EA:88:3B:84:76:36:11:C7:2D:C0:7A:B3:C8:15:C0:70:9B:5A:F3:46:E3:75:43:38:3B:8F:DF:14:97:7E:66:B0:8A:AA:46:87:CA:37:63:72:C4:CA:78:89:44:24:56:F5:FC:E3:B9" }, "key_size": 2048, "validity": { "not_valid_after": "2023-07-06 23:30:12", "not_valid_before": "2022-07-06 23:38:04" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.716) 0:00:15.198 ******** ok: [/cache/fedora-36.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "5E:52:CD:04:1D:A6:B4:4F:6D:84:D8:82:A2:63:74:23:0B:B0:BF:FB" }, "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": "35:9B:78:3A:84:D1:6F:39:70:F0:55:C2:64:06:B5:6D:2E:71:84:3E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "33:9F:72:60:1A:BC:65:DC:72:A7:9B:59:D9:56:BB:79:3A:8F:2F:18:DD:B5:38:E4:95:F2:4A:63:5D:14:09:0B:10:9A:E6:09:22:23:4F:74:C9:13:82:90:B8:B2:8C:BC:72:13:D6:FA:05:A8:98:87:D5:DD:58:6F:B0:E0:EA:EA:76:13:0B:E0:B1:65:6F:B2:A3:31:BB:08:3A:84:7A:28:BE:83:DD:74:97:27:57:B6:5E:C5:31:ED:52:EE:CB:3A:C3:74:B8:67:60:8F:0C:BF:BE:C5:5C:00:62:E3:DE:54:0A:99:22:51:4D:0E:D3:5A:66:1E:B2:85:75:E0:B3:29:24:BA:E7:6E:6D:B4:02:13:C3:87:76:41:52:56:21:B7:08:F4:63:8A:65:82:8B:E8:A0:75:61:C4:ED:B6:A6:AA:67:37:AF:3E:7C:DB:EF:52:C8:77:DB:97:79:7A:2B:D1:9E:A7:63:B7:60:82:0F:5F:EE:E1:A6:33:14:1C:75:8E:29:5E:34:E3:2F:99:58:39:45:57:8F:B8:6F:EA:88:3B:84:76:36:11:C7:2D:C0:7A:B3:C8:15:C0:70:9B:5A:F3:46:E3:75:43:38:3B:8F:DF:14:97:7E:66:B0:8A:AA:46:87:CA:37:63:72:C4:CA:78:89:44:24:56:F5:FC:E3:B9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 23:30:12", "not_valid_before": "2022-07-06 23:38:04" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.071) 0:00:15.269 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.073) 0:00:15.342 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.089) 0:00:15.432 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.043) 0:00:15.476 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.043) 0:00:15.519 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 23:38:11 +0000 (0:00:00.043) 0:00:15.562 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_provider.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.062944", "end": "2022-07-06 23:38:11.712592", "rc": 0, "start": "2022-07-06 23:38:11.649648" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.441) 0:00:16.004 ******** ok: [/cache/fedora-36.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-36.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 23:38:12 +0000 (0:00:00.052) 0:00:16.056 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.86s /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.78s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.73s /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.54s /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Install the package, force upgrade -------------------------------------- 1.15s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Gathering Facts --------------------------------------------------------- 1.08s /tmp/tmpyv0bgwd0/tests/certificate/tests_provider.yml:2 ----------------------- Install certreader ------------------------------------------------------ 0.90s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:18 - fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.80s /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.79s /tmp/tmpyv0bgwd0/tests/certificate/tests_provider.yml:13 ---------------------- Parse certificate ------------------------------------------------------- 0.72s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.54s /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.54s /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Retrieve certificate file stats ----------------------------------------- 0.51s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:26 - Retrieve auto-renew flag ------------------------------------------------ 0.44s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:132 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.41s /tmp/tmpy2gf3dq8/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Retrieve key file stats ------------------------------------------------- 0.38s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:53 - Verify certificate SAN -------------------------------------------------- 0.09s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:91 - Verify certificate file owner and group --------------------------------- 0.07s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:37 - Verify certificate subject ---------------------------------------------- 0.07s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:83 - Load certificate YAML to cert_issued variable --------------------------- 0.07s /tmp/tmpyv0bgwd0/tests/certificate/tasks/assert_certificate_parameters.yml:79 -