[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.4] 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-75h executable location = /usr/local/bin/ansible-playbook python version = 3.12.5 (main, Aug 23 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)] (/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-75h/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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 Monday 23 September 2024 08:42:42 -0400 (0:00:00.032) 0:00:00.032 ****** [WARNING]: Platform linux on host managed_node2 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_node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 23 September 2024 08:42:43 -0400 (0:00:01.154) 0:00:01.186 ****** included: /tmp/collections-75h/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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 23 September 2024 08:42:43 -0400 (0:00:00.025) 0:00:01.212 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 23 September 2024 08:42:43 -0400 (0:00:00.039) 0:00:01.252 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 23 September 2024 08:42:44 -0400 (0:00:00.468) 0:00:01.720 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 23 September 2024 08:42:44 -0400 (0:00:00.021) 0:00:01.742 ****** 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" } ok: [managed_node2] => (item=CentOS_10.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_10.yml" } ok: [managed_node2] => (item=CentOS_10.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-75h/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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 23 September 2024 08:42:44 -0400 (0:00:00.038) 0:00:01.780 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 23 September 2024 08:42:45 -0400 (0:00:00.893) 0:00:02.674 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 23 September 2024 08:42:46 -0400 (0:00:00.754) 0:00:03.428 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 23 September 2024 08:42:46 -0400 (0:00:00.635) 0:00:04.063 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 23 September 2024 08:42:47 -0400 (0:00:00.448) 0:00:04.512 ****** ok: [managed_node2] => (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": "Mon 2024-09-23 08:42:06 EDT", "ActiveEnterTimestampMonotonic": "160553784", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target dbus-broker.service basic.target system.slice syslog.target network.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-09-23 08:42:06 EDT", "AssertTimestampMonotonic": "160529184", "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": "1135480000", "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": "Mon 2024-09-23 08:42:06 EDT", "ConditionTimestampMonotonic": "160529180", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4438", "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": "3702882304", "EffectiveMemoryMax": "3702882304", "EffectiveTasksMax": "22362", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainHandoffTimestamp": "Mon 2024-09-23 08:42:06 EDT", "ExecMainHandoffTimestampMonotonic": "160543345", "ExecMainPID": "7181", "ExecMainStartTimestamp": "Mon 2024-09-23 08:42:06 EDT", "ExecMainStartTimestampMonotonic": "160530368", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Mon 2024-09-23 08:42:06 EDT] ; stop_time=[n/a] ; pid=7181 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Mon 2024-09-23 08:42:06 EDT] ; stop_time=[n/a] ; pid=7181 ; 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": "Mon 2024-09-23 08:42:06 EDT", "InactiveExitTimestampMonotonic": "160531890", "InvocationID": "55c8b27b979943c3999583ee8737767e", "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": "13976", "LimitNPROCSoft": "13976", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13976", "LimitSIGPENDINGSoft": "13976", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7181", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3306004480", "MemoryCurrent": "2756608", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "10821632", "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": "sysinit.target system.slice 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": "Mon 2024-09-23 08:42:06 EDT", "StateChangeTimestampMonotonic": "160553784", "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": "22362", "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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 23 September 2024 08:42:47 -0400 (0:00:00.764) 0:00:05.276 ****** changed: [managed_node2] => (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_node2] => (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_node2] => (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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 23 September 2024 08:42:50 -0400 (0:00:02.518) 0:00:07.795 ****** skipping: [managed_node2] => (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_node2] => (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_node2] => (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_node2] => (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_node2] => (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_node2] => (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_node2] => (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_node2] => (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_node2] => (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_node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 23 September 2024 08:42:50 -0400 (0:00:00.063) 0:00:07.858 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 23 September 2024 08:42:50 -0400 (0:00:00.038) 0:00:07.897 ****** 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-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 23 September 2024 08:42:50 -0400 (0:00:00.046) 0:00:07.943 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 Monday 23 September 2024 08:42:50 -0400 (0:00:00.071) 0:00:08.015 ****** ok: [managed_node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:50 Monday 23 September 2024 08:42:51 -0400 (0:00:00.860) 0:00:08.876 ****** included: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:42:51 -0400 (0:00:00.059) 0:00:08.935 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:42:51 -0400 (0:00:00.014) 0:00:08.949 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:42:51 -0400 (0:00:00.017) 0:00:08.966 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:42:51 -0400 (0:00:00.016) 0:00:08.983 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:42:51 -0400 (0:00:00.012) 0:00:08.996 ****** ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:42:52 -0400 (0:00:00.675) 0:00:09.671 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727095368.5672936, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e622631730f93e44f395b78f8eded62165c5183f", "ctime": 1727095368.5652938, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538309, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727095368.5652938, "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": "2628713175", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:42:52 -0400 (0:00:00.348) 0:00:10.020 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:42:52 -0400 (0:00:00.017) 0:00:10.038 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:42:52 -0400 (0:00:00.045) 0:00:10.084 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:42:52 -0400 (0:00:00.042) 0:00:10.127 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727095368.5242925, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f16ad2b9df8e1b59e29b43174b73b4ed76dc4422", "ctime": 1727095368.5652938, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4816192, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727095368.5652938, "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": "2502895345", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:42:53 -0400 (0:00:00.349) 0:00:10.476 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:42:53 -0400 (0:00:00.028) 0:00:10.505 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:42:53 -0400 (0:00:00.057) 0:00:10.562 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A7:9F:CF:3B:47:03:21:83:76:B4:0B:CE:7D:F3:3E:75:F8:34:22:CB" }, "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": "B9:CF:6C:18:1B:66:9E:5B:67:57:0A:57:F4:44:DD:5C:1B:EC:06:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "BC:57:BA:CE:E4:41:00:B8:AC:26:4E:E4:AA:41:89:24:0F:C5:53:FE:25:9B:04:6D:FC:5C:F5:F8:F0:AE:D4:0B:5C:88:7F:1C:57:D7:C0:A3:68:FB:FF:87:B0:18:E8:8D:F2:E8:E2:97:80:64:B1:83:24:7E:10:56:B1:4B:B0:8B:FD:4A:BD:4C:54:EA:BF:05:97:32:D9:C0:20:0A:EC:31:A3:8C:62:7D:36:40:D2:A6:3E:2F:66:28:B3:56:05:C0:8E:E7:DE:BC:18:E2:29:85:2F:FE:A9:E4:F6:58:D9:69:1F:1F:2D:A9:C5:16:F1:07:0C:45:87:25:B0:62:DA:84:72:65:1A:F1:2B:78:1C:9F:D3:2D:4C:5C:8F:70:12:C0:E4:F5:A3:21:20:DA:1C:8D:7C:3D:33:00:54:6C:3C:C0:B2:0F:D2:AD:2E:11:4B:54:3F:8E:B5:D3:9D:76:4B:61:60:CA:9D:5E:3C:67:4C:A1:17:F1:66:5A:08:CB:38:B3:DA:96:B4:BA:F6:B2:85:7F:1C:0B:8A:E6:5F:64:9C:05:F9:7D:18:0E:D7:E6:3E:22:BB:34:5E:10:D1:27:A0:20:50:E9:21:F4:69:51:F2:86:54:AA:28:0E:89:83:4C:F6:2D:8E:38:67:1F:B1:E3:DD:94:74:6B:A6:1A:AC:28:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923124206Z", "not_valid_before": "20240923124248Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:42:53 -0400 (0:00:00.510) 0:00:11.073 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A7:9F:CF:3B:47:03:21:83:76:B4:0B:CE:7D:F3:3E:75:F8:34:22:CB" }, "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": "B9:CF:6C:18:1B:66:9E:5B:67:57:0A:57:F4:44:DD:5C:1B:EC:06:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "BC:57:BA:CE:E4:41:00:B8:AC:26:4E:E4:AA:41:89:24:0F:C5:53:FE:25:9B:04:6D:FC:5C:F5:F8:F0:AE:D4:0B:5C:88:7F:1C:57:D7:C0:A3:68:FB:FF:87:B0:18:E8:8D:F2:E8:E2:97:80:64:B1:83:24:7E:10:56:B1:4B:B0:8B:FD:4A:BD:4C:54:EA:BF:05:97:32:D9:C0:20:0A:EC:31:A3:8C:62:7D:36:40:D2:A6:3E:2F:66:28:B3:56:05:C0:8E:E7:DE:BC:18:E2:29:85:2F:FE:A9:E4:F6:58:D9:69:1F:1F:2D:A9:C5:16:F1:07:0C:45:87:25:B0:62:DA:84:72:65:1A:F1:2B:78:1C:9F:D3:2D:4C:5C:8F:70:12:C0:E4:F5:A3:21:20:DA:1C:8D:7C:3D:33:00:54:6C:3C:C0:B2:0F:D2:AD:2E:11:4B:54:3F:8E:B5:D3:9D:76:4B:61:60:CA:9D:5E:3C:67:4C:A1:17:F1:66:5A:08:CB:38:B3:DA:96:B4:BA:F6:B2:85:7F:1C:0B:8A:E6:5F:64:9C:05:F9:7D:18:0E:D7:E6:3E:22:BB:34:5E:10:D1:27:A0:20:50:E9:21:F4:69:51:F2:86:54:AA:28:0E:89:83:4C:F6:2D:8E:38:67:1F:B1:E3:DD:94:74:6B:A6:1A:AC:28:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923124206Z", "not_valid_before": "20240923124248Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:42:53 -0400 (0:00:00.025) 0:00:11.098 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:42:53 -0400 (0:00:00.039) 0:00:11.138 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:42:53 -0400 (0:00:00.019) 0:00:11.157 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:42:53 -0400 (0:00:00.034) 0:00:11.192 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:42:53 -0400 (0:00:00.039) 0:00:11.232 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:42:53 -0400 (0:00:00.037) 0:00:11.270 ****** ok: [managed_node2] => { "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.040952", "end": "2024-09-23 08:42:54.258978", "rc": 0, "start": "2024-09-23 08:42:54.218026" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:42:54 -0400 (0:00:00.457) 0:00:11.727 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:42:54 -0400 (0:00:00.044) 0:00:11.771 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:42:54 -0400 (0:00:00.014) 0:00:11.786 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:42:54 -0400 (0:00:00.028) 0:00:11.814 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:42:54 -0400 (0:00:00.028) 0:00:11.843 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:42:54 -0400 (0:00:00.026) 0:00:11.869 ****** ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:42:55 -0400 (0:00:00.769) 0:00:12.638 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727095369.3383148, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c59601413917f32ef5024bbce8b38e069ea4ee77", "ctime": 1727095369.3353145, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538312, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727095369.3353145, "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": "3603903098", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:42:55 -0400 (0:00:00.357) 0:00:12.996 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:42:55 -0400 (0:00:00.028) 0:00:13.024 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:42:55 -0400 (0:00:00.077) 0:00:13.102 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:42:55 -0400 (0:00:00.078) 0:00:13.180 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727095369.2943134, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "713702a4d9ab0d23ccd0ff0c35fee1b52543cce7", "ctime": 1727095369.3353145, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4816193, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727095369.3353145, "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": "1474669760", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:42:56 -0400 (0:00:00.385) 0:00:13.565 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:42:56 -0400 (0:00:00.036) 0:00:13.601 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:42:56 -0400 (0:00:00.073) 0:00:13.675 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A7:9F:CF:3B:47:03:21:83:76:B4:0B:CE:7D:F3:3E:75:F8:34:22:CB" }, "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": "45:13:83:41:2F:18:93:41:F3:5E:B2:55:3A:3E:C2:C2:96:5E:99:1D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:A4:70:EE:41:AE:63:61:09:B8:AC:FE:D1:84:51:F9:F5:11:C4:7C:80:2B:79:85:9D:EB:2F:0A:1C:7A:C0:A2:99:45:03:AA:A8:1C:58:CE:5B:4B:AB:98:45:6F:E0:F4:2A:06:28:2A:2A:40:2D:01:FD:6F:8D:0F:93:78:53:9C:16:06:87:5D:C8:31:F2:50:E8:D7:B6:B5:4F:CD:BB:77:2C:73:40:EC:D8:7F:93:53:83:A8:1E:2D:39:7E:E2:D8:13:29:34:F6:3C:30:EB:C0:33:FE:5F:8B:4D:2E:A1:C4:8B:97:38:00:39:A8:73:0D:60:3E:ED:1D:02:12:7B:4C:FC:00:2F:85:8B:33:A1:91:A3:7D:27:2F:9D:AB:41:BA:DB:64:40:36:89:58:C2:4A:A3:8C:F5:39:04:01:87:53:63:B2:33:47:31:38:14:FB:7C:92:9C:5A:62:8D:4A:EE:86:36:B3:79:9F:67:A1:80:32:CD:6A:ED:20:C3:DF:18:9B:E0:A6:48:82:F8:27:45:C7:F1:2D:23:98:16:52:5A:88:5F:F5:7A:8C:39:A6:97:F2:A8:89:FC:61:D5:BE:A5:FA:5E:B7:82:0D:91:F2:7E:47:03:23:5F:5C:90:A9:C4:66:7E:7B:AD:44:89:87:6F:A4:84:AF:38:3C:87:46:C9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250923124206Z", "not_valid_before": "20240923124249Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:42:56 -0400 (0:00:00.428) 0:00:14.103 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A7:9F:CF:3B:47:03:21:83:76:B4:0B:CE:7D:F3:3E:75:F8:34:22:CB" }, "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": "45:13:83:41:2F:18:93:41:F3:5E:B2:55:3A:3E:C2:C2:96:5E:99:1D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "22:A4:70:EE:41:AE:63:61:09:B8:AC:FE:D1:84:51:F9:F5:11:C4:7C:80:2B:79:85:9D:EB:2F:0A:1C:7A:C0:A2:99:45:03:AA:A8:1C:58:CE:5B:4B:AB:98:45:6F:E0:F4:2A:06:28:2A:2A:40:2D:01:FD:6F:8D:0F:93:78:53:9C:16:06:87:5D:C8:31:F2:50:E8:D7:B6:B5:4F:CD:BB:77:2C:73:40:EC:D8:7F:93:53:83:A8:1E:2D:39:7E:E2:D8:13:29:34:F6:3C:30:EB:C0:33:FE:5F:8B:4D:2E:A1:C4:8B:97:38:00:39:A8:73:0D:60:3E:ED:1D:02:12:7B:4C:FC:00:2F:85:8B:33:A1:91:A3:7D:27:2F:9D:AB:41:BA:DB:64:40:36:89:58:C2:4A:A3:8C:F5:39:04:01:87:53:63:B2:33:47:31:38:14:FB:7C:92:9C:5A:62:8D:4A:EE:86:36:B3:79:9F:67:A1:80:32:CD:6A:ED:20:C3:DF:18:9B:E0:A6:48:82:F8:27:45:C7:F1:2D:23:98:16:52:5A:88:5F:F5:7A:8C:39:A6:97:F2:A8:89:FC:61:D5:BE:A5:FA:5E:B7:82:0D:91:F2:7E:47:03:23:5F:5C:90:A9:C4:66:7E:7B:AD:44:89:87:6F:A4:84:AF:38:3C:87:46:C9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250923124206Z", "not_valid_before": "20240923124249Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:42:56 -0400 (0:00:00.027) 0:00:14.131 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:42:56 -0400 (0:00:00.054) 0:00:14.186 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:42:56 -0400 (0:00:00.027) 0:00:14.214 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:42:56 -0400 (0:00:00.065) 0:00:14.279 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:42:56 -0400 (0:00:00.091) 0:00:14.371 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:42:57 -0400 (0:00:00.101) 0:00:14.472 ****** ok: [managed_node2] => { "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.040712", "end": "2024-09-23 08:42:57.457459", "rc": 0, "start": "2024-09-23 08:42:57.416747" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:42:57 -0400 (0:00:00.462) 0:00:14.935 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:42:57 -0400 (0:00:00.092) 0:00:15.027 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:42:57 -0400 (0:00:00.020) 0:00:15.048 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:42:57 -0400 (0:00:00.024) 0:00:15.073 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:42:57 -0400 (0:00:00.018) 0:00:15.091 ****** 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-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:42:57 -0400 (0:00:00.016) 0:00:15.108 ****** ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:42:58 -0400 (0:00:00.686) 0:00:15.794 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727095370.2033381, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "625bdab31a3999c7afb9eaf5a447d1935daa1438", "ctime": 1727095370.2003381, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538311, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727095370.2003381, "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": "2335905347", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:42:58 -0400 (0:00:00.363) 0:00:16.158 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:42:58 -0400 (0:00:00.025) 0:00:16.183 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:42:58 -0400 (0:00:00.046) 0:00:16.230 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:42:58 -0400 (0:00:00.038) 0:00:16.268 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727095370.1563368, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5efa350c8fe85f81a3d85cef6b4a275f420450c7", "ctime": 1727095370.2003381, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4816194, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727095370.2003381, "nlink": 1, "path": "/etc/pki/tls/private/another-cert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1195867465", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:42:59 -0400 (0:00:00.353) 0:00:16.621 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:42:59 -0400 (0:00:00.021) 0:00:16.642 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:42:59 -0400 (0:00:00.072) 0:00:16.715 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A7:9F:CF:3B:47:03:21:83:76:B4:0B:CE:7D:F3:3E:75:F8:34:22:CB" }, "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": "EF:BD:6D:30:82:5B:BD:60:5E:40:D8:14:52:7F:52:D2:D2:78:A9:1D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "94:5C:EF:3F:7B:83:00:8C:8B:FD:24:57:E0:1C:73:05:89:D6:D3:3A:3C:3E:51:C1:C2:11:BF:E0:4D:E1:8F:BC:FA:0D:A0:ED:8B:CC:E5:15:F2:24:BE:97:3B:F0:A5:FF:A5:C4:88:C1:8B:DD:1C:E2:99:14:C2:A7:28:77:7C:8D:00:1F:A2:43:77:3F:C6:33:F7:CD:39:71:42:2F:22:42:78:B8:A7:BB:74:8F:E8:6D:76:1A:34:BE:21:63:EC:09:0F:CD:23:FB:7F:D6:CB:42:09:98:B6:19:B8:AF:C5:DA:CF:84:75:45:50:10:7C:E7:97:0B:E5:88:C3:8E:53:18:55:FE:21:D7:5B:9A:90:80:F9:C2:DD:82:3F:68:91:61:14:56:A4:5A:99:83:2F:AB:81:AC:B2:A4:43:37:5F:2E:AA:AC:4D:7B:AD:5A:DA:B0:A7:CD:52:15:F1:84:92:99:2C:90:2B:38:EF:9F:C5:84:BE:C5:D1:7C:7D:66:9F:8F:06:09:02:D9:80:FA:2A:F2:C3:37:C0:73:CD:4D:87:DE:CF:18:C9:2C:E8:B5:D8:FD:29:51:E3:AC:43:98:16:70:7A:0F:9C:AC:2E:0E:61:89:0C:6D:9B:61:0F:D2:1E:DB:B1:9C:CE:45:E6:19:CB:71:0A:B7:4A:63:22:7F:8F:88" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250923124206Z", "not_valid_before": "20240923124250Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:42:59 -0400 (0:00:00.400) 0:00:17.116 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A7:9F:CF:3B:47:03:21:83:76:B4:0B:CE:7D:F3:3E:75:F8:34:22:CB" }, "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": "EF:BD:6D:30:82:5B:BD:60:5E:40:D8:14:52:7F:52:D2:D2:78:A9:1D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "94:5C:EF:3F:7B:83:00:8C:8B:FD:24:57:E0:1C:73:05:89:D6:D3:3A:3C:3E:51:C1:C2:11:BF:E0:4D:E1:8F:BC:FA:0D:A0:ED:8B:CC:E5:15:F2:24:BE:97:3B:F0:A5:FF:A5:C4:88:C1:8B:DD:1C:E2:99:14:C2:A7:28:77:7C:8D:00:1F:A2:43:77:3F:C6:33:F7:CD:39:71:42:2F:22:42:78:B8:A7:BB:74:8F:E8:6D:76:1A:34:BE:21:63:EC:09:0F:CD:23:FB:7F:D6:CB:42:09:98:B6:19:B8:AF:C5:DA:CF:84:75:45:50:10:7C:E7:97:0B:E5:88:C3:8E:53:18:55:FE:21:D7:5B:9A:90:80:F9:C2:DD:82:3F:68:91:61:14:56:A4:5A:99:83:2F:AB:81:AC:B2:A4:43:37:5F:2E:AA:AC:4D:7B:AD:5A:DA:B0:A7:CD:52:15:F1:84:92:99:2C:90:2B:38:EF:9F:C5:84:BE:C5:D1:7C:7D:66:9F:8F:06:09:02:D9:80:FA:2A:F2:C3:37:C0:73:CD:4D:87:DE:CF:18:C9:2C:E8:B5:D8:FD:29:51:E3:AC:43:98:16:70:7A:0F:9C:AC:2E:0E:61:89:0C:6D:9B:61:0F:D2:1E:DB:B1:9C:CE:45:E6:19:CB:71:0A:B7:4A:63:22:7F:8F:88" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250923124206Z", "not_valid_before": "20240923124250Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:42:59 -0400 (0:00:00.020) 0:00:17.137 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:42:59 -0400 (0:00:00.035) 0:00:17.172 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:42:59 -0400 (0:00:00.018) 0:00:17.191 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:42:59 -0400 (0:00:00.034) 0:00:17.225 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:42:59 -0400 (0:00:00.037) 0:00:17.262 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:42:59 -0400 (0:00:00.036) 0:00:17.299 ****** ok: [managed_node2] => { "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.040889", "end": "2024-09-23 08:43:00.241827", "rc": 0, "start": "2024-09-23 08:43:00.200938" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:43:00 -0400 (0:00:00.402) 0:00:17.701 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed_node2 : ok=69 changed=1 unreachable=0 failed=0 skipped=14 rescued=0 ignored=0 Monday 23 September 2024 08:43:00 -0400 (0:00:00.051) 0:00:17.753 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.52s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.15s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.89s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.86s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 Ensure python3 is installed --------------------------------------------- 0.77s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.76s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.75s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.69s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.68s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.64s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.51s /tmp/collections-75h/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.47s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve auto-renew flag ------------------------------------------------ 0.46s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve auto-renew flag ------------------------------------------------ 0.46s /tmp/collections-75h/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.45s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Parse certificate ------------------------------------------------------- 0.43s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.40s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.40s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve key file stats ------------------------------------------------- 0.39s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.36s /tmp/collections-75h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38