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/tmpz63ztj_p 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_key_size.yml *************************************************** 2 plays in /tmp/tmpy0ojfldm/tests/tests_key_size.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpy0ojfldm/tests/tests_key_size.yml:2 Wednesday 06 July 2022 23:25:23 +0000 (0:00:00.014) 0:00:00.014 ******** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:25:24 +0000 (0:00:01.201) 0:00:01.215 ******** included: /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:25:24 +0000 (0:00:00.026) 0:00:01.241 ******** ok: [/cache/centos-9.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 06 July 2022 23:25:25 +0000 (0:00:00.618) 0:00:01.860 ******** skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:25:25 +0000 (0:00:00.039) 0:00:01.900 ******** ok: [/cache/centos-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/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:25:26 +0000 (0:00:01.142) 0:00:03.042 ******** ok: [/cache/centos-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/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:25:27 +0000 (0:00:00.973) 0:00:04.016 ******** ok: [/cache/centos-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/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:25:28 +0000 (0:00:00.614) 0:00:04.631 ******** ok: [/cache/centos-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/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:25:28 +0000 (0:00:00.499) 0:00:05.130 ******** ok: [/cache/centos-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 19:20:07 EDT", "ActiveEnterTimestampMonotonic": "244505840", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service sysinit.target dbus.socket basic.target system.slice systemd-journald.socket syslog.target network.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 19:20:07 EDT", "AssertTimestampMonotonic": "244494390", "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": "37559511000", "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 19:20:07 EDT", "ConditionTimestampMonotonic": "244494388", "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": "21786", "ExecMainStartTimestamp": "Wed 2022-07-06 19:20:07 EDT", "ExecMainStartTimestampMonotonic": "244495669", "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 19:20:07 EDT", "InactiveExitTimestampMonotonic": "244496109", "InvocationID": "0102ee389fed4dc9950067800be1ebca", "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": "14618", "LimitNPROCSoft": "14618", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14618", "LimitSIGPENDINGSoft": "14618", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "21786", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4964352", "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": "system.slice sysinit.target dbus.socket", "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 19:23:46 EDT", "StateChangeTimestampMonotonic": "464086309", "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": "23388", "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/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 06 July 2022 23:25:29 +0000 (0:00:00.872) 0:00:06.003 ******** changed: [/cache/centos-9.qcow2.snap] => (item={'name': 'mycert_key_size', 'dns': 'www.example.com', 'ca': 'self-sign', 'key_size': 4096}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "key_size": 4096, "name": "mycert_key_size" } } MSG: Certificate requested (new). META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpy0ojfldm/tests/tests_key_size.yml:14 Wednesday 06 July 2022 23:25:32 +0000 (0:00:03.077) 0:00:09.081 ******** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmpy0ojfldm/tests/tests_key_size.yml:29 Wednesday 06 July 2022 23:25:33 +0000 (0:00:00.887) 0:00:09.969 ******** included: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml for /cache/centos-9.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_key_size.crt', 'key_path': '/etc/pki/tls/private/mycert_key_size.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'key_size': 4096}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:25:33 +0000 (0:00:00.045) 0:00:10.014 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:25:33 +0000 (0:00:00.028) 0:00:10.043 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:25:34 +0000 (0:00:00.983) 0:00:11.026 ******** ok: [/cache/centos-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/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:25:35 +0000 (0:00:01.242) 0:00:12.269 ******** ok: [/cache/centos-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/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:25:36 +0000 (0:00:00.952) 0:00:13.221 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149932.6145408, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bc155984fae136de3371ec19f8f578c3126f644d", "ctime": 1657149932.6115408, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13813547, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149932.6115408, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_key_size.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1639, "uid": 0, "version": "2500072816", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.588) 0:00:13.809 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.033) 0:00:13.843 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:49 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.073) 0:00:13.917 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:55 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.068) 0:00:13.985 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657149932.5385406, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9cb04607d4075ad1b09672885a7ed6af5b7505a1", "ctime": 1657149932.6115408, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4308363, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657149932.6115408, "nlink": 1, "path": "/etc/pki/tls/private/mycert_key_size.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 3272, "uid": 0, "version": "2254205402", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:60 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.505) 0:00:14.491 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:66 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.058) 0:00:14.550 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:78 Wednesday 06 July 2022 23:25:37 +0000 (0:00:00.072) 0:00:14.622 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_key_size.crt" ], "delta": "0:00:00.197732", "end": "2022-07-06 19:25:39.026254", "rc": 0, "start": "2022-07-06 19:25:38.828522" } 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": "C2:6B:17:C6:24:60:1D:33:42:F6:F4:6E:96:3F:77:56:50:C3:55:BF", "critical": false }, "authorityKeyIdentifier": { "value": "F3:02:31:5F:10:70:24:FF:1C:29:71:A9:50:7B:88:DE:00:FA:F9:90", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "14:B7:90:F1:52:4F:3B:B4:64:C8:FF:FC:21:95:4A:C0:C8:8E:01:5C:F7:EC:07:69:FF:41:C7:BD:45:F8:8C:E2:39:3A:BF:6C:91:86:61:3A:11:2A:36:4E:59:52:CC:9A:3D:40:27:5A:61:2E:60:BD:01:50:FA:CB:51:10:B2:14:B3:F8:58:2A:8C:83:13:52:69:31:6D:40:99:FF:96:FB:BB:3B:63:9B:C9:92:1A:A4:16:F2:B4:15:84:52:F5:62:2D:66:10:FB:04:A3:81:C9:3B:7D:C9:0A:DB:03:DE:BD:2B:0C:55:33:28:3E:6F:CD:4E:C1:7B:56:8E:F2:56:6D:4B:73:9A:99:C6:E9:0E:BE:A4:6A:71:FE:10:8D:E8:30:6B:EB:B6:24:D6:34:B1:AC:15:56:D8:95:C4:6F:2D:C4:D8:7F:57:B0:6F:E6:30:55:7A:15:AB:68:3E:30:66:FA:B5:0D:DA:F4:39:AE:4C:83:F5:AC:BF:C6:69:64:C4:1F:64:BB:FB:99:17:D3:6B:E9:5C:D5:76:50:12:A8:CA:91:7F:84:3F:0B:34:F4:FD:7F:52:C3:24:78:0B:42:16:86:5B:6F:60:9D:EE:98:91:CC:2E:85:85:86:BD:53:5B:6F:DE:A9:CD:7A:32:3E:B4:D2:D9:B1:D2:3C:36:7C:F2:33" }, "key_size": 4096, "validity": { "not_valid_after": "2023-07-06 23:20:09", "not_valid_before": "2022-07-06 23:25:32" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:25:38 +0000 (0:00:00.779) 0:00:15.402 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F3:02:31:5F:10:70:24:FF:1C:29:71:A9:50:7B:88:DE:00:FA:F9:90" }, "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": "C2:6B:17:C6:24:60:1D:33:42:F6:F4:6E:96:3F:77:56:50:C3:55:BF" } }, "key_size": 4096, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "14:B7:90:F1:52:4F:3B:B4:64:C8:FF:FC:21:95:4A:C0:C8:8E:01:5C:F7:EC:07:69:FF:41:C7:BD:45:F8:8C:E2:39:3A:BF:6C:91:86:61:3A:11:2A:36:4E:59:52:CC:9A:3D:40:27:5A:61:2E:60:BD:01:50:FA:CB:51:10:B2:14:B3:F8:58:2A:8C:83:13:52:69:31:6D:40:99:FF:96:FB:BB:3B:63:9B:C9:92:1A:A4:16:F2:B4:15:84:52:F5:62:2D:66:10:FB:04:A3:81:C9:3B:7D:C9:0A:DB:03:DE:BD:2B:0C:55:33:28:3E:6F:CD:4E:C1:7B:56:8E:F2:56:6D:4B:73:9A:99:C6:E9:0E:BE:A4:6A:71:FE:10:8D:E8:30:6B:EB:B6:24:D6:34:B1:AC:15:56:D8:95:C4:6F:2D:C4:D8:7F:57:B0:6F:E6:30:55:7A:15:AB:68:3E:30:66:FA:B5:0D:DA:F4:39:AE:4C:83:F5:AC:BF:C6:69:64:C4:1F:64:BB:FB:99:17:D3:6B:E9:5C:D5:76:50:12:A8:CA:91:7F:84:3F:0B:34:F4:FD:7F:52:C3:24:78:0B:42:16:86:5B:6F:60:9D:EE:98:91:CC:2E:85:85:86:BD:53:5B:6F:DE:A9:CD:7A:32:3E:B4:D2:D9:B1:D2:3C:36:7C:F2:33" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 23:20:09", "not_valid_before": "2022-07-06 23:25:32" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:87 Wednesday 06 July 2022 23:25:38 +0000 (0:00:00.066) 0:00:15.468 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:96 Wednesday 06 July 2022 23:25:38 +0000 (0:00:00.063) 0:00:15.532 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:105 Wednesday 06 July 2022 23:25:38 +0000 (0:00:00.033) 0:00:15.565 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:112 Wednesday 06 July 2022 23:25:38 +0000 (0:00:00.041) 0:00:15.606 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:125 Wednesday 06 July 2022 23:25:39 +0000 (0:00:00.063) 0:00:15.670 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:25:39 +0000 (0:00:00.066) 0:00:15.736 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_key_size.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.050228", "end": "2022-07-06 19:25:39.901189", "rc": 0, "start": "2022-07-06 19:25:39.850961" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:150 Wednesday 06 July 2022 23:25:39 +0000 (0:00:00.536) 0:00:16.273 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 23:25:39 +0000 (0:00:00.079) 0:00:16.353 ******** =============================================================================== linux-system-roles.certificate : Ensure certificate requests ------------ 3.08s /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Install the package, force upgrade -------------------------------------- 1.24s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:11 ------------- Gathering Facts --------------------------------------------------------- 1.20s /tmp/tmpy0ojfldm/tests/tests_key_size.yml:2 ----------------------------------- linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.14s /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- Ensure python3 is installed --------------------------------------------- 0.98s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:6 -------------- linux-system-roles.certificate : Ensure provider packages are installed --- 0.97s /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - Install certreader ------------------------------------------------------ 0.95s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:18 ------------- Gathering Facts --------------------------------------------------------- 0.89s /tmp/tmpy0ojfldm/tests/tests_key_size.yml:14 ---------------------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.87s /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - Parse certificate ------------------------------------------------------- 0.78s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:78 ------------- linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.62s /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.61s /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - Retrieve certificate file stats ----------------------------------------- 0.59s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:26 ------------- Retrieve auto-renew flag ------------------------------------------------ 0.54s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:141 ------------ Retrieve key file stats ------------------------------------------------- 0.51s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:55 ------------- linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.50s /tmp/tmpy0ojfldm/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 - Verify certificate auto-renew flag -------------------------------------- 0.08s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:150 ------------ Verify certificate file owner and group --------------------------------- 0.07s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:37 ------------- Verify key file owner and group ----------------------------------------- 0.07s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:66 ------------- Verify certificate permissions ------------------------------------------ 0.07s /tmp/tmpy0ojfldm/tests/tasks/assert_certificate_parameters.yml:49 ------------- 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/tmpz63ztj_p 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_key_size.yml *************************************************** 2 plays in /tmp/tmp8_d1edvf/tests/certificate/tests_key_size.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tests_key_size.yml:2 Wednesday 06 July 2022 23:37:37 +0000 (0:00:00.014) 0:00:00.014 ******** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 06 July 2022 23:37:38 +0000 (0:00:01.185) 0:00:01.199 ******** included: /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 06 July 2022 23:37:38 +0000 (0:00:00.026) 0:00:01.225 ******** ok: [/cache/centos-9.qcow2.snap] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Wednesday 06 July 2022 23:37:39 +0000 (0:00:00.600) 0:00:01.826 ******** skipping: [/cache/centos-9.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 06 July 2022 23:37:39 +0000 (0:00:00.038) 0:00:01.864 ******** ok: [/cache/centos-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/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Wednesday 06 July 2022 23:37:40 +0000 (0:00:01.085) 0:00:02.950 ******** ok: [/cache/centos-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/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Wednesday 06 July 2022 23:37:41 +0000 (0:00:00.972) 0:00:03.923 ******** ok: [/cache/centos-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/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Wednesday 06 July 2022 23:37:42 +0000 (0:00:00.595) 0:00:04.518 ******** ok: [/cache/centos-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/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Wednesday 06 July 2022 23:37:42 +0000 (0:00:00.472) 0:00:04.990 ******** ok: [/cache/centos-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 19:32:27 EDT", "ActiveEnterTimestampMonotonic": "234351444", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target basic.target systemd-journald.socket dbus.socket system.slice dbus-broker.service network.target sysinit.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-07-06 19:32:27 EDT", "AssertTimestampMonotonic": "234338283", "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": "38015665000", "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 19:32:27 EDT", "ConditionTimestampMonotonic": "234338281", "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": "21573", "ExecMainStartTimestamp": "Wed 2022-07-06 19:32:27 EDT", "ExecMainStartTimestampMonotonic": "234339895", "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 19:32:27 EDT", "InactiveExitTimestampMonotonic": "234340345", "InvocationID": "5f6ff4c841584ff59cf869087cb96d09", "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": "14618", "LimitNPROCSoft": "14618", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14618", "LimitSIGPENDINGSoft": "14618", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "21573", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4702208", "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": "system.slice dbus.socket 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 19:36:01 EDT", "StateChangeTimestampMonotonic": "449090934", "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": "23388", "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/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Wednesday 06 July 2022 23:37:43 +0000 (0:00:00.845) 0:00:05.835 ******** changed: [/cache/centos-9.qcow2.snap] => (item={'name': 'mycert_key_size', 'dns': 'www.example.com', 'ca': 'self-sign', 'key_size': 4096}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "key_size": 4096, "name": "mycert_key_size" } } MSG: Certificate requested (new). META: role_complete for /cache/centos-9.qcow2.snap META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tests_key_size.yml:14 Wednesday 06 July 2022 23:37:45 +0000 (0:00:02.301) 0:00:08.137 ******** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tests_key_size.yml:29 Wednesday 06 July 2022 23:37:46 +0000 (0:00:00.876) 0:00:09.013 ******** included: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml for /cache/centos-9.qcow2.snap => (item={'path': '/etc/pki/tls/certs/mycert_key_size.crt', 'key_path': '/etc/pki/tls/private/mycert_key_size.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'key_size': 4096}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:2 Wednesday 06 July 2022 23:37:46 +0000 (0:00:00.037) 0:00:09.050 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:6 Wednesday 06 July 2022 23:37:46 +0000 (0:00:00.052) 0:00:09.103 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:11 Wednesday 06 July 2022 23:37:47 +0000 (0:00:00.940) 0:00:10.043 ******** ok: [/cache/centos-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/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:18 Wednesday 06 July 2022 23:37:48 +0000 (0:00:01.242) 0:00:11.286 ******** ok: [/cache/centos-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/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:26 Wednesday 06 July 2022 23:37:49 +0000 (0:00:00.940) 0:00:12.227 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150665.5411215, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "15c49d1e1200cf32bb27e8a93326167d75990d31", "ctime": 1657150665.5381215, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13813931, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150665.5381215, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_key_size.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1639, "uid": 0, "version": "1383125997", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 06 July 2022 23:37:50 +0000 (0:00:00.577) 0:00:12.804 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:37 Wednesday 06 July 2022 23:37:50 +0000 (0:00:00.032) 0:00:12.836 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:47 Wednesday 06 July 2022 23:37:50 +0000 (0:00:00.045) 0:00:12.882 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:53 Wednesday 06 July 2022 23:37:50 +0000 (0:00:00.070) 0:00:12.953 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "stat": { "atime": 1657150665.4651215, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5af789ec58e0fb866f075bb9f51a51fda98455be", "ctime": 1657150665.5381215, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4308934, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1657150665.5381215, "nlink": 1, "path": "/etc/pki/tls/private/mycert_key_size.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 3272, "uid": 0, "version": "2033130517", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:58 Wednesday 06 July 2022 23:37:51 +0000 (0:00:00.484) 0:00:13.438 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:64 Wednesday 06 July 2022 23:37:51 +0000 (0:00:00.031) 0:00:13.470 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:74 Wednesday 06 July 2022 23:37:51 +0000 (0:00:00.091) 0:00:13.561 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_key_size.crt" ], "delta": "0:00:00.199362", "end": "2022-07-06 19:37:51.829585", "rc": 0, "start": "2022-07-06 19:37:51.630223" } 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": "A0:BD:2A:DF:C3:06:52:A9:54:40:C5:77:2E:42:D4:76:E5:F7:60:C3", "critical": false }, "authorityKeyIdentifier": { "value": "5B:42:3D:94:F2:D8:9A:9F:1B:44:30:B2:FA:3C:A2:D5:6D:14:00:D0", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "59:4F:25:BE:94:EA:A7:24:DC:F3:E6:73:46:6D:71:94:9E:EF:0F:5A:80:28:49:0F:44:1A:DB:C4:F4:44:0A:C0:86:5D:32:D4:2B:BA:24:78:CC:57:3B:2B:32:1B:D3:82:62:EA:27:8B:CD:2E:42:DA:F1:77:C8:86:63:EB:A8:84:82:B1:07:64:22:6A:C2:27:97:C6:6D:9F:8C:BC:4E:B6:5E:33:09:C1:E2:47:98:9D:2B:7E:F5:CB:DB:E7:31:F8:D4:19:66:48:F0:C4:5D:5B:81:F5:82:0D:C3:D3:EF:7E:6D:FC:C8:D2:4A:9E:A9:47:FA:D4:4A:0B:95:2D:80:78:BF:0D:38:9A:68:07:77:81:DF:F7:0A:25:CD:68:15:74:2E:CD:56:C1:F6:DF:1D:71:C1:3F:E6:B3:05:D1:DF:38:5D:76:45:9B:36:D5:92:03:49:B7:AB:2B:43:C5:37:42:2D:E5:FC:50:8B:57:48:53:92:E7:B1:5A:AC:72:0E:B2:7F:6E:7D:F8:2F:5F:DD:C9:72:CB:5D:68:B1:6A:B2:C1:BE:F5:65:61:48:6A:FA:0C:48:92:AD:6D:15:DA:7D:41:19:71:1D:AB:56:4E:77:79:01:29:48:65:5B:A3:88:E3:FB:E6:A8:87:25:FA:50:2F:70:1D:64:50:98:68:D9:70" }, "key_size": 4096, "validity": { "not_valid_after": "2023-07-06 23:32:27", "not_valid_before": "2022-07-06 23:37:45" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 06 July 2022 23:37:51 +0000 (0:00:00.771) 0:00:14.333 ******** ok: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "5B:42:3D:94:F2:D8:9A:9F:1B:44:30:B2:FA:3C:A2:D5:6D:14:00:D0" }, "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": "A0:BD:2A:DF:C3:06:52:A9:54:40:C5:77:2E:42:D4:76:E5:F7:60:C3" } }, "key_size": 4096, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "59:4F:25:BE:94:EA:A7:24:DC:F3:E6:73:46:6D:71:94:9E:EF:0F:5A:80:28:49:0F:44:1A:DB:C4:F4:44:0A:C0:86:5D:32:D4:2B:BA:24:78:CC:57:3B:2B:32:1B:D3:82:62:EA:27:8B:CD:2E:42:DA:F1:77:C8:86:63:EB:A8:84:82:B1:07:64:22:6A:C2:27:97:C6:6D:9F:8C:BC:4E:B6:5E:33:09:C1:E2:47:98:9D:2B:7E:F5:CB:DB:E7:31:F8:D4:19:66:48:F0:C4:5D:5B:81:F5:82:0D:C3:D3:EF:7E:6D:FC:C8:D2:4A:9E:A9:47:FA:D4:4A:0B:95:2D:80:78:BF:0D:38:9A:68:07:77:81:DF:F7:0A:25:CD:68:15:74:2E:CD:56:C1:F6:DF:1D:71:C1:3F:E6:B3:05:D1:DF:38:5D:76:45:9B:36:D5:92:03:49:B7:AB:2B:43:C5:37:42:2D:E5:FC:50:8B:57:48:53:92:E7:B1:5A:AC:72:0E:B2:7F:6E:7D:F8:2F:5F:DD:C9:72:CB:5D:68:B1:6A:B2:C1:BE:F5:65:61:48:6A:FA:0C:48:92:AD:6D:15:DA:7D:41:19:71:1D:AB:56:4E:77:79:01:29:48:65:5B:A3:88:E3:FB:E6:A8:87:25:FA:50:2F:70:1D:64:50:98:68:D9:70" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2023-07-06 23:32:27", "not_valid_before": "2022-07-06 23:37:45" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:83 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.067) 0:00:14.401 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:91 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.041) 0:00:14.442 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.030) 0:00:14.473 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:106 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.041) 0:00:14.514 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:118 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.041) 0:00:14.556 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:132 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.041) 0:00:14.597 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_key_size.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.052177", "end": "2022-07-06 19:37:52.589709", "rc": 0, "start": "2022-07-06 19:37:52.537532" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:141 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.488) 0:00:15.085 ******** ok: [/cache/centos-9.qcow2.snap] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=31 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Wednesday 06 July 2022 23:37:52 +0000 (0:00:00.049) 0:00:15.135 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.30s /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Install the package, force upgrade -------------------------------------- 1.24s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:11 - Gathering Facts --------------------------------------------------------- 1.19s /tmp/tmp8_d1edvf/tests/certificate/tests_key_size.yml:2 ----------------------- fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.09s /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.97s /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Install certreader ------------------------------------------------------ 0.94s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:18 - Ensure python3 is installed --------------------------------------------- 0.94s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:6 -- Gathering Facts --------------------------------------------------------- 0.88s /tmp/tmp8_d1edvf/tests/certificate/tests_key_size.yml:14 ---------------------- fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.85s /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Parse certificate ------------------------------------------------------- 0.77s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:74 - fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.60s /tmp/tmpz63ztj_p/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.60s /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 0.58s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:26 - Retrieve auto-renew flag ------------------------------------------------ 0.49s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:132 Retrieve key file stats ------------------------------------------------- 0.48s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:53 - fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.47s /tmp/tmpz63ztj_p/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Verify key file owner and group ----------------------------------------- 0.09s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:64 - Verify certificate permissions ------------------------------------------ 0.07s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:47 - Load certificate YAML to cert_issued variable --------------------------- 0.07s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:79 - Set virtualenv_path ----------------------------------------------------- 0.05s /tmp/tmp8_d1edvf/tests/certificate/tasks/assert_certificate_parameters.yml:2 --