ansible-playbook [core 2.17.7] config file = /etc/ansible/ansible.cfg 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-iHm executable location = /usr/local/bin/ansible-playbook python version = 3.12.8 (main, Dec 3 2024, 00:00:00) [GCC 14.2.1 20241104 (Red Hat 14.2.1-6)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True Using /etc/ansible/ansible.cfg as config file 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_many_self_signed.yml ******************************************* 2 plays in /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml PLAY [Issue many self-signed certificates] ************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 Saturday 21 December 2024 07:27:37 -0500 (0:00:00.009) 0:00:00.009 ***** [WARNING]: Platform linux on host managed-node3 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node3] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 21 December 2024 07:27:38 -0500 (0:00:01.279) 0:00:01.289 ***** included: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 21 December 2024 07:27:38 -0500 (0:00:00.040) 0:00:01.329 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 21 December 2024 07:27:38 -0500 (0:00:00.056) 0:00:01.386 ***** ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 21 December 2024 07:27:38 -0500 (0:00:00.493) 0:00:01.879 ***** ok: [managed-node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 21 December 2024 07:27:38 -0500 (0:00:00.027) 0:00:01.907 ***** skipping: [managed-node3] => (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-node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node3] => (item=CentOS_10.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_10.yml" } ok: [managed-node3] => (item=CentOS_10.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_10.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 21 December 2024 07:27:38 -0500 (0:00:00.048) 0:00:01.955 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 21 December 2024 07:27:39 -0500 (0:00:00.840) 0:00:02.796 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 21 December 2024 07:27:40 -0500 (0:00:00.798) 0:00:03.595 ***** ok: [managed-node3] => (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-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 21 December 2024 07:27:41 -0500 (0:00:00.497) 0:00:04.092 ***** ok: [managed-node3] => (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-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 21 December 2024 07:27:41 -0500 (0:00:00.461) 0:00:04.553 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-12-21 07:27:05 EST", "ActiveEnterTimestampMonotonic": "251563376", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus-broker.service network.target systemd-journald.socket system.slice basic.target syslog.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-12-21 07:27:05 EST", "AssertTimestampMonotonic": "251535734", "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": "772583000", "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": "Sat 2024-12-21 07:27:05 EST", "ConditionTimestampMonotonic": "251535731", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4638", "ControlPID": "0", "CoredumpFilter": "0x33", "CoredumpReceive": "no", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveMemoryHigh": "3698233344", "EffectiveMemoryMax": "3698233344", "EffectiveTasksMax": "22349", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainHandoffTimestamp": "Sat 2024-12-21 07:27:05 EST", "ExecMainHandoffTimestampMonotonic": "251549509", "ExecMainPID": "8297", "ExecMainStartTimestamp": "Sat 2024-12-21 07:27:05 EST", "ExecMainStartTimestampMonotonic": "251536900", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-12-21 07:27:05 EST] ; stop_time=[n/a] ; pid=8297 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-12-21 07:27:05 EST] ; stop_time=[n/a] ; pid=8297 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-12-21 07:27:05 EST", "InactiveExitTimestampMonotonic": "251539365", "InvocationID": "407a470b171c46a8b581b42b20b7c4a5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13968", "LimitNPROCSoft": "13968", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13968", "LimitSIGPENDINGSoft": "13968", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8297", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3294953472", "MemoryCurrent": "2678784", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "9539584", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "0", "MemorySwapMax": "infinity", "MemorySwapPeak": "0", "MemoryZSwapCurrent": "0", "MemoryZSwapMax": "infinity", "MemoryZSwapWriteback": "yes", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "SetLoginEnvironment": "no", "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]", "StartupMemoryHigh": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Sat 2024-12-21 07:27:05 EST", "StateChangeTimestampMonotonic": "251563376", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22349", "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/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 21 December 2024 07:27:42 -0500 (0:00:01.128) 0:00:05.682 ***** changed: [managed-node3] => (item={'name': 'mycert_many_self_signed', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_many_self_signed" } } MSG: Certificate requested (new). changed: [managed-node3] => (item={'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } } MSG: Certificate requested (new). changed: [managed-node3] => (item={'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 21 December 2024 07:27:45 -0500 (0:00:02.642) 0:00:08.324 ***** skipping: [managed-node3] => (item=['cert', {'name': 'mycert_many_self_signed', '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": "mycert_many_self_signed" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['cert', {'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['cert', {'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['key', {'name': 'mycert_many_self_signed', '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": "mycert_many_self_signed" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['key', {'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['key', {'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['ca', {'name': 'mycert_many_self_signed', '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": "mycert_many_self_signed" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['ca', {'name': 'other-cert', 'dns': 'www.example.org', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.org", "name": "other-cert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['ca', {'name': 'another-cert', 'dns': 'www.example.net', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.net", "name": "another-cert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 21 December 2024 07:27:45 -0500 (0:00:00.064) 0:00:08.388 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 21 December 2024 07:27:45 -0500 (0:00:00.035) 0:00:08.424 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 21 December 2024 07:27:45 -0500 (0:00:00.037) 0:00:08.461 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 Saturday 21 December 2024 07:27:45 -0500 (0:00:00.072) 0:00:08.533 ***** ok: [managed-node3] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:50 Saturday 21 December 2024 07:27:46 -0500 (0:00:00.866) 0:00:09.399 ***** included: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 => (item={'path': '/etc/pki/tls/certs/mycert_many_self_signed.crt', 'key_path': '/etc/pki/tls/private/mycert_many_self_signed.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) included: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 => (item={'path': '/etc/pki/tls/certs/other-cert.crt', 'key_path': '/etc/pki/tls/private/other-cert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.org'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.org'}]}) included: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 => (item={'path': '/etc/pki/tls/certs/another-cert.crt', 'key_path': '/etc/pki/tls/private/another-cert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.net'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.net'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 21 December 2024 07:27:46 -0500 (0:00:00.112) 0:00:09.511 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 21 December 2024 07:27:46 -0500 (0:00:00.016) 0:00:09.528 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 21 December 2024 07:27:46 -0500 (0:00:00.024) 0:00:09.552 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 21 December 2024 07:27:46 -0500 (0:00:00.029) 0:00:09.582 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 21 December 2024 07:27:46 -0500 (0:00:00.037) 0:00:09.619 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 21 December 2024 07:27:47 -0500 (0:00:00.731) 0:00:10.350 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1734784063.3763378, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1e9e033cd9327f61185d5055f5d28e181f296ca0", "ctime": 1734784063.3743377, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 301280, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734784063.3743377, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_many_self_signed.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1231231071", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 21 December 2024 07:27:47 -0500 (0:00:00.435) 0:00:10.786 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 21 December 2024 07:27:47 -0500 (0:00:00.023) 0:00:10.809 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 21 December 2024 07:27:47 -0500 (0:00:00.047) 0:00:10.857 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 21 December 2024 07:27:47 -0500 (0:00:00.040) 0:00:10.897 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1734784063.3313375, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2e81e54950ac8b06e3cbc4dc328e9d8a2d16fb88", "ctime": 1734784063.3743377, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12583558, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734784063.3743377, "nlink": 1, "path": "/etc/pki/tls/private/mycert_many_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2248453587", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 21 December 2024 07:27:48 -0500 (0:00:00.362) 0:00:11.260 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 21 December 2024 07:27:48 -0500 (0:00:00.028) 0:00:11.289 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 21 December 2024 07:27:48 -0500 (0:00:00.058) 0:00:11.348 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:52:01:4B:67:98:C5:E0:7B:51:53:D0:70:58:F0:34:AA:D2:77:7B" }, "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": "E8:0F:7E:BC:9E:53:E9:27:CF:16:1B:89:24:33:68:D4:D3:9D:DA:62" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "92:B0:0A:00:0C:94:46:C0:DA:31:33:CC:3D:91:CF:73:91:9F:01:29:8A:1A:3A:58:BD:D5:CD:7D:C9:A4:4F:D5:BA:CA:38:D8:20:98:44:5E:52:C4:7B:0E:60:E0:F8:5A:9A:3E:45:81:F1:FF:DA:E9:69:37:46:A3:38:52:59:5F:09:7F:FF:CD:63:18:A1:E4:F9:18:63:CE:4A:B3:FA:55:F8:90:E4:42:EF:06:8F:A4:16:CB:05:F8:7A:7B:B8:40:BC:27:17:7E:F6:59:1F:8A:C1:2C:A1:52:13:1D:F8:A4:4D:CE:EE:5B:54:CB:DE:48:9E:F7:F6:59:6B:C0:24:B5:E0:F5:E2:A1:35:E5:1A:48:DE:BD:C6:64:52:BF:02:99:1B:69:6C:05:35:2C:53:2E:90:09:10:99:39:C8:AB:27:E1:47:E2:38:FE:14:44:B7:7E:B0:8D:D8:D7:08:70:EC:CE:E6:48:4D:99:F1:8F:96:6C:9D:DE:B6:AD:85:71:5F:03:7F:57:D2:FE:B9:71:53:A7:BA:BD:4A:15:21:B5:A9:42:B6:FA:CF:5A:43:90:D3:0F:C3:66:20:5C:41:E7:B6:A6:D0:82:2B:CD:55:2D:14:E0:40:CE:9E:59:81:7E:22:90:E9:0F:A8:02:BB:35:3D:33:E4:51:93:AA:45:B3:87" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251221122705Z", "not_valid_before": "20241221122743Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 21 December 2024 07:27:48 -0500 (0:00:00.601) 0:00:11.949 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:52:01:4B:67:98:C5:E0:7B:51:53:D0:70:58:F0:34:AA:D2:77:7B" }, "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": "E8:0F:7E:BC:9E:53:E9:27:CF:16:1B:89:24:33:68:D4:D3:9D:DA:62" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "92:B0:0A:00:0C:94:46:C0:DA:31:33:CC:3D:91:CF:73:91:9F:01:29:8A:1A:3A:58:BD:D5:CD:7D:C9:A4:4F:D5:BA:CA:38:D8:20:98:44:5E:52:C4:7B:0E:60:E0:F8:5A:9A:3E:45:81:F1:FF:DA:E9:69:37:46:A3:38:52:59:5F:09:7F:FF:CD:63:18:A1:E4:F9:18:63:CE:4A:B3:FA:55:F8:90:E4:42:EF:06:8F:A4:16:CB:05:F8:7A:7B:B8:40:BC:27:17:7E:F6:59:1F:8A:C1:2C:A1:52:13:1D:F8:A4:4D:CE:EE:5B:54:CB:DE:48:9E:F7:F6:59:6B:C0:24:B5:E0:F5:E2:A1:35:E5:1A:48:DE:BD:C6:64:52:BF:02:99:1B:69:6C:05:35:2C:53:2E:90:09:10:99:39:C8:AB:27:E1:47:E2:38:FE:14:44:B7:7E:B0:8D:D8:D7:08:70:EC:CE:E6:48:4D:99:F1:8F:96:6C:9D:DE:B6:AD:85:71:5F:03:7F:57:D2:FE:B9:71:53:A7:BA:BD:4A:15:21:B5:A9:42:B6:FA:CF:5A:43:90:D3:0F:C3:66:20:5C:41:E7:B6:A6:D0:82:2B:CD:55:2D:14:E0:40:CE:9E:59:81:7E:22:90:E9:0F:A8:02:BB:35:3D:33:E4:51:93:AA:45:B3:87" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251221122705Z", "not_valid_before": "20241221122743Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 21 December 2024 07:27:48 -0500 (0:00:00.020) 0:00:11.969 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.038) 0:00:12.008 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.019) 0:00:12.027 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.036) 0:00:12.064 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.044) 0:00:12.109 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.042) 0:00:12.151 ***** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_many_self_signed.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.041915", "end": "2024-12-21 07:27:49.566638", "rc": 0, "start": "2024-12-21 07:27:49.524723" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.467) 0:00:12.619 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.041) 0:00:12.660 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.016) 0:00:12.676 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.019) 0:00:12.696 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.022) 0:00:12.718 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 21 December 2024 07:27:49 -0500 (0:00:00.024) 0:00:12.742 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 21 December 2024 07:27:50 -0500 (0:00:00.793) 0:00:13.536 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1734784064.1433403, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e876e03d5effd6d6b32bef97140f9383a6a3b127", "ctime": 1734784064.1403403, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 301281, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734784064.1403403, "nlink": 1, "path": "/etc/pki/tls/certs/other-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3162452436", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 21 December 2024 07:27:50 -0500 (0:00:00.362) 0:00:13.898 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 21 December 2024 07:27:50 -0500 (0:00:00.031) 0:00:13.929 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 21 December 2024 07:27:50 -0500 (0:00:00.060) 0:00:13.990 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 21 December 2024 07:27:51 -0500 (0:00:00.056) 0:00:14.047 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1734784064.0983403, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "94cda875e8843a00c12aebfa6b4ace5f1f832455", "ctime": 1734784064.1403403, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12583559, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734784064.1403403, "nlink": 1, "path": "/etc/pki/tls/private/other-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1072613385", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 21 December 2024 07:27:51 -0500 (0:00:00.425) 0:00:14.472 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 21 December 2024 07:27:51 -0500 (0:00:00.021) 0:00:14.494 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 21 December 2024 07:27:51 -0500 (0:00:00.043) 0:00:14.537 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:52:01:4B:67:98:C5:E0:7B:51:53:D0:70:58:F0:34:AA:D2:77:7B" }, "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.org" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "0B:B7:E2:AD:C9:B1:97:1D:A0:94:37:82:84:C6:C3:02:40:87:93:1B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "76:54:1F:26:B2:C1:EE:9F:31:67:28:BF:3C:FF:9C:7E:79:7F:86:95:FB:44:1F:4E:6B:D8:19:64:76:70:F8:F0:D0:8D:21:BA:B1:A7:26:44:C7:A2:E1:DF:3C:29:58:2A:30:17:D6:FE:D7:7B:8A:23:51:AC:D3:8D:6A:8A:5F:D0:E3:F8:F4:73:BB:98:1F:BA:75:2B:CD:93:99:9A:20:7E:82:EA:BF:77:56:58:7B:74:FF:DF:0E:75:AF:BF:50:82:98:58:A4:BA:D3:01:A7:E5:D9:C2:62:94:13:1E:00:FF:1A:F7:93:EA:F3:9F:3B:FB:56:B6:F0:F3:FD:CC:C4:E8:DB:03:DE:60:4C:D0:E0:F9:3E:60:26:72:5B:73:13:E3:D9:26:92:B7:5F:BF:69:69:63:B9:58:DD:6F:D2:A6:A2:43:0E:5E:AB:20:CA:7D:7A:26:51:28:36:BE:2A:3F:2C:F6:43:3E:38:10:4E:9A:48:1C:96:D7:BC:36:41:5E:F3:35:60:2C:36:5C:70:CF:BF:4D:FF:EF:1F:38:35:12:18:21:8B:2D:0D:36:8C:6B:69:EA:8B:65:65:B3:3E:6E:48:76:3E:CF:00:81:79:40:94:80:D5:64:F1:CA:BA:9F:6D:4D:D3:10:ED:61:4F:6B:5C:96:3D:21:0B:18:6C:31:0B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20251221122705Z", "not_valid_before": "20241221122744Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 21 December 2024 07:27:51 -0500 (0:00:00.413) 0:00:14.951 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:52:01:4B:67:98:C5:E0:7B:51:53:D0:70:58:F0:34:AA:D2:77:7B" }, "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.org" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "0B:B7:E2:AD:C9:B1:97:1D:A0:94:37:82:84:C6:C3:02:40:87:93:1B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "76:54:1F:26:B2:C1:EE:9F:31:67:28:BF:3C:FF:9C:7E:79:7F:86:95:FB:44:1F:4E:6B:D8:19:64:76:70:F8:F0:D0:8D:21:BA:B1:A7:26:44:C7:A2:E1:DF:3C:29:58:2A:30:17:D6:FE:D7:7B:8A:23:51:AC:D3:8D:6A:8A:5F:D0:E3:F8:F4:73:BB:98:1F:BA:75:2B:CD:93:99:9A:20:7E:82:EA:BF:77:56:58:7B:74:FF:DF:0E:75:AF:BF:50:82:98:58:A4:BA:D3:01:A7:E5:D9:C2:62:94:13:1E:00:FF:1A:F7:93:EA:F3:9F:3B:FB:56:B6:F0:F3:FD:CC:C4:E8:DB:03:DE:60:4C:D0:E0:F9:3E:60:26:72:5B:73:13:E3:D9:26:92:B7:5F:BF:69:69:63:B9:58:DD:6F:D2:A6:A2:43:0E:5E:AB:20:CA:7D:7A:26:51:28:36:BE:2A:3F:2C:F6:43:3E:38:10:4E:9A:48:1C:96:D7:BC:36:41:5E:F3:35:60:2C:36:5C:70:CF:BF:4D:FF:EF:1F:38:35:12:18:21:8B:2D:0D:36:8C:6B:69:EA:8B:65:65:B3:3E:6E:48:76:3E:CF:00:81:79:40:94:80:D5:64:F1:CA:BA:9F:6D:4D:D3:10:ED:61:4F:6B:5C:96:3D:21:0B:18:6C:31:0B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20251221122705Z", "not_valid_before": "20241221122744Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 21 December 2024 07:27:51 -0500 (0:00:00.034) 0:00:14.985 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.064) 0:00:15.049 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.034) 0:00:15.084 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.056) 0:00:15.140 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.059) 0:00:15.199 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.045) 0:00:15.245 ***** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/other-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.040791", "end": "2024-12-21 07:27:52.571517", "rc": 0, "start": "2024-12-21 07:27:52.530726" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.391) 0:00:15.637 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.051) 0:00:15.688 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.019) 0:00:15.708 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.029) 0:00:15.737 ***** skipping: [managed-node3] => { "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-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.049) 0:00:15.787 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 21 December 2024 07:27:52 -0500 (0:00:00.026) 0:00:15.813 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 21 December 2024 07:27:53 -0500 (0:00:00.738) 0:00:16.552 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1734784065.171344, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "523c0ba48f6986777525f28d2f216230fe2af99b", "ctime": 1734784065.169344, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 301282, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734784065.169344, "nlink": 1, "path": "/etc/pki/tls/certs/another-cert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "3365542009", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 21 December 2024 07:27:53 -0500 (0:00:00.359) 0:00:16.911 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 21 December 2024 07:27:53 -0500 (0:00:00.020) 0:00:16.932 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 21 December 2024 07:27:53 -0500 (0:00:00.064) 0:00:16.997 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 21 December 2024 07:27:54 -0500 (0:00:00.108) 0:00:17.106 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1734784065.127344, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f238fc7180eeaa1eea9b790f54d4440a56f32155", "ctime": 1734784065.169344, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12583560, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734784065.169344, "nlink": 1, "path": "/etc/pki/tls/private/another-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "1818392002", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 21 December 2024 07:27:54 -0500 (0:00:00.453) 0:00:17.560 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 21 December 2024 07:27:54 -0500 (0:00:00.051) 0:00:17.612 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 21 December 2024 07:27:54 -0500 (0:00:00.074) 0:00:17.686 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:52:01:4B:67:98:C5:E0:7B:51:53:D0:70:58:F0:34:AA:D2:77:7B" }, "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.net" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "03:C2:28:46:DC:DB:56:42:BD:27:7D:5C:FC:8A:8A:87:E4:23:78:65" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "00:30:7C:7A:24:B0:40:66:EC:4E:33:DA:F7:56:31:87:8A:32:19:D5:47:30:95:7E:48:75:EA:B5:1D:DC:BE:16:3D:03:26:06:60:D6:5C:32:89:17:5D:26:52:3F:EA:C3:20:E9:E6:2A:32:E3:F0:55:0A:2D:B5:D3:FC:EC:81:39:0B:13:60:66:D5:55:2C:DF:35:29:9C:E0:C4:F6:1E:4F:7C:D4:9F:68:61:4D:E4:B2:1E:08:89:D2:4C:59:9C:89:7D:33:A2:EF:91:E1:B1:E8:08:99:9D:DF:12:2F:2D:81:C7:AC:0D:2D:EF:ED:52:FC:EE:9F:83:E2:86:A7:DF:F5:46:E5:EF:41:09:63:68:BF:9A:A8:62:23:A3:34:E4:F1:EC:DC:0B:C7:49:51:6E:C3:AA:73:BC:DB:CE:BF:40:DA:BB:3A:B1:23:EC:C8:B6:C7:31:94:E0:FE:63:B2:55:D3:FF:E9:72:DC:0D:EF:B2:55:36:DF:50:02:3D:F6:F1:1C:92:09:F6:BB:F5:13:6D:71:09:FC:E0:8F:AD:DE:91:69:04:1C:7D:44:7A:B4:D9:A3:15:BA:AA:55:44:C8:F6:22:8F:9C:ED:8A:8C:4B:73:AC:D5:54:EA:08:7F:86:A4:12:2B:D2:58:6A:F8:FD:FA:DA:95:42:0C:02:6C:7F:6E:2E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20251221122705Z", "not_valid_before": "20241221122745Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.420) 0:00:18.106 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:52:01:4B:67:98:C5:E0:7B:51:53:D0:70:58:F0:34:AA:D2:77:7B" }, "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.net" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "03:C2:28:46:DC:DB:56:42:BD:27:7D:5C:FC:8A:8A:87:E4:23:78:65" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "00:30:7C:7A:24:B0:40:66:EC:4E:33:DA:F7:56:31:87:8A:32:19:D5:47:30:95:7E:48:75:EA:B5:1D:DC:BE:16:3D:03:26:06:60:D6:5C:32:89:17:5D:26:52:3F:EA:C3:20:E9:E6:2A:32:E3:F0:55:0A:2D:B5:D3:FC:EC:81:39:0B:13:60:66:D5:55:2C:DF:35:29:9C:E0:C4:F6:1E:4F:7C:D4:9F:68:61:4D:E4:B2:1E:08:89:D2:4C:59:9C:89:7D:33:A2:EF:91:E1:B1:E8:08:99:9D:DF:12:2F:2D:81:C7:AC:0D:2D:EF:ED:52:FC:EE:9F:83:E2:86:A7:DF:F5:46:E5:EF:41:09:63:68:BF:9A:A8:62:23:A3:34:E4:F1:EC:DC:0B:C7:49:51:6E:C3:AA:73:BC:DB:CE:BF:40:DA:BB:3A:B1:23:EC:C8:B6:C7:31:94:E0:FE:63:B2:55:D3:FF:E9:72:DC:0D:EF:B2:55:36:DF:50:02:3D:F6:F1:1C:92:09:F6:BB:F5:13:6D:71:09:FC:E0:8F:AD:DE:91:69:04:1C:7D:44:7A:B4:D9:A3:15:BA:AA:55:44:C8:F6:22:8F:9C:ED:8A:8C:4B:73:AC:D5:54:EA:08:7F:86:A4:12:2B:D2:58:6A:F8:FD:FA:DA:95:42:0C:02:6C:7F:6E:2E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20251221122705Z", "not_valid_before": "20241221122745Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.037) 0:00:18.144 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.062) 0:00:18.207 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.038) 0:00:18.246 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.054) 0:00:18.300 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.044) 0:00:18.345 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.046) 0:00:18.391 ***** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/another-cert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.041813", "end": "2024-12-21 07:27:55.719345", "rc": 0, "start": "2024-12-21 07:27:55.677532" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 21 December 2024 07:27:55 -0500 (0:00:00.380) 0:00:18.772 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node3 : ok=69 changed=1 unreachable=0 failed=0 skipped=14 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Saturday 21 December 2024 07:27:55 -0500 (0:00:00.039) 0:00:18.811 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.64s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.28s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.13s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.87s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.84s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.80s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.79s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.74s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.73s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Parse certificate ------------------------------------------------------- 0.60s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.50s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.49s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve auto-renew flag ------------------------------------------------ 0.47s /tmp/collections-iHm/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.46s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve key file stats ------------------------------------------------- 0.46s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.44s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.43s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Parse certificate ------------------------------------------------------- 0.42s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Parse certificate ------------------------------------------------------- 0.41s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.39s /tmp/collections-iHm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143