[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-J0K 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-J0K/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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 Monday 23 September 2024 08:29:12 -0400 (0:00:00.019) 0:00:00.019 ****** [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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 23 September 2024 08:29:13 -0400 (0:00:01.162) 0:00:01.181 ****** included: /tmp/collections-J0K/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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 23 September 2024 08:29:13 -0400 (0:00:00.025) 0:00:01.206 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 23 September 2024 08:29:13 -0400 (0:00:00.035) 0:00:01.242 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 23 September 2024 08:29:13 -0400 (0:00:00.431) 0:00:01.673 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 23 September 2024 08:29:13 -0400 (0:00:00.042) 0:00:01.715 ****** 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-J0K/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-J0K/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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 23 September 2024 08:29:13 -0400 (0:00:00.049) 0:00:01.765 ****** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 23 September 2024 08:29:14 -0400 (0:00:00.776) 0:00:02.541 ****** ok: [managed_node3] => (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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 23 September 2024 08:29:15 -0400 (0:00:00.706) 0:00:03.248 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 23 September 2024 08:29:15 -0400 (0:00:00.535) 0:00:03.783 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 23 September 2024 08:29:16 -0400 (0:00:00.367) 0:00:04.151 ****** 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": "Mon 2024-09-23 08:28:43 EDT", "ActiveEnterTimestampMonotonic": "185050909", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target basic.target sysinit.target systemd-journald.socket syslog.target dbus-broker.service dbus.socket system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-09-23 08:28:43 EDT", "AssertTimestampMonotonic": "185030876", "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": "786466000", "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:28:43 EDT", "ConditionTimestampMonotonic": "185030873", "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": "3702870016", "EffectiveMemoryMax": "3702870016", "EffectiveTasksMax": "22362", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainHandoffTimestamp": "Mon 2024-09-23 08:28:43 EDT", "ExecMainHandoffTimestampMonotonic": "185040723", "ExecMainPID": "7685", "ExecMainStartTimestamp": "Mon 2024-09-23 08:28:43 EDT", "ExecMainStartTimestampMonotonic": "185032333", "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:28:43 EDT] ; stop_time=[n/a] ; pid=7685 ; 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:28:43 EDT] ; stop_time=[n/a] ; pid=7685 ; 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:28:43 EDT", "InactiveExitTimestampMonotonic": "185034395", "InvocationID": "7223ef363d75422a9dc0919983194ac3", "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": "7685", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3315642368", "MemoryCurrent": "2691072", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "9080832", "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": "Mon 2024-09-23 08:28:43 EDT", "StateChangeTimestampMonotonic": "185050909", "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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 23 September 2024 08:29:17 -0400 (0:00:00.871) 0:00:05.022 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 23 September 2024 08:29:19 -0400 (0:00:02.560) 0:00:07.582 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 23 September 2024 08:29:19 -0400 (0:00:00.079) 0:00:07.661 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 23 September 2024 08:29:19 -0400 (0:00:00.041) 0:00:07.702 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 23 September 2024 08:29:19 -0400 (0:00:00.053) 0:00:07.756 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 Monday 23 September 2024 08:29:19 -0400 (0:00:00.083) 0:00:07.839 ****** ok: [managed_node3] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:50 Monday 23 September 2024 08:29:20 -0400 (0:00:00.940) 0:00:08.780 ****** included: /tmp/collections-J0K/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-J0K/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-J0K/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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:29:20 -0400 (0:00:00.095) 0:00:08.876 ****** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:29:20 -0400 (0:00:00.023) 0:00:08.899 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:29:20 -0400 (0:00:00.021) 0:00:08.920 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:29:21 -0400 (0:00:00.020) 0:00:08.940 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:29:21 -0400 (0:00:00.013) 0:00:08.954 ****** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:29:21 -0400 (0:00:00.689) 0:00:09.643 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1727094557.8030787, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2bacd7fad608a151a932ffa699bf50c3882ad9c2", "ctime": 1727094557.8010786, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538302, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094557.8010786, "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": "4074587446", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:29:22 -0400 (0:00:00.353) 0:00:09.996 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:29:22 -0400 (0:00:00.017) 0:00:10.013 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:29:22 -0400 (0:00:00.036) 0:00:10.050 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:29:22 -0400 (0:00:00.036) 0:00:10.087 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1727094557.7610784, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d0cebef976a0aa72d23c9e848fa42469561cb1b3", "ctime": 1727094557.8010786, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4811445, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094557.8010786, "nlink": 1, "path": "/etc/pki/tls/private/mycert_many_self_signed.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1700, "uid": 0, "version": "3984365448", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:29:22 -0400 (0:00:00.358) 0:00:10.445 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:29:22 -0400 (0:00:00.042) 0:00:10.488 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:29:22 -0400 (0:00:00.057) 0:00:10.546 ****** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "43:54:AB:83:06:EE:D4:7A:61:20:23:53:77:34:66:2B:9C:F6:CC:1F" }, "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": "10:1C:98:69:D2:14:FC:8F:05:FD:D9:86:24:24:1D:2B:AE:B1:6F:C2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "79:78:37:1C:13:49:8F:66:25:5B:18:67:8C:0F:F2:95:CF:64:2F:33:9A:7E:79:00:09:67:F9:A7:D5:08:FC:0F:2D:B5:C8:04:1A:01:05:6D:BC:0C:D1:B4:9B:26:F1:DB:B6:D4:7C:2A:81:0B:80:95:76:D2:4D:FC:56:AC:F3:3C:69:47:CB:3C:F3:E6:8D:D7:1F:30:D8:F8:7C:E2:41:BC:A8:49:65:E5:5C:05:8F:63:19:83:EA:A1:A0:53:35:69:59:4E:6D:D9:7B:3D:C7:3E:48:FC:E2:C1:B1:92:6F:34:26:48:5B:74:F9:1E:53:E3:F1:D6:1B:4B:35:56:F4:82:44:62:C6:CA:8C:E3:F5:4A:03:61:E2:33:69:A7:5C:70:F9:B6:B4:DC:71:EE:FF:E7:3F:A3:60:75:92:46:EC:86:57:B1:BB:83:13:7B:09:4A:DF:10:DA:81:3C:41:F4:B2:02:DA:2C:74:26:46:B9:A1:DC:22:F0:DB:33:0E:7E:63:E8:64:AB:7B:5F:E1:68:0F:FD:A7:AF:9D:7E:1A:E0:A8:6A:44:DE:A0:AF:FC:0B:5F:59:CF:49:4F:E0:47:84:EC:B0:E0:BF:DF:26:42:EF:8C:47:1E:A4:38:35:CF:04:9B:39:09:C7:8D:6A:93:F7:5F:73:3B:12:CE:DE:48:EE:70" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923122844Z", "not_valid_before": "20240923122917Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:29:23 -0400 (0:00:00.493) 0:00:11.039 ****** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "43:54:AB:83:06:EE:D4:7A:61:20:23:53:77:34:66:2B:9C:F6:CC:1F" }, "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": "10:1C:98:69:D2:14:FC:8F:05:FD:D9:86:24:24:1D:2B:AE:B1:6F:C2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "79:78:37:1C:13:49:8F:66:25:5B:18:67:8C:0F:F2:95:CF:64:2F:33:9A:7E:79:00:09:67:F9:A7:D5:08:FC:0F:2D:B5:C8:04:1A:01:05:6D:BC:0C:D1:B4:9B:26:F1:DB:B6:D4:7C:2A:81:0B:80:95:76:D2:4D:FC:56:AC:F3:3C:69:47:CB:3C:F3:E6:8D:D7:1F:30:D8:F8:7C:E2:41:BC:A8:49:65:E5:5C:05:8F:63:19:83:EA:A1:A0:53:35:69:59:4E:6D:D9:7B:3D:C7:3E:48:FC:E2:C1:B1:92:6F:34:26:48:5B:74:F9:1E:53:E3:F1:D6:1B:4B:35:56:F4:82:44:62:C6:CA:8C:E3:F5:4A:03:61:E2:33:69:A7:5C:70:F9:B6:B4:DC:71:EE:FF:E7:3F:A3:60:75:92:46:EC:86:57:B1:BB:83:13:7B:09:4A:DF:10:DA:81:3C:41:F4:B2:02:DA:2C:74:26:46:B9:A1:DC:22:F0:DB:33:0E:7E:63:E8:64:AB:7B:5F:E1:68:0F:FD:A7:AF:9D:7E:1A:E0:A8:6A:44:DE:A0:AF:FC:0B:5F:59:CF:49:4F:E0:47:84:EC:B0:E0:BF:DF:26:42:EF:8C:47:1E:A4:38:35:CF:04:9B:39:09:C7:8D:6A:93:F7:5F:73:3B:12:CE:DE:48:EE:70" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923122844Z", "not_valid_before": "20240923122917Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:29:23 -0400 (0:00:00.027) 0:00:11.067 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:29:23 -0400 (0:00:00.047) 0:00:11.114 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:29:23 -0400 (0:00:00.021) 0:00:11.135 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:29:23 -0400 (0:00:00.037) 0:00:11.173 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:29:23 -0400 (0:00:00.043) 0:00:11.217 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:29:23 -0400 (0:00:00.038) 0:00:11.256 ****** 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.038481", "end": "2024-09-23 08:29:23.743940", "rc": 0, "start": "2024-09-23 08:29:23.705459" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:29:23 -0400 (0:00:00.460) 0:00:11.716 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:29:23 -0400 (0:00:00.044) 0:00:11.761 ****** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:29:23 -0400 (0:00:00.022) 0:00:11.784 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:29:23 -0400 (0:00:00.025) 0:00:11.809 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:29:23 -0400 (0:00:00.017) 0:00:11.827 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:29:23 -0400 (0:00:00.016) 0:00:11.843 ****** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:29:24 -0400 (0:00:00.695) 0:00:12.539 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1727094558.5570827, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7f65c2ab6acfb4ce3be65f1279374c56e36c4685", "ctime": 1727094558.5550826, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538303, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094558.5550826, "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": "1941046335", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:29:24 -0400 (0:00:00.378) 0:00:12.918 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:29:25 -0400 (0:00:00.026) 0:00:12.945 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:29:25 -0400 (0:00:00.052) 0:00:12.997 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:29:25 -0400 (0:00:00.077) 0:00:13.074 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1727094558.5140824, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e8d933e8399c05efed8b8f4e48c4b5d0f45efec3", "ctime": 1727094558.5550826, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4816427, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094558.5550826, "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": "1633749612", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:29:25 -0400 (0:00:00.353) 0:00:13.428 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:29:25 -0400 (0:00:00.028) 0:00:13.457 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:29:25 -0400 (0:00:00.058) 0:00:13.516 ****** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "43:54:AB:83:06:EE:D4:7A:61:20:23:53:77:34:66:2B:9C:F6:CC:1F" }, "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": "F2:53:22:6B:69:BF:44:ED:8C:67:07:7F:FF:2F:EC:58:E2:B9:22:C6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C2:4E:10:79:28:9D:F0:23:C9:14:95:58:E2:99:89:ED:5D:B7:3D:DA:8B:5D:D5:86:1E:B7:DE:66:C3:74:8A:BF:F9:36:38:05:88:2A:5B:D7:F8:60:55:EB:FB:51:CC:25:0D:34:BD:EE:A2:6B:B9:F3:16:59:D2:C0:89:A7:14:AB:CF:EB:A1:C2:5E:64:95:BC:8F:FD:0D:9F:2A:0B:49:11:61:AC:63:02:A6:3C:B1:D6:D4:23:BE:A3:F2:F9:EF:34:95:A3:F2:90:7E:C1:AF:6D:0D:61:27:18:34:43:7C:64:C9:99:5F:0E:84:2B:FA:8A:93:29:1C:C2:4F:1E:80:18:B2:8A:DA:C3:2F:C5:EE:8B:83:BA:43:14:3A:84:D9:BC:64:91:D6:F4:2E:BB:A7:6A:4E:FF:2F:61:EF:D1:84:43:D3:F4:03:26:DE:A4:A0:85:7D:C6:6D:E9:4F:F3:43:8A:54:DB:07:06:E8:DB:09:88:55:D8:88:24:6B:26:3E:DE:B7:B5:E8:F1:4C:79:16:1E:01:98:ED:47:37:B9:15:17:07:7A:BA:82:7B:31:B5:F4:3E:DC:8A:87:EE:36:54:5F:4C:7D:B3:C5:1B:24:7E:CB:41:4B:DB:4D:BD:AF:94:CF:95:27:30:F3:30:0A:E5:63:6E:B6:11:66:F4:55:0B:68" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250923122844Z", "not_valid_before": "20240923122918Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:29:26 -0400 (0:00:00.419) 0:00:13.935 ****** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "43:54:AB:83:06:EE:D4:7A:61:20:23:53:77:34:66:2B:9C:F6:CC:1F" }, "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": "F2:53:22:6B:69:BF:44:ED:8C:67:07:7F:FF:2F:EC:58:E2:B9:22:C6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C2:4E:10:79:28:9D:F0:23:C9:14:95:58:E2:99:89:ED:5D:B7:3D:DA:8B:5D:D5:86:1E:B7:DE:66:C3:74:8A:BF:F9:36:38:05:88:2A:5B:D7:F8:60:55:EB:FB:51:CC:25:0D:34:BD:EE:A2:6B:B9:F3:16:59:D2:C0:89:A7:14:AB:CF:EB:A1:C2:5E:64:95:BC:8F:FD:0D:9F:2A:0B:49:11:61:AC:63:02:A6:3C:B1:D6:D4:23:BE:A3:F2:F9:EF:34:95:A3:F2:90:7E:C1:AF:6D:0D:61:27:18:34:43:7C:64:C9:99:5F:0E:84:2B:FA:8A:93:29:1C:C2:4F:1E:80:18:B2:8A:DA:C3:2F:C5:EE:8B:83:BA:43:14:3A:84:D9:BC:64:91:D6:F4:2E:BB:A7:6A:4E:FF:2F:61:EF:D1:84:43:D3:F4:03:26:DE:A4:A0:85:7D:C6:6D:E9:4F:F3:43:8A:54:DB:07:06:E8:DB:09:88:55:D8:88:24:6B:26:3E:DE:B7:B5:E8:F1:4C:79:16:1E:01:98:ED:47:37:B9:15:17:07:7A:BA:82:7B:31:B5:F4:3E:DC:8A:87:EE:36:54:5F:4C:7D:B3:C5:1B:24:7E:CB:41:4B:DB:4D:BD:AF:94:CF:95:27:30:F3:30:0A:E5:63:6E:B6:11:66:F4:55:0B:68" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250923122844Z", "not_valid_before": "20240923122918Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:29:26 -0400 (0:00:00.026) 0:00:13.962 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:29:26 -0400 (0:00:00.052) 0:00:14.014 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:29:26 -0400 (0:00:00.026) 0:00:14.040 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:29:26 -0400 (0:00:00.052) 0:00:14.093 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:29:26 -0400 (0:00:00.084) 0:00:14.177 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:29:26 -0400 (0:00:00.054) 0:00:14.232 ****** 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.038209", "end": "2024-09-23 08:29:26.636296", "rc": 0, "start": "2024-09-23 08:29:26.598087" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:29:26 -0400 (0:00:00.379) 0:00:14.611 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:29:26 -0400 (0:00:00.042) 0:00:14.653 ****** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:29:26 -0400 (0:00:00.018) 0:00:14.672 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:29:26 -0400 (0:00:00.017) 0:00:14.689 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:29:26 -0400 (0:00:00.017) 0:00:14.707 ****** 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-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:29:26 -0400 (0:00:00.013) 0:00:14.720 ****** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:29:27 -0400 (0:00:00.666) 0:00:15.386 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1727094559.437087, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "757787999e5e46f54152b9c7bcedb1b7e676b72a", "ctime": 1727094559.4350872, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538308, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094559.4350872, "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": "96039818", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:29:27 -0400 (0:00:00.350) 0:00:15.737 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:29:27 -0400 (0:00:00.042) 0:00:15.780 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:29:27 -0400 (0:00:00.077) 0:00:15.857 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:29:27 -0400 (0:00:00.044) 0:00:15.902 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1727094559.392087, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "803aad262d4c33e6a92969aaff04a446b7867087", "ctime": 1727094559.4350872, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4816429, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094559.4350872, "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": "1852680517", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:29:28 -0400 (0:00:00.335) 0:00:16.238 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:29:28 -0400 (0:00:00.017) 0:00:16.255 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:29:28 -0400 (0:00:00.039) 0:00:16.295 ****** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "43:54:AB:83:06:EE:D4:7A:61:20:23:53:77:34:66:2B:9C:F6:CC:1F" }, "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": "01:42:E8:0F:2C:7E:5F:81:4E:14:46:D7:F9:D4:73:29:B9:31:17:6C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:8A:93:FC:78:73:64:B9:52:47:31:6D:DF:38:5F:49:1E:72:B0:4D:82:3E:BC:ED:5A:83:78:FA:9F:C6:CE:F8:ED:F7:26:33:3F:76:8D:FA:B0:25:53:73:FE:4A:66:82:D1:12:97:CC:0B:54:2D:24:AB:AC:2C:9E:B7:0B:71:8D:A5:FE:2C:C9:89:4C:70:5F:D2:24:F9:FC:0E:BC:A1:7C:A1:1C:3E:E8:04:24:80:42:BA:52:80:CA:B5:E6:9C:DA:FF:7A:C6:6F:71:CB:59:BC:C5:8F:CE:DD:46:12:11:F9:D8:33:26:C7:3E:A8:7A:47:82:FA:7A:5C:6F:83:0A:36:43:67:B7:A8:6F:20:B0:CF:F2:76:F6:75:ED:0C:0F:33:F6:F1:FA:AD:40:B7:E4:F3:96:9A:80:0E:13:CB:57:3A:B7:54:20:2C:90:FA:D9:60:97:55:7A:67:15:07:14:35:89:B5:15:49:04:73:0E:98:DB:A8:48:50:B7:D4:3D:EB:F6:CC:6B:5D:87:FF:EF:54:EE:B2:73:D5:2E:94:39:B4:9D:90:36:0B:93:10:2B:F7:5B:1C:7E:92:53:AD:73:E2:4C:71:A2:11:D9:B0:E7:67:24:38:68:1E:EA:98:EA:46:DA:2E:1C:77:B1:7E:8F:17:89:67:0D:AE:77:CE:8F:1F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250923122844Z", "not_valid_before": "20240923122919Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:29:28 -0400 (0:00:00.381) 0:00:16.676 ****** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "43:54:AB:83:06:EE:D4:7A:61:20:23:53:77:34:66:2B:9C:F6:CC:1F" }, "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": "01:42:E8:0F:2C:7E:5F:81:4E:14:46:D7:F9:D4:73:29:B9:31:17:6C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:8A:93:FC:78:73:64:B9:52:47:31:6D:DF:38:5F:49:1E:72:B0:4D:82:3E:BC:ED:5A:83:78:FA:9F:C6:CE:F8:ED:F7:26:33:3F:76:8D:FA:B0:25:53:73:FE:4A:66:82:D1:12:97:CC:0B:54:2D:24:AB:AC:2C:9E:B7:0B:71:8D:A5:FE:2C:C9:89:4C:70:5F:D2:24:F9:FC:0E:BC:A1:7C:A1:1C:3E:E8:04:24:80:42:BA:52:80:CA:B5:E6:9C:DA:FF:7A:C6:6F:71:CB:59:BC:C5:8F:CE:DD:46:12:11:F9:D8:33:26:C7:3E:A8:7A:47:82:FA:7A:5C:6F:83:0A:36:43:67:B7:A8:6F:20:B0:CF:F2:76:F6:75:ED:0C:0F:33:F6:F1:FA:AD:40:B7:E4:F3:96:9A:80:0E:13:CB:57:3A:B7:54:20:2C:90:FA:D9:60:97:55:7A:67:15:07:14:35:89:B5:15:49:04:73:0E:98:DB:A8:48:50:B7:D4:3D:EB:F6:CC:6B:5D:87:FF:EF:54:EE:B2:73:D5:2E:94:39:B4:9D:90:36:0B:93:10:2B:F7:5B:1C:7E:92:53:AD:73:E2:4C:71:A2:11:D9:B0:E7:67:24:38:68:1E:EA:98:EA:46:DA:2E:1C:77:B1:7E:8F:17:89:67:0D:AE:77:CE:8F:1F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250923122844Z", "not_valid_before": "20240923122919Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:29:28 -0400 (0:00:00.030) 0:00:16.707 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:29:28 -0400 (0:00:00.049) 0:00:16.757 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:29:28 -0400 (0:00:00.023) 0:00:16.780 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:29:28 -0400 (0:00:00.042) 0:00:16.822 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:29:28 -0400 (0:00:00.058) 0:00:16.880 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:29:29 -0400 (0:00:00.061) 0:00:16.942 ****** 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.039744", "end": "2024-09-23 08:29:29.354422", "rc": 0, "start": "2024-09-23 08:29:29.314678" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:29:29 -0400 (0:00:00.414) 0:00:17.357 ****** 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 Monday 23 September 2024 08:29:29 -0400 (0:00:00.151) 0:00:17.508 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.56s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.16s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 Gathering Facts --------------------------------------------------------- 0.94s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.87s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.78s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.71s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.70s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.69s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.67s /tmp/collections-J0K/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.54s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.49s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.46s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.43s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.42s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.41s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.38s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.38s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve certificate file stats ----------------------------------------- 0.38s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.37s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve key file stats ------------------------------------------------- 0.36s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65