[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.2] 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/tmp.E9uoWehZt4 executable location = /usr/local/bin/ansible-playbook python version = 3.12.4 (main, Jun 7 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat 13.3.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/tmp.E9uoWehZt4/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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 Saturday 27 July 2024 08:39:09 -0400 (0:00:00.022) 0:00:00.022 ********* [WARNING]: Platform linux on host managed_node1 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_node1] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 July 2024 08:39:10 -0400 (0:00:01.310) 0:00:01.333 ********* included: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node1 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 July 2024 08:39:10 -0400 (0:00:00.022) 0:00:01.355 ********* skipping: [managed_node1] => { "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 27 July 2024 08:39:10 -0400 (0:00:00.023) 0:00:01.379 ********* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 27 July 2024 08:39:11 -0400 (0:00:00.514) 0:00:01.894 ********* ok: [managed_node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 27 July 2024 08:39:11 -0400 (0:00:00.026) 0:00:01.920 ********* skipping: [managed_node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [managed_node1] => (item=Fedora.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed_node1] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 July 2024 08:39:11 -0400 (0:00:00.044) 0:00:01.965 ********* ok: [managed_node1] => { "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 27 July 2024 08:39:13 -0400 (0:00:02.157) 0:00:04.122 ********* ok: [managed_node1] => (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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 27 July 2024 08:39:15 -0400 (0:00:01.975) 0:00:06.098 ********* ok: [managed_node1] => (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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 27 July 2024 08:39:16 -0400 (0:00:00.563) 0:00:06.662 ********* ok: [managed_node1] => (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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 27 July 2024 08:39:16 -0400 (0:00:00.450) 0:00:07.112 ********* ok: [managed_node1] => (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-07-27 08:29:36 EDT", "ActiveEnterTimestampMonotonic": "285555148", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket systemd-journald.socket network.target basic.target dbus-broker.service system.slice sysinit.target syslog.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-27 08:29:36 EDT", "AssertTimestampMonotonic": "285518681", "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": "65633007000", "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-07-27 08:29:36 EDT", "ConditionTimestampMonotonic": "285518677", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "5090", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "2410", "ExecMainStartTimestamp": "Sat 2024-07-27 08:29:36 EDT", "ExecMainStartTimestampMonotonic": "285527546", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; 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": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "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-07-27 08:29:36 EDT", "InactiveExitTimestampMonotonic": "285528125", "InvocationID": "6ec68ad02034405aae9bead40b066e84", "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": "14754", "LimitNPROCSoft": "14754", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14754", "LimitSIGPENDINGSoft": "14754", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "2410", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4927488", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "MemoryZSwapMax": "infinity", "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": "dbus.socket system.slice 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", "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": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestamp": "Sat 2024-07-27 08:38:26 EDT", "StateChangeTimestampMonotonic": "815658678", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "4426", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 27 July 2024 08:39:17 -0400 (0:00:00.875) 0:00:07.987 ********* changed: [managed_node1] => (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_node1] => (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_node1] => (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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 27 July 2024 08:39:20 -0400 (0:00:02.896) 0:00:10.884 ********* skipping: [managed_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 27 July 2024 08:39:20 -0400 (0:00:00.061) 0:00:10.945 ********* skipping: [managed_node1] => { "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 27 July 2024 08:39:20 -0400 (0:00:00.020) 0:00:10.965 ********* skipping: [managed_node1] => { "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 27 July 2024 08:39:20 -0400 (0:00:00.021) 0:00:10.987 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:18 Saturday 27 July 2024 08:39:20 -0400 (0:00:00.044) 0:00:11.032 ********* ok: [managed_node1] TASK [Verify each certificate] ************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:50 Saturday 27 July 2024 08:39:21 -0400 (0:00:00.984) 0:00:12.017 ********* included: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 => (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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 => (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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 => (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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 08:39:21 -0400 (0:00:00.080) 0:00:12.097 ********* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 08:39:21 -0400 (0:00:00.016) 0:00:12.114 ********* skipping: [managed_node1] => { "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 08:39:21 -0400 (0:00:00.019) 0:00:12.133 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 08:39:21 -0400 (0:00:00.020) 0:00:12.154 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 08:39:21 -0400 (0:00:00.014) 0:00:12.168 ********* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 08:39:23 -0400 (0:00:01.984) 0:00:14.153 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083958.4872925, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4e3ed5583fbe26688f7ea644ccd2703a37886c11", "ctime": 1722083958.4832926, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 205809, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083958.4832926, "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": "3501971449", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 08:39:24 -0400 (0:00:00.422) 0:00:14.575 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 08:39:24 -0400 (0:00:00.020) 0:00:14.595 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 08:39:24 -0400 (0:00:00.029) 0:00:14.625 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 08:39:24 -0400 (0:00:00.026) 0:00:14.651 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083958.4292932, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fb80df9665a89cbb5f4497033631f2cea8ef220a", "ctime": 1722083958.4832926, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 205808, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083958.4832926, "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": "1412090225", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 08:39:24 -0400 (0:00:00.427) 0:00:15.078 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 08:39:24 -0400 (0:00:00.022) 0:00:15.101 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 08:39:24 -0400 (0:00:00.029) 0:00:15.130 ********* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "0E:14:09:87:E1:82:0E:1D:EB:3B:94:F1:3A:BF:D4:E9:CD:24:18:71" }, "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": "5A:D3:02:EE:C7:1F:63:DD:87:EB:36:9E:44:8D:68:DE:5C:29:68:29" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "60:F7:CF:39:57:42:22:A5:1A:C8:6D:E9:69:A1:69:64:BF:BD:77:D9:57:7D:DF:B1:AB:2C:CF:08:0A:10:49:3B:5B:9C:77:8A:F1:13:91:1C:7C:24:6C:23:1A:57:A4:75:20:05:FE:18:BF:81:E7:33:F1:A2:D3:7A:01:BC:50:A2:DB:D6:54:39:64:E4:AF:61:EB:28:E9:1E:1D:1F:C5:02:0D:B6:28:91:99:E4:B8:B0:51:DE:CD:0C:63:43:76:E8:19:C4:50:52:86:DD:33:1E:5F:6C:B1:00:6F:48:59:33:07:72:E6:1D:EC:CB:BC:AB:B6:FA:7E:9B:59:91:59:40:4E:38:3D:7E:8A:FD:FA:04:5B:A6:83:69:10:8F:83:1B:3C:74:61:E9:1A:17:C0:84:3C:85:81:83:70:23:AE:F2:E3:38:DD:AE:40:CC:01:C9:B7:64:B1:04:D6:AE:53:C3:56:49:34:56:27:74:A5:1B:A1:47:62:CE:B4:FF:35:3A:14:DE:CD:E7:79:D9:31:98:97:19:B9:C4:45:EF:CE:30:7D:39:5E:DD:07:8A:F5:91:7B:45:66:9C:7C:49:0F:B1:9D:06:D3:25:53:44:17:A9:54:01:4F:06:8E:EF:AA:10:34:73:07:1F:08:87:D6:BC:DB:E4:87:45:08:6B:6B:96" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122936Z", "not_valid_before": "20240727123918Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 08:39:25 -0400 (0:00:00.593) 0:00:15.723 ********* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "0E:14:09:87:E1:82:0E:1D:EB:3B:94:F1:3A:BF:D4:E9:CD:24:18:71" }, "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": "5A:D3:02:EE:C7:1F:63:DD:87:EB:36:9E:44:8D:68:DE:5C:29:68:29" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "60:F7:CF:39:57:42:22:A5:1A:C8:6D:E9:69:A1:69:64:BF:BD:77:D9:57:7D:DF:B1:AB:2C:CF:08:0A:10:49:3B:5B:9C:77:8A:F1:13:91:1C:7C:24:6C:23:1A:57:A4:75:20:05:FE:18:BF:81:E7:33:F1:A2:D3:7A:01:BC:50:A2:DB:D6:54:39:64:E4:AF:61:EB:28:E9:1E:1D:1F:C5:02:0D:B6:28:91:99:E4:B8:B0:51:DE:CD:0C:63:43:76:E8:19:C4:50:52:86:DD:33:1E:5F:6C:B1:00:6F:48:59:33:07:72:E6:1D:EC:CB:BC:AB:B6:FA:7E:9B:59:91:59:40:4E:38:3D:7E:8A:FD:FA:04:5B:A6:83:69:10:8F:83:1B:3C:74:61:E9:1A:17:C0:84:3C:85:81:83:70:23:AE:F2:E3:38:DD:AE:40:CC:01:C9:B7:64:B1:04:D6:AE:53:C3:56:49:34:56:27:74:A5:1B:A1:47:62:CE:B4:FF:35:3A:14:DE:CD:E7:79:D9:31:98:97:19:B9:C4:45:EF:CE:30:7D:39:5E:DD:07:8A:F5:91:7B:45:66:9C:7C:49:0F:B1:9D:06:D3:25:53:44:17:A9:54:01:4F:06:8E:EF:AA:10:34:73:07:1F:08:87:D6:BC:DB:E4:87:45:08:6B:6B:96" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250727122936Z", "not_valid_before": "20240727123918Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 08:39:25 -0400 (0:00:00.021) 0:00:15.745 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 08:39:25 -0400 (0:00:00.027) 0:00:15.773 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 08:39:25 -0400 (0:00:00.021) 0:00:15.794 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 08:39:25 -0400 (0:00:00.027) 0:00:15.822 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 08:39:25 -0400 (0:00:00.031) 0:00:15.853 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 08:39:25 -0400 (0:00:00.032) 0:00:15.886 ********* ok: [managed_node1] => { "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.084406", "end": "2024-07-27 08:39:25.980996", "rc": 0, "start": "2024-07-27 08:39:25.896590" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 08:39:26 -0400 (0:00:00.598) 0:00:16.485 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 08:39:26 -0400 (0:00:00.027) 0:00:16.513 ********* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 08:39:26 -0400 (0:00:00.016) 0:00:16.529 ********* skipping: [managed_node1] => { "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 08:39:26 -0400 (0:00:00.018) 0:00:16.548 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 08:39:26 -0400 (0:00:00.017) 0:00:16.565 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 08:39:26 -0400 (0:00:00.015) 0:00:16.581 ********* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 08:39:28 -0400 (0:00:01.987) 0:00:18.569 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083959.3962827, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fa0ff0a47cc29700f6668c6a74f81efdd618a193", "ctime": 1722083959.3922827, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 205811, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083959.3922827, "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": "3252208047", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 08:39:28 -0400 (0:00:00.425) 0:00:18.994 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 08:39:28 -0400 (0:00:00.020) 0:00:19.014 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 08:39:28 -0400 (0:00:00.031) 0:00:19.046 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 08:39:28 -0400 (0:00:00.026) 0:00:19.073 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083959.3372834, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7f3bf12c5b072a4c1436c2c8e821982c988ff144", "ctime": 1722083959.3922827, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 205810, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083959.3922827, "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": "3722234509", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.423) 0:00:19.496 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.025) 0:00:19.521 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.029) 0:00:19.551 ********* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "0E:14:09:87:E1:82:0E:1D:EB:3B:94:F1:3A:BF:D4:E9:CD:24:18:71" }, "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": "08:3E:A3:BF:0C:2A:4B:42:72:8B:09:0B:6C:15:36:26:DA:0F:B3:6C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "59:90:B3:07:75:88:13:38:CE:24:0E:A3:CB:FA:90:F9:81:EF:05:43:1A:88:F2:2D:9B:3B:92:40:39:F0:CB:86:88:FD:44:95:0B:49:97:76:DC:02:45:62:14:1A:F1:21:1A:FA:B5:15:60:D2:BF:51:FA:03:7A:19:8B:75:03:BA:BA:DE:2E:BA:60:01:60:FA:29:68:DB:26:25:D6:C2:79:CD:B6:A3:3F:74:66:22:54:F2:B0:AA:07:63:54:89:24:50:74:AD:AF:BE:70:64:A5:C4:C7:72:86:05:FE:09:70:A1:43:FF:35:94:32:60:4F:39:15:5D:CC:1B:CE:DA:47:69:04:66:73:67:09:6C:C4:40:3F:A3:5F:7F:6A:96:76:0E:43:AF:EF:7C:52:62:E2:88:42:80:27:85:33:0B:F1:25:13:98:8F:1B:D7:45:50:4F:07:94:5E:B0:C8:6C:0C:34:9D:F0:BC:40:69:C5:9A:86:F0:C5:22:6F:9C:C7:2E:B9:B9:4F:D5:FA:F0:ED:91:B6:2B:74:5C:DB:F1:2C:4D:97:D6:42:54:24:74:EE:CA:79:06:7F:84:BE:06:27:77:36:B9:0B:00:0A:84:BA:DD:AB:4E:39:E1:CD:FE:7B:E9:2A:95:73:03:CE:58:9D:29:27:FB:7D:80:FE:77:72:88" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250727122936Z", "not_valid_before": "20240727123919Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.486) 0:00:20.038 ********* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "0E:14:09:87:E1:82:0E:1D:EB:3B:94:F1:3A:BF:D4:E9:CD:24:18:71" }, "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": "08:3E:A3:BF:0C:2A:4B:42:72:8B:09:0B:6C:15:36:26:DA:0F:B3:6C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "59:90:B3:07:75:88:13:38:CE:24:0E:A3:CB:FA:90:F9:81:EF:05:43:1A:88:F2:2D:9B:3B:92:40:39:F0:CB:86:88:FD:44:95:0B:49:97:76:DC:02:45:62:14:1A:F1:21:1A:FA:B5:15:60:D2:BF:51:FA:03:7A:19:8B:75:03:BA:BA:DE:2E:BA:60:01:60:FA:29:68:DB:26:25:D6:C2:79:CD:B6:A3:3F:74:66:22:54:F2:B0:AA:07:63:54:89:24:50:74:AD:AF:BE:70:64:A5:C4:C7:72:86:05:FE:09:70:A1:43:FF:35:94:32:60:4F:39:15:5D:CC:1B:CE:DA:47:69:04:66:73:67:09:6C:C4:40:3F:A3:5F:7F:6A:96:76:0E:43:AF:EF:7C:52:62:E2:88:42:80:27:85:33:0B:F1:25:13:98:8F:1B:D7:45:50:4F:07:94:5E:B0:C8:6C:0C:34:9D:F0:BC:40:69:C5:9A:86:F0:C5:22:6F:9C:C7:2E:B9:B9:4F:D5:FA:F0:ED:91:B6:2B:74:5C:DB:F1:2C:4D:97:D6:42:54:24:74:EE:CA:79:06:7F:84:BE:06:27:77:36:B9:0B:00:0A:84:BA:DD:AB:4E:39:E1:CD:FE:7B:E9:2A:95:73:03:CE:58:9D:29:27:FB:7D:80:FE:77:72:88" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.org" } ], "validity": { "not_valid_after": "20250727122936Z", "not_valid_before": "20240727123919Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.022) 0:00:20.060 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.027) 0:00:20.088 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.021) 0:00:20.109 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.026) 0:00:20.136 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.031) 0:00:20.167 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 08:39:29 -0400 (0:00:00.031) 0:00:20.199 ********* ok: [managed_node1] => { "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.083399", "end": "2024-07-27 08:39:30.187746", "rc": 0, "start": "2024-07-27 08:39:30.104347" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 08:39:30 -0400 (0:00:00.491) 0:00:20.691 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 27 July 2024 08:39:30 -0400 (0:00:00.027) 0:00:20.718 ********* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 27 July 2024 08:39:30 -0400 (0:00:00.016) 0:00:20.735 ********* skipping: [managed_node1] => { "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/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 27 July 2024 08:39:30 -0400 (0:00:00.019) 0:00:20.755 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 27 July 2024 08:39:30 -0400 (0:00:00.018) 0:00:20.774 ********* skipping: [managed_node1] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 27 July 2024 08:39:30 -0400 (0:00:00.017) 0:00:20.791 ********* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 27 July 2024 08:39:32 -0400 (0:00:02.008) 0:00:22.799 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083960.3282723, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d3fcf73575cd7b41bd288934ffda1acf4e3b6018", "ctime": 1722083960.3232725, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 205813, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083960.3232725, "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": "1474552693", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 27 July 2024 08:39:32 -0400 (0:00:00.421) 0:00:23.221 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 27 July 2024 08:39:32 -0400 (0:00:00.021) 0:00:23.243 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 27 July 2024 08:39:32 -0400 (0:00:00.030) 0:00:23.273 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 27 July 2024 08:39:32 -0400 (0:00:00.029) 0:00:23.303 ********* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722083960.270273, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1f9e85e965607dfc3b4c66955af5807250143772", "ctime": 1722083960.3232725, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 205812, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722083960.3232725, "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": "3322441202", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.421) 0:00:23.725 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.023) 0:00:23.748 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.030) 0:00:23.779 ********* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "0E:14:09:87:E1:82:0E:1D:EB:3B:94:F1:3A:BF:D4:E9:CD:24:18:71" }, "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": "D4:C3:8B:94:BB:40:BB:1C:0C:55:A0:CE:07:0E:8C:73:24:8F:32:24" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B1:A8:42:C4:2C:C9:DD:B6:5D:29:59:93:16:34:07:AB:98:2F:7B:66:3B:5C:11:DB:51:03:97:A6:45:27:91:22:FE:B2:23:E2:8D:39:ED:72:59:5B:B1:CE:33:B6:3C:53:90:D1:92:5C:B8:24:28:0F:AC:5D:1E:EC:A4:07:B6:A1:F7:89:C7:3F:03:5A:11:DE:CB:84:AB:08:90:B1:F0:1B:70:B1:C5:15:2C:71:8B:E5:07:47:44:BB:D3:75:61:F8:30:B3:BE:AD:CB:2E:1D:43:0C:1A:2D:3C:B0:90:AA:8C:63:EE:18:9D:61:99:6E:EF:73:C2:82:EF:C8:1A:76:54:2D:90:82:52:45:10:81:11:E5:02:2D:10:60:46:AB:47:EA:F9:26:D5:23:CD:5B:36:A3:C9:AA:97:7C:D8:CD:89:4E:85:85:6F:BE:45:B5:72:2A:B1:17:7F:92:8E:0A:2D:ED:75:23:45:F1:6D:AD:D0:AE:F1:0D:94:29:B7:45:00:F3:E3:9B:CD:40:4E:23:7B:26:11:97:48:81:54:6E:9B:C0:69:37:F4:A3:F5:B2:C7:3F:A1:2F:71:2C:D3:A8:B0:E7:73:B3:C1:1B:E6:24:73:95:1A:D5:4B:DA:2B:A8:86:91:92:B8:F0:F8:A8:96:67:68:5D:98:90:10:32:79:FA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250727122936Z", "not_valid_before": "20240727123920Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.488) 0:00:24.267 ********* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "0E:14:09:87:E1:82:0E:1D:EB:3B:94:F1:3A:BF:D4:E9:CD:24:18:71" }, "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": "D4:C3:8B:94:BB:40:BB:1C:0C:55:A0:CE:07:0E:8C:73:24:8F:32:24" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B1:A8:42:C4:2C:C9:DD:B6:5D:29:59:93:16:34:07:AB:98:2F:7B:66:3B:5C:11:DB:51:03:97:A6:45:27:91:22:FE:B2:23:E2:8D:39:ED:72:59:5B:B1:CE:33:B6:3C:53:90:D1:92:5C:B8:24:28:0F:AC:5D:1E:EC:A4:07:B6:A1:F7:89:C7:3F:03:5A:11:DE:CB:84:AB:08:90:B1:F0:1B:70:B1:C5:15:2C:71:8B:E5:07:47:44:BB:D3:75:61:F8:30:B3:BE:AD:CB:2E:1D:43:0C:1A:2D:3C:B0:90:AA:8C:63:EE:18:9D:61:99:6E:EF:73:C2:82:EF:C8:1A:76:54:2D:90:82:52:45:10:81:11:E5:02:2D:10:60:46:AB:47:EA:F9:26:D5:23:CD:5B:36:A3:C9:AA:97:7C:D8:CD:89:4E:85:85:6F:BE:45:B5:72:2A:B1:17:7F:92:8E:0A:2D:ED:75:23:45:F1:6D:AD:D0:AE:F1:0D:94:29:B7:45:00:F3:E3:9B:CD:40:4E:23:7B:26:11:97:48:81:54:6E:9B:C0:69:37:F4:A3:F5:B2:C7:3F:A1:2F:71:2C:D3:A8:B0:E7:73:B3:C1:1B:E6:24:73:95:1A:D5:4B:DA:2B:A8:86:91:92:B8:F0:F8:A8:96:67:68:5D:98:90:10:32:79:FA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.net" } ], "validity": { "not_valid_after": "20250727122936Z", "not_valid_before": "20240727123920Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.021) 0:00:24.289 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.026) 0:00:24.316 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.022) 0:00:24.338 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.025) 0:00:24.364 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.033) 0:00:24.398 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 27 July 2024 08:39:33 -0400 (0:00:00.029) 0:00:24.427 ********* ok: [managed_node1] => { "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.083707", "end": "2024-07-27 08:39:34.418279", "rc": 0, "start": "2024-07-27 08:39:34.334572" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 27 July 2024 08:39:34 -0400 (0:00:00.496) 0:00:24.923 ********* ok: [managed_node1] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed_node1 : ok=69 changed=1 unreachable=0 failed=0 skipped=14 rescued=0 ignored=0 Saturday 27 July 2024 08:39:34 -0400 (0:00:00.037) 0:00:24.960 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.90s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.16s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.01s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.99s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.98s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.98s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Gathering Facts --------------------------------------------------------- 1.31s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_many_self_signed.yml:2 Gathering Facts --------------------------------------------------------- 0.98s /tmp/tmp.E9uoWehZt4/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.88s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Retrieve auto-renew flag ------------------------------------------------ 0.60s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.59s /tmp/tmp.E9uoWehZt4/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.56s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.51s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve auto-renew flag ------------------------------------------------ 0.50s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve auto-renew flag ------------------------------------------------ 0.49s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.49s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Parse certificate ------------------------------------------------------- 0.49s /tmp/tmp.E9uoWehZt4/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.45s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve key file stats ------------------------------------------------- 0.43s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.43s /tmp/tmp.E9uoWehZt4/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38