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-Leh executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 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-Leh/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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 Saturday 05 October 2024 08:30:00 -0400 (0:00:00.020) 0:00:00.020 ****** [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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 05 October 2024 08:30:01 -0400 (0:00:01.294) 0:00:01.314 ****** included: /tmp/collections-Leh/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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 05 October 2024 08:30:01 -0400 (0:00:00.035) 0:00:01.350 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 05 October 2024 08:30:01 -0400 (0:00:00.091) 0:00:01.442 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 05 October 2024 08:30:02 -0400 (0:00:00.687) 0:00:02.129 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 05 October 2024 08:30:02 -0400 (0:00:00.049) 0:00:02.179 ****** 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-Leh/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-Leh/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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 05 October 2024 08:30:02 -0400 (0:00:00.090) 0:00:02.269 ****** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 05 October 2024 08:30:03 -0400 (0:00:01.007) 0:00:03.277 ****** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 05 October 2024 08:30:04 -0400 (0:00:00.730) 0:00:04.008 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 05 October 2024 08:30:04 -0400 (0:00:00.527) 0:00:04.535 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 05 October 2024 08:30:05 -0400 (0:00:00.431) 0:00:04.967 ****** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-10-05 08:29:29 EDT", "ActiveEnterTimestampMonotonic": "337699913", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus.socket system.slice basic.target dbus-broker.service network.target systemd-journald.socket syslog.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-10-05 08:29:29 EDT", "AssertTimestampMonotonic": "337676684", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "907161000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-10-05 08:29:29 EDT", "ConditionTimestampMonotonic": "337676681", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4516", "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": "3702878208", "EffectiveMemoryMax": "3702878208", "EffectiveTasksMax": "22362", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainHandoffTimestamp": "Sat 2024-10-05 08:29:29 EDT", "ExecMainHandoffTimestampMonotonic": "337687689", "ExecMainPID": "7820", "ExecMainStartTimestamp": "Sat 2024-10-05 08:29:29 EDT", "ExecMainStartTimestampMonotonic": "337677828", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-10-05 08:29:29 EDT] ; stop_time=[n/a] ; pid=7820 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-10-05 08:29:29 EDT] ; stop_time=[n/a] ; pid=7820 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-10-05 08:29:29 EDT", "InactiveExitTimestampMonotonic": "337680267", "InvocationID": "845cc4e8c86840d39fb1595464563fab", "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": "7820", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3293650944", "MemoryCurrent": "2707456", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "9617408", "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 dbus.socket sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "SetLoginEnvironment": "no", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StartupMemoryHigh": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Sat 2024-10-05 08:29:29 EDT", "StateChangeTimestampMonotonic": "337699913", "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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 05 October 2024 08:30:05 -0400 (0:00:00.774) 0:00:05.742 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 05 October 2024 08:30:09 -0400 (0:00:03.518) 0:00:09.260 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 05 October 2024 08:30:09 -0400 (0:00:00.088) 0:00:09.349 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 05 October 2024 08:30:09 -0400 (0:00:00.034) 0:00:09.384 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 05 October 2024 08:30:09 -0400 (0:00:00.035) 0:00:09.419 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 Saturday 05 October 2024 08:30:09 -0400 (0:00:00.057) 0:00:09.477 ****** ok: [managed-node3] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:50 Saturday 05 October 2024 08:30:10 -0400 (0:00:00.875) 0:00:10.352 ****** included: /tmp/collections-Leh/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-Leh/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-Leh/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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 05 October 2024 08:30:10 -0400 (0:00:00.064) 0:00:10.416 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 05 October 2024 08:30:10 -0400 (0:00:00.014) 0:00:10.431 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 05 October 2024 08:30:10 -0400 (0:00:00.017) 0:00:10.448 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 05 October 2024 08:30:10 -0400 (0:00:00.015) 0:00:10.464 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 05 October 2024 08:30:10 -0400 (0:00:00.013) 0:00:10.477 ****** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 05 October 2024 08:30:11 -0400 (0:00:00.743) 0:00:11.221 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728131406.7415273, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "20a0f78785d50f706eb016bf1a1194de5f4a4010", "ctime": 1728131406.7395272, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12597308, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728131406.7395272, "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": "951006346", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 05 October 2024 08:30:11 -0400 (0:00:00.423) 0:00:11.644 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 05 October 2024 08:30:11 -0400 (0:00:00.018) 0:00:11.663 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 05 October 2024 08:30:11 -0400 (0:00:00.038) 0:00:11.702 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 05 October 2024 08:30:11 -0400 (0:00:00.036) 0:00:11.738 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728131406.6965268, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c067f91c74bc94b81b49b733de4b02955f43f27e", "ctime": 1728131406.7395272, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 9007788, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728131406.7395272, "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": "1170162124", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 05 October 2024 08:30:12 -0400 (0:00:00.390) 0:00:12.129 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 05 October 2024 08:30:12 -0400 (0:00:00.030) 0:00:12.159 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 05 October 2024 08:30:12 -0400 (0:00:00.039) 0:00:12.199 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "AC:36:36:DC:5A:F7:81:BE:C4:07:97:FF:9B:DA:AB:4D:BA:AB:C8:08" }, "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": "DD:2A:B6:26:AC:16:6A:25:EB:61:F8:FF:9C:1A:46:87:D2:CD:80:1B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4D:28:2E:2C:46:B4:0F:CD:4E:18:FD:76:E8:05:7C:EB:81:DC:F0:53:8C:47:0B:AA:5E:91:6D:D8:86:24:54:45:C5:C7:B6:F4:A4:C5:40:9B:07:EE:19:28:89:12:CC:97:6C:57:9C:EC:ED:3B:1D:26:05:B8:E2:01:1E:BD:D5:1A:96:1E:30:8C:1C:8E:4C:49:04:AD:75:AC:4F:DD:96:90:83:BF:E9:A4:B6:C4:4A:FB:8E:8A:D2:64:B8:9A:B2:05:8D:B5:23:AD:DF:13:A3:D9:2B:5D:1D:66:23:2D:F5:69:27:14:7B:45:D7:97:C9:AA:A2:67:58:32:FA:F3:21:1E:CE:EE:94:F3:01:6B:8F:F6:55:71:28:F5:B3:FE:B6:D1:C7:20:BC:C9:7B:D3:7E:FA:1E:55:9C:F3:11:58:D0:A1:DB:58:50:87:03:68:6D:1F:59:F6:4C:ED:8A:E0:96:35:06:AF:F2:64:D5:A2:37:D3:BF:F0:98:5B:24:D7:96:BB:FC:CC:BF:62:20:21:D3:04:35:07:19:F1:53:EF:6F:FB:9C:CA:E1:9F:23:AE:D3:26:63:BE:6F:CC:B3:50:E9:6C:53:62:3D:F3:84:AA:96:37:AB:BB:5E:D8:E8:17:A2:8F:FE:6E:0A:64:AE:C8:56:8F:2D:D9:E4:3D:DD:92:8A:30" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251005122929Z", "not_valid_before": "20241005123006Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 05 October 2024 08:30:12 -0400 (0:00:00.533) 0:00:12.733 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "AC:36:36:DC:5A:F7:81:BE:C4:07:97:FF:9B:DA:AB:4D:BA:AB:C8:08" }, "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": "DD:2A:B6:26:AC:16:6A:25:EB:61:F8:FF:9C:1A:46:87:D2:CD:80:1B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4D:28:2E:2C:46:B4:0F:CD:4E:18:FD:76:E8:05:7C:EB:81:DC:F0:53:8C:47:0B:AA:5E:91:6D:D8:86:24:54:45:C5:C7:B6:F4:A4:C5:40:9B:07:EE:19:28:89:12:CC:97:6C:57:9C:EC:ED:3B:1D:26:05:B8:E2:01:1E:BD:D5:1A:96:1E:30:8C:1C:8E:4C:49:04:AD:75:AC:4F:DD:96:90:83:BF:E9:A4:B6:C4:4A:FB:8E:8A:D2:64:B8:9A:B2:05:8D:B5:23:AD:DF:13:A3:D9:2B:5D:1D:66:23:2D:F5:69:27:14:7B:45:D7:97:C9:AA:A2:67:58:32:FA:F3:21:1E:CE:EE:94:F3:01:6B:8F:F6:55:71:28:F5:B3:FE:B6:D1:C7:20:BC:C9:7B:D3:7E:FA:1E:55:9C:F3:11:58:D0:A1:DB:58:50:87:03:68:6D:1F:59:F6:4C:ED:8A:E0:96:35:06:AF:F2:64:D5:A2:37:D3:BF:F0:98:5B:24:D7:96:BB:FC:CC:BF:62:20:21:D3:04:35:07:19:F1:53:EF:6F:FB:9C:CA:E1:9F:23:AE:D3:26:63:BE:6F:CC:B3:50:E9:6C:53:62:3D:F3:84:AA:96:37:AB:BB:5E:D8:E8:17:A2:8F:FE:6E:0A:64:AE:C8:56:8F:2D:D9:E4:3D:DD:92:8A:30" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251005122929Z", "not_valid_before": "20241005123006Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 05 October 2024 08:30:12 -0400 (0:00:00.052) 0:00:12.786 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.058) 0:00:12.844 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.028) 0:00:12.873 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.043) 0:00:12.916 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.046) 0:00:12.963 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.040) 0:00:13.003 ****** 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.041625", "end": "2024-10-05 08:30:13.600085", "rc": 0, "start": "2024-10-05 08:30:13.558460" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.499) 0:00:13.502 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.061) 0:00:13.564 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.019) 0:00:13.583 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.036) 0:00:13.620 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.037) 0:00:13.658 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 05 October 2024 08:30:13 -0400 (0:00:00.034) 0:00:13.692 ****** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 05 October 2024 08:30:14 -0400 (0:00:00.764) 0:00:14.456 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728131407.517534, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "286e76bb0cbc7b1f8eb03a6293a3fc9de1805054", "ctime": 1728131407.5155342, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12597309, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728131407.5155342, "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": "2005821403", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 05 October 2024 08:30:14 -0400 (0:00:00.382) 0:00:14.839 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 05 October 2024 08:30:15 -0400 (0:00:00.021) 0:00:14.860 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 05 October 2024 08:30:15 -0400 (0:00:00.045) 0:00:14.905 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 05 October 2024 08:30:15 -0400 (0:00:00.042) 0:00:14.948 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728131407.4725337, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4921be5c8845d05732ce8ce71bdcd7d5018c22dc", "ctime": 1728131407.5155342, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 9007789, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728131407.5155342, "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": "1256496566", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 05 October 2024 08:30:15 -0400 (0:00:00.383) 0:00:15.331 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 05 October 2024 08:30:15 -0400 (0:00:00.023) 0:00:15.354 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 05 October 2024 08:30:15 -0400 (0:00:00.048) 0:00:15.403 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "AC:36:36:DC:5A:F7:81:BE:C4:07:97:FF:9B:DA:AB:4D:BA:AB:C8:08" }, "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": "42:3D:CB:04:2A:42:33:63:99:C0:FB:04:00:47:03:37:7F:10:2C:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A3:A6:49:92:EF:80:B2:AD:79:DD:26:87:A0:EB:A1:2F:EC:89:87:C9:ED:4A:19:70:06:B6:FE:5E:61:06:59:A5:83:AC:41:F4:5B:EC:2F:2D:5B:23:55:9B:16:4A:40:4F:6C:16:34:DF:01:E9:7C:1B:19:38:1F:6E:55:D5:31:85:9E:53:EC:0E:ED:24:B9:B3:01:68:B8:9D:5C:A2:F8:6E:81:AB:95:88:F5:A6:15:29:7D:5C:D6:0A:8A:FA:AC:75:B7:D5:FB:A3:0C:FB:24:37:1F:8A:BF:CC:88:62:7B:03:9D:BF:E1:24:09:3C:56:9F:E5:3F:9A:DA:E3:9A:18:A0:95:87:E7:00:32:65:9B:C8:7A:35:7A:0D:E7:C1:05:C3:30:DD:FE:AA:6C:4E:EF:93:ED:98:08:91:25:21:E3:F4:06:37:AF:59:CC:91:97:3E:9E:1A:51:B0:5C:E1:39:B4:0D:2C:D0:C9:DA:0C:96:60:3A:DD:5C:FF:3B:5D:29:A9:65:7A:AD:56:1E:CB:D1:C1:F7:3F:45:61:91:BE:D4:F8:59:8E:F2:8F:7B:40:F5:20:D1:A0:0C:05:41:F6:54:32:AF:C6:C3:8B:BE:75:D8:70:7B:0B:AE:B2:9F:C5:DA:D4:17:A6:96:28:A4:16:08:A0:78:01:26:70:46:E2:6D:8B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20251005122929Z", "not_valid_before": "20241005123007Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.446) 0:00:15.849 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "AC:36:36:DC:5A:F7:81:BE:C4:07:97:FF:9B:DA:AB:4D:BA:AB:C8:08" }, "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": "42:3D:CB:04:2A:42:33:63:99:C0:FB:04:00:47:03:37:7F:10:2C:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A3:A6:49:92:EF:80:B2:AD:79:DD:26:87:A0:EB:A1:2F:EC:89:87:C9:ED:4A:19:70:06:B6:FE:5E:61:06:59:A5:83:AC:41:F4:5B:EC:2F:2D:5B:23:55:9B:16:4A:40:4F:6C:16:34:DF:01:E9:7C:1B:19:38:1F:6E:55:D5:31:85:9E:53:EC:0E:ED:24:B9:B3:01:68:B8:9D:5C:A2:F8:6E:81:AB:95:88:F5:A6:15:29:7D:5C:D6:0A:8A:FA:AC:75:B7:D5:FB:A3:0C:FB:24:37:1F:8A:BF:CC:88:62:7B:03:9D:BF:E1:24:09:3C:56:9F:E5:3F:9A:DA:E3:9A:18:A0:95:87:E7:00:32:65:9B:C8:7A:35:7A:0D:E7:C1:05:C3:30:DD:FE:AA:6C:4E:EF:93:ED:98:08:91:25:21:E3:F4:06:37:AF:59:CC:91:97:3E:9E:1A:51:B0:5C:E1:39:B4:0D:2C:D0:C9:DA:0C:96:60:3A:DD:5C:FF:3B:5D:29:A9:65:7A:AD:56:1E:CB:D1:C1:F7:3F:45:61:91:BE:D4:F8:59:8E:F2:8F:7B:40:F5:20:D1:A0:0C:05:41:F6:54:32:AF:C6:C3:8B:BE:75:D8:70:7B:0B:AE:B2:9F:C5:DA:D4:17:A6:96:28:A4:16:08:A0:78:01:26:70:46:E2:6D:8B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20251005122929Z", "not_valid_before": "20241005123007Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.034) 0:00:15.884 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.070) 0:00:15.954 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.048) 0:00:16.002 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.052) 0:00:16.055 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.050) 0:00:16.106 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.048) 0:00:16.154 ****** 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.041459", "end": "2024-10-05 08:30:16.699463", "rc": 0, "start": "2024-10-05 08:30:16.658004" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.447) 0:00:16.602 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.047) 0:00:16.649 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.023) 0:00:16.673 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.026) 0:00:16.699 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.028) 0:00:16.728 ****** 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-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 05 October 2024 08:30:16 -0400 (0:00:00.021) 0:00:16.749 ****** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 05 October 2024 08:30:17 -0400 (0:00:00.812) 0:00:17.561 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728131408.2115402, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "de408a43c9b360e13f317216f3d61449e9a3e0b3", "ctime": 1728131408.2095401, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12597306, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728131408.2095401, "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": "3000181004", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 05 October 2024 08:30:18 -0400 (0:00:00.480) 0:00:18.042 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 05 October 2024 08:30:18 -0400 (0:00:00.030) 0:00:18.072 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 05 October 2024 08:30:18 -0400 (0:00:00.083) 0:00:18.156 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 05 October 2024 08:30:18 -0400 (0:00:00.043) 0:00:18.199 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728131408.1655397, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "de0afe6d81bb3f1e451465f613f3fe7f20a6337c", "ctime": 1728131408.2085402, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 9007790, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728131408.2085402, "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": "2771216467", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 05 October 2024 08:30:18 -0400 (0:00:00.382) 0:00:18.581 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 05 October 2024 08:30:18 -0400 (0:00:00.018) 0:00:18.600 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 05 October 2024 08:30:18 -0400 (0:00:00.041) 0:00:18.641 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "AC:36:36:DC:5A:F7:81:BE:C4:07:97:FF:9B:DA:AB:4D:BA:AB:C8:08" }, "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": "29:1E:09:3E:EA:76:A6:CB:E7:20:A2:30:7D:0B:15:C9:A7:1B:8A:99" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5A:C7:79:7B:7B:B5:B0:2B:FD:AF:D1:EE:55:3E:AA:A0:88:5A:D7:B9:31:DB:F9:49:06:E9:F8:38:82:59:BE:39:78:D9:75:04:44:91:17:F3:89:3D:A9:26:90:6C:8E:84:53:FE:DF:55:4B:88:03:25:0F:80:FD:93:30:DB:FD:8F:FF:05:B7:61:30:31:BD:46:06:6E:06:51:08:FB:3E:7C:55:39:19:7A:C8:2C:AE:94:BC:7C:B8:54:66:93:CA:C6:D8:B6:D2:FC:7E:5A:8D:0C:D5:5B:F3:88:45:A4:CF:C0:3B:05:D9:83:FB:3B:07:5F:7C:A9:D9:12:14:C7:AA:5A:BC:BD:09:11:81:04:29:E6:91:9F:C2:22:40:CD:BC:EF:05:AC:AF:63:66:FA:FB:1F:47:C4:90:6C:E2:63:D4:C2:0F:48:C2:C8:78:AA:00:A2:8F:00:35:70:5A:16:14:39:10:B8:3B:20:EE:5D:E6:D2:FA:38:07:B6:DE:89:93:2F:EE:63:6F:9E:C6:FD:64:C3:41:0D:AE:4D:73:D5:5A:FD:E7:50:5A:4B:27:95:C8:C3:B1:00:93:F9:1B:42:B8:2C:A9:17:AF:28:01:31:44:EC:7D:70:6E:F7:40:D3:94:65:78:78:8F:43:0C:2F:5B:2D:41:FC:3F:35:C8:82:13:45" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20251005122929Z", "not_valid_before": "20241005123008Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 05 October 2024 08:30:19 -0400 (0:00:00.408) 0:00:19.050 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "AC:36:36:DC:5A:F7:81:BE:C4:07:97:FF:9B:DA:AB:4D:BA:AB:C8:08" }, "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": "29:1E:09:3E:EA:76:A6:CB:E7:20:A2:30:7D:0B:15:C9:A7:1B:8A:99" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5A:C7:79:7B:7B:B5:B0:2B:FD:AF:D1:EE:55:3E:AA:A0:88:5A:D7:B9:31:DB:F9:49:06:E9:F8:38:82:59:BE:39:78:D9:75:04:44:91:17:F3:89:3D:A9:26:90:6C:8E:84:53:FE:DF:55:4B:88:03:25:0F:80:FD:93:30:DB:FD:8F:FF:05:B7:61:30:31:BD:46:06:6E:06:51:08:FB:3E:7C:55:39:19:7A:C8:2C:AE:94:BC:7C:B8:54:66:93:CA:C6:D8:B6:D2:FC:7E:5A:8D:0C:D5:5B:F3:88:45:A4:CF:C0:3B:05:D9:83:FB:3B:07:5F:7C:A9:D9:12:14:C7:AA:5A:BC:BD:09:11:81:04:29:E6:91:9F:C2:22:40:CD:BC:EF:05:AC:AF:63:66:FA:FB:1F:47:C4:90:6C:E2:63:D4:C2:0F:48:C2:C8:78:AA:00:A2:8F:00:35:70:5A:16:14:39:10:B8:3B:20:EE:5D:E6:D2:FA:38:07:B6:DE:89:93:2F:EE:63:6F:9E:C6:FD:64:C3:41:0D:AE:4D:73:D5:5A:FD:E7:50:5A:4B:27:95:C8:C3:B1:00:93:F9:1B:42:B8:2C:A9:17:AF:28:01:31:44:EC:7D:70:6E:F7:40:D3:94:65:78:78:8F:43:0C:2F:5B:2D:41:FC:3F:35:C8:82:13:45" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20251005122929Z", "not_valid_before": "20241005123008Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 05 October 2024 08:30:19 -0400 (0:00:00.030) 0:00:19.080 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 05 October 2024 08:30:19 -0400 (0:00:00.064) 0:00:19.145 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 05 October 2024 08:30:19 -0400 (0:00:00.040) 0:00:19.185 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 05 October 2024 08:30:19 -0400 (0:00:00.065) 0:00:19.251 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 05 October 2024 08:30:19 -0400 (0:00:00.067) 0:00:19.319 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 05 October 2024 08:30:19 -0400 (0:00:00.100) 0:00:19.420 ****** 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.040499", "end": "2024-10-05 08:30:19.949513", "rc": 0, "start": "2024-10-05 08:30:19.909014" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 05 October 2024 08:30:20 -0400 (0:00:00.448) 0:00:19.868 ****** 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 Saturday 05 October 2024 08:30:20 -0400 (0:00:00.081) 0:00:19.950 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 3.52s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.29s /tmp/collections-Leh/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 --- 1.01s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.88s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 Ensure python3 is installed --------------------------------------------- 0.81s /tmp/collections-Leh/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.77s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure python3 is installed --------------------------------------------- 0.76s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.74s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.73s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.69s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.53s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.53s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Retrieve auto-renew flag ------------------------------------------------ 0.50s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve certificate file stats ----------------------------------------- 0.48s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve auto-renew flag ------------------------------------------------ 0.45s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve auto-renew flag ------------------------------------------------ 0.45s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.45s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.43s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.42s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Parse certificate ------------------------------------------------------- 0.41s /tmp/collections-Leh/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86