ansible-playbook [core 2.16.14] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-SvX executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.5 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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_no_auto_renew.yml ********************************************** 2 plays in /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 Monday 03 February 2025 19:22:05 -0500 (0:00:00.010) 0:00:00.010 ******* ok: [managed-node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 03 February 2025 19:22:06 -0500 (0:00:01.095) 0:00:01.105 ******* included: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 03 February 2025 19:22:06 -0500 (0:00:00.075) 0:00:01.180 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 03 February 2025 19:22:06 -0500 (0:00:00.042) 0:00:01.222 ******* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 03 February 2025 19:22:07 -0500 (0:00:00.511) 0:00:01.733 ******* ok: [managed-node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 03 February 2025 19:22:07 -0500 (0:00:00.043) 0:00:01.777 ******* skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 03 February 2025 19:22:07 -0500 (0:00:00.045) 0:00:01.822 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 03 February 2025 19:22:10 -0500 (0:00:03.042) 0:00:04.864 ******* ok: [managed-node2] => (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/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 03 February 2025 19:22:13 -0500 (0:00:02.883) 0:00:07.748 ******* ok: [managed-node2] => (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/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 03 February 2025 19:22:13 -0500 (0:00:00.486) 0:00:08.235 ******* ok: [managed-node2] => (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/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 03 February 2025 19:22:14 -0500 (0:00:00.382) 0:00:08.617 ******* ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2025-02-03 19:20:52 EST", "ActiveEnterTimestampMonotonic": "365999502", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target dbus.socket system.slice network.target syslog.target systemd-journald.socket dbus.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2025-02-03 19:20:52 EST", "AssertTimestampMonotonic": "365987900", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2025-02-03 19:20:52 EST", "ConditionTimestampMonotonic": "365987898", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8641", "ExecMainStartTimestamp": "Mon 2025-02-03 19:20:52 EST", "ExecMainStartTimestampMonotonic": "365988888", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Mon 2025-02-03 19:20:52 EST] ; stop_time=[n/a] ; pid=8641 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Mon 2025-02-03 19:20:52 EST", "InactiveExitTimestampMonotonic": "365989092", "InvocationID": "1520d113fe544f789c363dd1cac3fcb3", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8641", "MemoryAccounting": "yes", "MemoryCurrent": "3923968", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2025-02-03 19:20:52 EST", "StateChangeTimestampMonotonic": "365999502", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Mon 2025-02-03 19:20:52 EST", "WatchdogTimestampMonotonic": "365999500", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 03 February 2025 19:22:14 -0500 (0:00:00.796) 0:00:09.414 ******* changed: [managed-node2] => (item={'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } } MSG: Certificate requested (new). changed: [managed-node2] => (item={'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 03 February 2025 19:22:16 -0500 (0:00:01.570) 0:00:10.984 ******* skipping: [managed-node2] => (item=['cert', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['cert', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['key', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['key', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['ca', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['ca', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 03 February 2025 19:22:16 -0500 (0:00:00.056) 0:00:11.040 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 03 February 2025 19:22:16 -0500 (0:00:00.034) 0:00:11.075 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 03 February 2025 19:22:16 -0500 (0:00:00.035) 0:00:11.111 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Monday 03 February 2025 19:22:16 -0500 (0:00:00.045) 0:00:11.156 ******* ok: [managed-node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42 Monday 03 February 2025 19:22:17 -0500 (0:00:00.779) 0:00:11.935 ******* included: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 => (item={'path': '/etc/pki/tls/certs/mycert_no_auto_renew.crt', 'key_path': '/etc/pki/tls/private/mycert_no_auto_renew.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': False}) included: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 => (item={'path': '/etc/pki/tls/certs/defaultcert.crt', 'key_path': '/etc/pki/tls/private/defaultcert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': True}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 03 February 2025 19:22:17 -0500 (0:00:00.081) 0:00:12.017 ******* ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 03 February 2025 19:22:17 -0500 (0:00:00.022) 0:00:12.039 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 03 February 2025 19:22:17 -0500 (0:00:00.036) 0:00:12.075 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 03 February 2025 19:22:17 -0500 (0:00:00.033) 0:00:12.109 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 03 February 2025 19:22:17 -0500 (0:00:00.033) 0:00:12.143 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 03 February 2025 19:22:20 -0500 (0:00:02.901) 0:00:15.044 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738628535.6368008, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "878f62c0f4b8fdbc4683dc10ec52dc0c62b0248e", "ctime": 1738628535.6338007, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718646, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1738628535.6338007, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_no_auto_renew.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3031146672", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 03 February 2025 19:22:21 -0500 (0:00:00.420) 0:00:15.464 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 03 February 2025 19:22:21 -0500 (0:00:00.023) 0:00:15.488 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 03 February 2025 19:22:21 -0500 (0:00:00.114) 0:00:15.603 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 03 February 2025 19:22:21 -0500 (0:00:00.083) 0:00:15.686 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738628535.5928006, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a6eb210f7e7b1d395d0598dfd8f492dc8dfdccb1", "ctime": 1738628535.6338007, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718645, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1738628535.6338007, "nlink": 1, "path": "/etc/pki/tls/private/mycert_no_auto_renew.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2914479090", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 03 February 2025 19:22:21 -0500 (0:00:00.427) 0:00:16.114 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 03 February 2025 19:22:21 -0500 (0:00:00.030) 0:00:16.144 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 03 February 2025 19:22:21 -0500 (0:00:00.058) 0:00:16.203 ******* ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E9:74:85:27:4D:9E:76:5C:CB:63:87:A4:11:C6:73:C8:9C:14:0A:6E" }, "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": "01:2D:63:26:97:28:DF:E9:A3:2D:47:F9:77:7D:9E:9E:3C:37:58:76" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5C:1C:B0:32:F4:28:FC:AB:F9:2D:E3:16:16:B0:E3:48:66:0D:F8:F9:CC:97:7C:36:DE:1B:08:D9:DA:3B:40:8A:C9:22:21:FC:08:21:95:03:CA:77:22:35:19:28:84:F6:17:F5:80:0C:8B:68:36:54:08:0A:BB:50:BA:7C:A3:8E:AE:FB:38:36:35:56:94:DA:1D:A2:BD:7F:2F:07:2D:43:B1:9E:06:D1:7E:EA:09:A4:9C:08:DE:EC:F6:35:BA:6C:CA:D8:5C:93:DC:11:25:A1:48:0A:F8:9A:87:09:04:67:96:D2:20:F7:89:72:12:A9:41:38:70:9E:07:6F:C8:6F:7F:79:C0:F3:C8:33:B3:F8:E6:28:DC:B9:83:5E:2B:06:EB:53:D5:7F:CF:A2:B0:AF:5F:FB:AD:E5:37:54:10:67:66:A0:C6:89:33:AF:63:31:12:49:2E:CA:EB:21:B9:EF:32:24:BC:74:A3:33:60:A7:07:16:1C:5A:78:DE:26:0B:1F:DD:5D:E5:33:FF:BF:90:F9:E8:FF:20:7A:AB:EC:CA:4A:43:34:F6:BF:0A:09:2D:6A:BE:B8:91:23:3A:FF:0B:FF:D0:A8:0F:20:4F:7B:16:FB:D7:69:54:56:1C:AC:2B:12:C4:8D:F9:52:17:EE:AF:1F:85:70:6D:95:15:60:6C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204002053Z", "not_valid_before": "20250204002215Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 03 February 2025 19:22:22 -0500 (0:00:00.533) 0:00:16.736 ******* ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E9:74:85:27:4D:9E:76:5C:CB:63:87:A4:11:C6:73:C8:9C:14:0A:6E" }, "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": "01:2D:63:26:97:28:DF:E9:A3:2D:47:F9:77:7D:9E:9E:3C:37:58:76" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5C:1C:B0:32:F4:28:FC:AB:F9:2D:E3:16:16:B0:E3:48:66:0D:F8:F9:CC:97:7C:36:DE:1B:08:D9:DA:3B:40:8A:C9:22:21:FC:08:21:95:03:CA:77:22:35:19:28:84:F6:17:F5:80:0C:8B:68:36:54:08:0A:BB:50:BA:7C:A3:8E:AE:FB:38:36:35:56:94:DA:1D:A2:BD:7F:2F:07:2D:43:B1:9E:06:D1:7E:EA:09:A4:9C:08:DE:EC:F6:35:BA:6C:CA:D8:5C:93:DC:11:25:A1:48:0A:F8:9A:87:09:04:67:96:D2:20:F7:89:72:12:A9:41:38:70:9E:07:6F:C8:6F:7F:79:C0:F3:C8:33:B3:F8:E6:28:DC:B9:83:5E:2B:06:EB:53:D5:7F:CF:A2:B0:AF:5F:FB:AD:E5:37:54:10:67:66:A0:C6:89:33:AF:63:31:12:49:2E:CA:EB:21:B9:EF:32:24:BC:74:A3:33:60:A7:07:16:1C:5A:78:DE:26:0B:1F:DD:5D:E5:33:FF:BF:90:F9:E8:FF:20:7A:AB:EC:CA:4A:43:34:F6:BF:0A:09:2D:6A:BE:B8:91:23:3A:FF:0B:FF:D0:A8:0F:20:4F:7B:16:FB:D7:69:54:56:1C:AC:2B:12:C4:8D:F9:52:17:EE:AF:1F:85:70:6D:95:15:60:6C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204002053Z", "not_valid_before": "20250204002215Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 03 February 2025 19:22:22 -0500 (0:00:00.028) 0:00:16.765 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 03 February 2025 19:22:22 -0500 (0:00:00.056) 0:00:16.821 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 03 February 2025 19:22:22 -0500 (0:00:00.028) 0:00:16.849 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 03 February 2025 19:22:22 -0500 (0:00:00.067) 0:00:16.916 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 03 February 2025 19:22:22 -0500 (0:00:00.048) 0:00:16.965 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 03 February 2025 19:22:22 -0500 (0:00:00.049) 0:00:17.014 ******* ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_no_auto_renew.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.056642", "end": "2025-02-03 19:22:23.045135", "rc": 0, "start": "2025-02-03 19:22:22.988493" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 03 February 2025 19:22:23 -0500 (0:00:00.507) 0:00:17.522 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 03 February 2025 19:22:23 -0500 (0:00:00.043) 0:00:17.565 ******* ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 03 February 2025 19:22:23 -0500 (0:00:00.017) 0:00:17.583 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 03 February 2025 19:22:23 -0500 (0:00:00.018) 0:00:17.601 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 03 February 2025 19:22:23 -0500 (0:00:00.018) 0:00:17.620 ******* skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 03 February 2025 19:22:23 -0500 (0:00:00.014) 0:00:17.634 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 03 February 2025 19:22:26 -0500 (0:00:02.879) 0:00:20.514 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738628536.3558025, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c9cb7cc57c8c5031556e96c7ff06bff9cece45b9", "ctime": 1738628536.3528025, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718648, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1738628536.3528025, "nlink": 1, "path": "/etc/pki/tls/certs/defaultcert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "2869169365", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 03 February 2025 19:22:26 -0500 (0:00:00.357) 0:00:20.871 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 03 February 2025 19:22:26 -0500 (0:00:00.030) 0:00:20.902 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 03 February 2025 19:22:26 -0500 (0:00:00.057) 0:00:20.960 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 03 February 2025 19:22:26 -0500 (0:00:00.069) 0:00:21.029 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738628536.3098025, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8e4ecb8a49e4c2a11029fc0fa4fc221e06e15be5", "ctime": 1738628536.3528025, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718647, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1738628536.3528025, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2058752291", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 03 February 2025 19:22:27 -0500 (0:00:00.426) 0:00:21.455 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 03 February 2025 19:22:27 -0500 (0:00:00.044) 0:00:21.500 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 03 February 2025 19:22:27 -0500 (0:00:00.065) 0:00:21.566 ******* ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E9:74:85:27:4D:9E:76:5C:CB:63:87:A4:11:C6:73:C8:9C:14:0A:6E" }, "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": "37:A1:B3:CE:AF:40:F7:51:83:4A:B1:02:87:EB:00:AE:1B:58:89:05" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "24:EA:2B:72:87:86:E6:64:94:37:BF:76:65:AA:9F:30:E1:3A:78:6E:FF:9B:C3:8E:1D:DD:85:4F:26:42:56:3A:B2:82:3B:81:1F:75:78:52:D3:DC:4F:B0:C5:60:DC:C4:A9:13:28:8B:48:B3:18:05:D7:A3:59:52:7E:6D:92:DB:A8:2D:75:CF:22:31:FE:FA:63:E9:3D:C3:53:37:67:4F:0D:84:4A:6E:10:43:3B:B4:C3:BD:08:7A:FD:F3:FC:4C:99:31:17:92:AC:5B:62:D2:F3:18:B8:A4:53:51:05:97:BB:94:A7:6D:B7:3B:88:14:AD:6C:A4:02:63:10:4C:9A:84:5C:34:14:24:C4:F4:A5:67:0B:A9:8A:CD:E8:6F:B8:B9:E1:9F:6B:96:6A:D3:4D:23:67:BD:72:A7:C1:BE:AB:CE:87:5A:F6:51:5B:C9:E4:25:CD:4D:98:0D:27:17:55:06:5A:42:0E:D5:94:45:02:C4:69:05:30:7C:A3:0D:3E:C0:A2:F0:57:A8:28:DF:7A:37:9E:61:64:D1:AB:12:B7:7D:67:36:FD:CE:43:7A:1C:94:6A:9F:A8:99:F7:8F:F4:33:50:F9:87:9F:4F:54:87:0B:33:75:D3:EC:9A:49:61:21:A8:7B:CB:B0:AF:50:FF:97:B8:C2:5D:4B:9B:2F:83" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204002053Z", "not_valid_before": "20250204002216Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 03 February 2025 19:22:27 -0500 (0:00:00.509) 0:00:22.076 ******* ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E9:74:85:27:4D:9E:76:5C:CB:63:87:A4:11:C6:73:C8:9C:14:0A:6E" }, "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": "37:A1:B3:CE:AF:40:F7:51:83:4A:B1:02:87:EB:00:AE:1B:58:89:05" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "24:EA:2B:72:87:86:E6:64:94:37:BF:76:65:AA:9F:30:E1:3A:78:6E:FF:9B:C3:8E:1D:DD:85:4F:26:42:56:3A:B2:82:3B:81:1F:75:78:52:D3:DC:4F:B0:C5:60:DC:C4:A9:13:28:8B:48:B3:18:05:D7:A3:59:52:7E:6D:92:DB:A8:2D:75:CF:22:31:FE:FA:63:E9:3D:C3:53:37:67:4F:0D:84:4A:6E:10:43:3B:B4:C3:BD:08:7A:FD:F3:FC:4C:99:31:17:92:AC:5B:62:D2:F3:18:B8:A4:53:51:05:97:BB:94:A7:6D:B7:3B:88:14:AD:6C:A4:02:63:10:4C:9A:84:5C:34:14:24:C4:F4:A5:67:0B:A9:8A:CD:E8:6F:B8:B9:E1:9F:6B:96:6A:D3:4D:23:67:BD:72:A7:C1:BE:AB:CE:87:5A:F6:51:5B:C9:E4:25:CD:4D:98:0D:27:17:55:06:5A:42:0E:D5:94:45:02:C4:69:05:30:7C:A3:0D:3E:C0:A2:F0:57:A8:28:DF:7A:37:9E:61:64:D1:AB:12:B7:7D:67:36:FD:CE:43:7A:1C:94:6A:9F:A8:99:F7:8F:F4:33:50:F9:87:9F:4F:54:87:0B:33:75:D3:EC:9A:49:61:21:A8:7B:CB:B0:AF:50:FF:97:B8:C2:5D:4B:9B:2F:83" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204002053Z", "not_valid_before": "20250204002216Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 03 February 2025 19:22:27 -0500 (0:00:00.028) 0:00:22.104 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 03 February 2025 19:22:27 -0500 (0:00:00.060) 0:00:22.164 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 03 February 2025 19:22:27 -0500 (0:00:00.030) 0:00:22.195 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 03 February 2025 19:22:27 -0500 (0:00:00.064) 0:00:22.260 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 03 February 2025 19:22:27 -0500 (0:00:00.061) 0:00:22.322 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 03 February 2025 19:22:27 -0500 (0:00:00.062) 0:00:22.384 ******* ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/defaultcert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.056342", "end": "2025-02-03 19:22:28.317418", "rc": 0, "start": "2025-02-03 19:22:28.261076" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 03 February 2025 19:22:28 -0500 (0:00:00.409) 0:00:22.793 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node2 : ok=49 changed=1 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Monday 03 February 2025 19:22:28 -0500 (0:00:00.054) 0:00:22.847 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.04s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.90s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.88s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.88s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.57s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.10s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.80s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.78s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Parse certificate ------------------------------------------------------- 0.53s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.51s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.51s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.51s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.49s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Retrieve key file stats ------------------------------------------------- 0.43s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve key file stats ------------------------------------------------- 0.43s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.42s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve auto-renew flag ------------------------------------------------ 0.41s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.38s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.36s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Verify certificate file owner and group --------------------------------- 0.11s /tmp/collections-SvX/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49