[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.4] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-J0K executable location = /usr/local/bin/ansible-playbook python version = 3.12.5 (main, Aug 23 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True Using /etc/ansible/ansible.cfg as config file running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_no_auto_renew.yml ********************************************** 2 plays in /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 Monday 23 September 2024 08:29:15 -0400 (0:00:00.020) 0:00:00.020 ****** [WARNING]: Platform linux on host managed_node2 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed_node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 23 September 2024 08:29:16 -0400 (0:00:01.189) 0:00:01.209 ****** included: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 23 September 2024 08:29:16 -0400 (0:00:00.027) 0:00:01.237 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 23 September 2024 08:29:16 -0400 (0:00:00.065) 0:00:01.302 ****** ok: [managed_node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 23 September 2024 08:29:17 -0400 (0:00:00.448) 0:00:01.751 ****** ok: [managed_node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 23 September 2024 08:29:17 -0400 (0:00:00.021) 0:00:01.773 ****** skipping: [managed_node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed_node2] => (item=CentOS_10.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_10.yml" } ok: [managed_node2] => (item=CentOS_10.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_10.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_10.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 23 September 2024 08:29:17 -0400 (0:00:00.042) 0:00:01.815 ****** ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 23 September 2024 08:29:17 -0400 (0:00:00.833) 0:00:02.648 ****** ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 23 September 2024 08:29:18 -0400 (0:00:00.716) 0:00:03.365 ****** ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 23 September 2024 08:29:19 -0400 (0:00:00.622) 0:00:03.987 ****** ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 23 September 2024 08:29:19 -0400 (0:00:00.391) 0:00:04.379 ****** ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Mon 2024-09-23 08:28:38 EDT", "ActiveEnterTimestampMonotonic": "165342723", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service system.slice network.target dbus.socket sysinit.target syslog.target systemd-journald.socket basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Mon 2024-09-23 08:28:38 EDT", "AssertTimestampMonotonic": "165316935", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "1514319000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2024-09-23 08:28:38 EDT", "ConditionTimestampMonotonic": "165316932", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4399", "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": "Mon 2024-09-23 08:28:38 EDT", "ExecMainHandoffTimestampMonotonic": "165332668", "ExecMainPID": "7175", "ExecMainStartTimestamp": "Mon 2024-09-23 08:28:38 EDT", "ExecMainStartTimestampMonotonic": "165318201", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Mon 2024-09-23 08:28:38 EDT] ; stop_time=[n/a] ; pid=7175 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Mon 2024-09-23 08:28:38 EDT] ; stop_time=[n/a] ; pid=7175 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "[not set]", "IOReadOperations": "[not set]", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "[not set]", "IOWriteOperations": "[not set]", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Mon 2024-09-23 08:28:38 EDT", "InactiveExitTimestampMonotonic": "165320371", "InvocationID": "81131acbe68d421c8842379b6383f675", "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": "7175", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "3274616832", "MemoryCurrent": "2768896", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPeak": "8138752", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapCurrent": "0", "MemorySwapMax": "infinity", "MemorySwapPeak": "0", "MemoryZSwapCurrent": "0", "MemoryZSwapMax": "infinity", "MemoryZSwapWriteback": "yes", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "SetLoginEnvironment": "no", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StartupMemoryHigh": "infinity", "StartupMemoryLow": "0", "StartupMemoryMax": "infinity", "StartupMemorySwapMax": "infinity", "StartupMemoryZSwapMax": "infinity", "StateChangeTimestamp": "Mon 2024-09-23 08:28:38 EDT", "StateChangeTimestampMonotonic": "165342723", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SurviveFinalKillSignal": "no", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22362", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 23 September 2024 08:29:20 -0400 (0:00:00.921) 0:00:05.300 ****** changed: [managed_node2] => (item={'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } } MSG: Certificate requested (new). changed: [managed_node2] => (item={'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 23 September 2024 08:29:22 -0400 (0:00:01.799) 0:00:07.100 ****** skipping: [managed_node2] => (item=['cert', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=['cert', {'name': 'defaultcert', '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": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=['key', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=['key', {'name': 'defaultcert', '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": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=['ca', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=['ca', {'name': 'defaultcert', '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": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 23 September 2024 08:29:22 -0400 (0:00:00.077) 0:00:07.177 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 23 September 2024 08:29:22 -0400 (0:00:00.048) 0:00:07.225 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 23 September 2024 08:29:22 -0400 (0:00:00.056) 0:00:07.282 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Monday 23 September 2024 08:29:22 -0400 (0:00:00.089) 0:00:07.371 ****** ok: [managed_node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42 Monday 23 September 2024 08:29:23 -0400 (0:00:00.867) 0:00:08.239 ****** included: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (item={'path': '/etc/pki/tls/certs/mycert_no_auto_renew.crt', 'key_path': '/etc/pki/tls/private/mycert_no_auto_renew.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': False}) included: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (item={'path': '/etc/pki/tls/certs/defaultcert.crt', 'key_path': '/etc/pki/tls/private/defaultcert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': True}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:29:23 -0400 (0:00:00.055) 0:00:08.294 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:29:23 -0400 (0:00:00.014) 0:00:08.309 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:29:23 -0400 (0:00:00.015) 0:00:08.325 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:29:23 -0400 (0:00:00.015) 0:00:08.341 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:29:23 -0400 (0:00:00.011) 0:00:08.353 ****** ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:29:24 -0400 (0:00:00.673) 0:00:09.026 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727094561.3726547, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7ac2498c1b475fa13a3e7430273bd67ac7a1876d", "ctime": 1727094561.3706548, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538310, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094561.3706548, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_no_auto_renew.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "732111328", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:29:24 -0400 (0:00:00.351) 0:00:09.378 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:29:24 -0400 (0:00:00.019) 0:00:09.397 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:29:24 -0400 (0:00:00.054) 0:00:09.452 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:29:24 -0400 (0:00:00.063) 0:00:09.515 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727094561.3286545, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "64028e619bc6cafe08a0b79af24a5dd2d605a9bb", "ctime": 1727094561.3706548, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4816428, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094561.3706548, "nlink": 1, "path": "/etc/pki/tls/private/mycert_no_auto_renew.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1359225183", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:29:25 -0400 (0:00:00.385) 0:00:09.901 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:29:25 -0400 (0:00:00.027) 0:00:09.928 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:29:25 -0400 (0:00:00.041) 0:00:09.970 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "5C:2C:CE:A4:A1:E6:C4:2B:21:03:1E:E9:07:E4:24:9D:6F:4C:60:9B" }, "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": "8B:DB:F5:86:A6:D6:96:F2:91:EC:17:B5:A5:C3:B6:F3:E2:07:7F:90" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "56:8C:48:22:B6:ED:98:FA:10:1D:4C:11:87:BD:50:6D:D7:A1:16:9D:5E:B2:E3:AD:E8:7D:F9:45:31:5D:89:FE:76:CA:00:D5:35:2F:5B:BA:55:31:EB:60:96:8D:B0:F9:BA:2D:C7:60:FF:FA:F9:DC:53:E9:09:59:08:B6:AB:93:66:7B:A8:5E:A9:1A:F6:26:70:E6:02:32:46:6C:3F:84:3C:C2:3A:CB:55:41:B5:3A:4B:BD:F1:22:5B:26:A4:08:4A:A0:03:04:30:7F:52:57:FC:1F:C2:17:B4:5F:3B:9B:B3:B3:FE:67:4A:2A:04:F5:67:E0:95:1A:5F:BC:28:B7:6D:63:1F:B3:F5:5F:9A:91:E0:F5:4D:02:A1:C2:AD:94:E5:A5:5D:C8:A4:59:8D:FD:95:04:F5:5F:E9:42:84:18:A1:5D:ED:A8:84:C5:F4:6E:7D:72:ED:A4:93:87:4D:8D:66:93:FF:B1:C4:D8:CA:72:DC:F5:A7:96:8A:28:AA:E7:3B:10:68:82:0E:55:B8:1A:01:2B:4C:44:AF:64:9B:A2:16:B8:4A:8D:60:BE:DF:55:19:F7:5A:F3:2F:28:A4:FC:4D:5A:91:D9:03:F6:B6:76:BC:21:3B:37:C4:0F:D7:E0:D1:5B:33:28:DF:B7:A9:0A:6D:9F:D8:5A:E1:F2:B1:D4" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923122838Z", "not_valid_before": "20240923122921Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:29:25 -0400 (0:00:00.461) 0:00:10.431 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "5C:2C:CE:A4:A1:E6:C4:2B:21:03:1E:E9:07:E4:24:9D:6F:4C:60:9B" }, "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": "8B:DB:F5:86:A6:D6:96:F2:91:EC:17:B5:A5:C3:B6:F3:E2:07:7F:90" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "56:8C:48:22:B6:ED:98:FA:10:1D:4C:11:87:BD:50:6D:D7:A1:16:9D:5E:B2:E3:AD:E8:7D:F9:45:31:5D:89:FE:76:CA:00:D5:35:2F:5B:BA:55:31:EB:60:96:8D:B0:F9:BA:2D:C7:60:FF:FA:F9:DC:53:E9:09:59:08:B6:AB:93:66:7B:A8:5E:A9:1A:F6:26:70:E6:02:32:46:6C:3F:84:3C:C2:3A:CB:55:41:B5:3A:4B:BD:F1:22:5B:26:A4:08:4A:A0:03:04:30:7F:52:57:FC:1F:C2:17:B4:5F:3B:9B:B3:B3:FE:67:4A:2A:04:F5:67:E0:95:1A:5F:BC:28:B7:6D:63:1F:B3:F5:5F:9A:91:E0:F5:4D:02:A1:C2:AD:94:E5:A5:5D:C8:A4:59:8D:FD:95:04:F5:5F:E9:42:84:18:A1:5D:ED:A8:84:C5:F4:6E:7D:72:ED:A4:93:87:4D:8D:66:93:FF:B1:C4:D8:CA:72:DC:F5:A7:96:8A:28:AA:E7:3B:10:68:82:0E:55:B8:1A:01:2B:4C:44:AF:64:9B:A2:16:B8:4A:8D:60:BE:DF:55:19:F7:5A:F3:2F:28:A4:FC:4D:5A:91:D9:03:F6:B6:76:BC:21:3B:37:C4:0F:D7:E0:D1:5B:33:28:DF:B7:A9:0A:6D:9F:D8:5A:E1:F2:B1:D4" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923122838Z", "not_valid_before": "20240923122921Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:29:25 -0400 (0:00:00.039) 0:00:10.471 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:29:25 -0400 (0:00:00.068) 0:00:10.540 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:29:25 -0400 (0:00:00.028) 0:00:10.568 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:29:25 -0400 (0:00:00.041) 0:00:10.610 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:29:25 -0400 (0:00:00.040) 0:00:10.650 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:29:25 -0400 (0:00:00.035) 0:00:10.686 ****** ok: [managed_node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_no_auto_renew.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.040041", "end": "2024-09-23 08:29:26.424924", "rc": 0, "start": "2024-09-23 08:29:26.384883" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:29:26 -0400 (0:00:00.535) 0:00:11.222 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 23 September 2024 08:29:26 -0400 (0:00:00.041) 0:00:11.264 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 23 September 2024 08:29:26 -0400 (0:00:00.021) 0:00:11.285 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 23 September 2024 08:29:26 -0400 (0:00:00.019) 0:00:11.304 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 23 September 2024 08:29:26 -0400 (0:00:00.020) 0:00:11.324 ****** skipping: [managed_node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 23 September 2024 08:29:26 -0400 (0:00:00.013) 0:00:11.337 ****** ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 23 September 2024 08:29:27 -0400 (0:00:00.685) 0:00:12.023 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727094562.2206585, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8c61b9502da3fb0926f903486a93aa9cdaf6d81f", "ctime": 1727094562.2186587, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7538311, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094562.2186587, "nlink": 1, "path": "/etc/pki/tls/certs/defaultcert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "897800630", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 23 September 2024 08:29:27 -0400 (0:00:00.361) 0:00:12.384 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 23 September 2024 08:29:27 -0400 (0:00:00.017) 0:00:12.401 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 23 September 2024 08:29:27 -0400 (0:00:00.037) 0:00:12.439 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 23 September 2024 08:29:27 -0400 (0:00:00.043) 0:00:12.482 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1727094562.1766584, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c8b427a6854280adbf984ad455a4e0ee8452aa44", "ctime": 1727094562.2186587, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4816429, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727094562.2186587, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "3470402860", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 23 September 2024 08:29:28 -0400 (0:00:00.374) 0:00:12.857 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 23 September 2024 08:29:28 -0400 (0:00:00.018) 0:00:12.876 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 23 September 2024 08:29:28 -0400 (0:00:00.038) 0:00:12.914 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "5C:2C:CE:A4:A1:E6:C4:2B:21:03:1E:E9:07:E4:24:9D:6F:4C:60:9B" }, "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": "7C:DF:59:F1:7F:7B:09:13:C9:EC:98:A3:CF:C7:1C:0B:CA:FE:DA:48" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0B:68:BB:4E:83:F0:2D:4E:2E:34:66:50:C9:44:51:60:6E:35:AF:5F:BB:47:C1:15:F9:62:7B:92:60:A8:37:42:E8:08:28:07:03:76:52:72:03:00:90:A3:6B:D9:E3:92:9A:E0:9B:4A:61:43:27:08:A6:9D:0F:BB:39:2E:84:20:18:64:76:8D:4B:C8:D2:6B:4E:62:74:56:DF:02:FA:F1:AE:69:33:21:DB:D4:34:07:36:43:CA:42:91:D3:D4:AD:C2:19:A8:B0:B3:D8:64:A6:6C:67:B4:10:57:A6:17:80:77:DE:5F:A4:57:24:BE:1D:B8:B2:10:D5:E0:42:AE:39:82:9F:67:0A:25:CA:2E:52:F2:87:82:2B:D0:40:DD:A1:DF:10:DD:E6:75:17:9E:8E:73:B6:F9:96:DD:D2:FE:F9:2F:50:37:EE:1F:61:6D:DF:D5:5F:19:34:FF:19:44:61:82:74:D3:61:C2:91:BD:40:B4:FB:26:C3:73:70:84:C8:D8:C8:78:03:93:3C:27:8E:4D:58:D4:89:F9:E2:B4:99:3A:BE:BA:03:EE:E1:53:2C:AC:AC:79:7E:9F:4D:40:D4:8C:22:8A:47:41:FE:89:C8:5D:6D:8F:6C:C3:9E:74:55:65:4B:36:12:D6:E4:65:1E:CA:16:1F:8A:A1:44:8A:FD" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923122838Z", "not_valid_before": "20240923122922Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 23 September 2024 08:29:28 -0400 (0:00:00.378) 0:00:13.293 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "5C:2C:CE:A4:A1:E6:C4:2B:21:03:1E:E9:07:E4:24:9D:6F:4C:60:9B" }, "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": "7C:DF:59:F1:7F:7B:09:13:C9:EC:98:A3:CF:C7:1C:0B:CA:FE:DA:48" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0B:68:BB:4E:83:F0:2D:4E:2E:34:66:50:C9:44:51:60:6E:35:AF:5F:BB:47:C1:15:F9:62:7B:92:60:A8:37:42:E8:08:28:07:03:76:52:72:03:00:90:A3:6B:D9:E3:92:9A:E0:9B:4A:61:43:27:08:A6:9D:0F:BB:39:2E:84:20:18:64:76:8D:4B:C8:D2:6B:4E:62:74:56:DF:02:FA:F1:AE:69:33:21:DB:D4:34:07:36:43:CA:42:91:D3:D4:AD:C2:19:A8:B0:B3:D8:64:A6:6C:67:B4:10:57:A6:17:80:77:DE:5F:A4:57:24:BE:1D:B8:B2:10:D5:E0:42:AE:39:82:9F:67:0A:25:CA:2E:52:F2:87:82:2B:D0:40:DD:A1:DF:10:DD:E6:75:17:9E:8E:73:B6:F9:96:DD:D2:FE:F9:2F:50:37:EE:1F:61:6D:DF:D5:5F:19:34:FF:19:44:61:82:74:D3:61:C2:91:BD:40:B4:FB:26:C3:73:70:84:C8:D8:C8:78:03:93:3C:27:8E:4D:58:D4:89:F9:E2:B4:99:3A:BE:BA:03:EE:E1:53:2C:AC:AC:79:7E:9F:4D:40:D4:8C:22:8A:47:41:FE:89:C8:5D:6D:8F:6C:C3:9E:74:55:65:4B:36:12:D6:E4:65:1E:CA:16:1F:8A:A1:44:8A:FD" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250923122838Z", "not_valid_before": "20240923122922Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 23 September 2024 08:29:28 -0400 (0:00:00.022) 0:00:13.316 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 23 September 2024 08:29:28 -0400 (0:00:00.048) 0:00:13.364 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 23 September 2024 08:29:28 -0400 (0:00:00.025) 0:00:13.389 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 23 September 2024 08:29:28 -0400 (0:00:00.042) 0:00:13.432 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 23 September 2024 08:29:28 -0400 (0:00:00.049) 0:00:13.482 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 23 September 2024 08:29:28 -0400 (0:00:00.056) 0:00:13.538 ****** ok: [managed_node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/defaultcert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.039714", "end": "2024-09-23 08:29:29.145827", "rc": 0, "start": "2024-09-23 08:29:29.106113" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 23 September 2024 08:29:29 -0400 (0:00:00.404) 0:00:13.943 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed_node2 : ok=50 changed=1 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Monday 23 September 2024 08:29:29 -0400 (0:00:00.047) 0:00:13.990 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.80s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.19s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.92s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.87s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 0.83s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.72s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.69s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 0.67s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.62s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Retrieve auto-renew flag ------------------------------------------------ 0.54s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.46s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.45s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve auto-renew flag ------------------------------------------------ 0.40s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.39s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve key file stats ------------------------------------------------- 0.39s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Parse certificate ------------------------------------------------------- 0.38s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve key file stats ------------------------------------------------- 0.37s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.36s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve certificate file stats ----------------------------------------- 0.35s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 fedora.linux_system_roles.certificate : Remove files -------------------- 0.09s /tmp/collections-J0K/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181