ansible-playbook [core 2.17.5] 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-8Ko executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/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-8Ko/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-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 Saturday 02 November 2024 08:27:34 -0400 (0:00:00.015) 0:00:00.015 ***** [WARNING]: Platform linux on host managed-node3 is using the discovered Python interpreter at /usr/bin/python3.9, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node3] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 02 November 2024 08:27:35 -0400 (0:00:01.088) 0:00:01.104 ***** included: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 02 November 2024 08:27:35 -0400 (0:00:00.019) 0:00:01.124 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 02 November 2024 08:27:35 -0400 (0:00:00.034) 0:00:01.158 ***** ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 02 November 2024 08:27:35 -0400 (0:00:00.478) 0:00:01.636 ***** ok: [managed-node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 02 November 2024 08:27:35 -0400 (0:00:00.023) 0:00:01.660 ***** skipping: [managed-node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node3] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node3] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 02 November 2024 08:27:35 -0400 (0:00:00.041) 0:00:01.701 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 02 November 2024 08:27:37 -0400 (0:00:01.382) 0:00:03.084 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 02 November 2024 08:27:38 -0400 (0:00:01.288) 0:00:04.373 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.527) 0:00:04.900 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 02 November 2024 08:27:39 -0400 (0:00:00.372) 0:00:05.273 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-11-02 08:26:44 EDT", "ActiveEnterTimestampMonotonic": "279670919", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket system.slice dbus-broker.service network.target basic.target syslog.target sysinit.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-11-02 08:26:44 EDT", "AssertTimestampMonotonic": "279656496", "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": "2197544000", "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-11-02 08:26:44 EDT", "ConditionTimestampMonotonic": "279656494", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4179", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7724", "ExecMainStartTimestamp": "Sat 2024-11-02 08:26:44 EDT", "ExecMainStartTimestampMonotonic": "279663324", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-11-02 08:26:44 EDT] ; stop_time=[n/a] ; pid=7724 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-11-02 08:26:44 EDT] ; stop_time=[n/a] ; pid=7724 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "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-11-02 08:26:44 EDT", "InactiveExitTimestampMonotonic": "279663598", "InvocationID": "375c7b628a9c4007992749b0a6f9c0b3", "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": "13955", "LimitNPROCSoft": "13955", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13955", "LimitSIGPENDINGSoft": "13955", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7724", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4620288", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "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", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "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]", "StateChangeTimestamp": "Sat 2024-11-02 08:26:44 EDT", "StateChangeTimestampMonotonic": "279670919", "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": "22328", "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-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 02 November 2024 08:27:40 -0400 (0:00:00.744) 0:00:06.018 ***** changed: [managed-node3] => (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-node3] => (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-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 02 November 2024 08:27:41 -0400 (0:00:01.588) 0:00:07.607 ***** skipping: [managed-node3] => (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-node3] => (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-node3] => (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-node3] => (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-node3] => (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-node3] => (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-node3] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 02 November 2024 08:27:41 -0400 (0:00:00.086) 0:00:07.693 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 02 November 2024 08:27:41 -0400 (0:00:00.047) 0:00:07.740 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 02 November 2024 08:27:41 -0400 (0:00:00.056) 0:00:07.797 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Saturday 02 November 2024 08:27:41 -0400 (0:00:00.084) 0:00:07.882 ***** ok: [managed-node3] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42 Saturday 02 November 2024 08:27:42 -0400 (0:00:00.741) 0:00:08.624 ***** included: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 => (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-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 => (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-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 02 November 2024 08:27:42 -0400 (0:00:00.057) 0:00:08.681 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 02 November 2024 08:27:42 -0400 (0:00:00.015) 0:00:08.696 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 02 November 2024 08:27:42 -0400 (0:00:00.018) 0:00:08.715 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 02 November 2024 08:27:42 -0400 (0:00:00.018) 0:00:08.733 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 02 November 2024 08:27:42 -0400 (0:00:00.013) 0:00:08.746 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 02 November 2024 08:27:44 -0400 (0:00:01.257) 0:00:10.004 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550460.6825778, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d602ad86f2c16a7535ebbdb4858835c0daf30469", "ctime": 1730550460.6795778, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13270010, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730550460.6795778, "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": "348034319", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 02 November 2024 08:27:44 -0400 (0:00:00.368) 0:00:10.372 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 02 November 2024 08:27:44 -0400 (0:00:00.020) 0:00:10.393 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 02 November 2024 08:27:44 -0400 (0:00:00.041) 0:00:10.434 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 02 November 2024 08:27:44 -0400 (0:00:00.042) 0:00:10.477 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550460.6355777, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "90219d832ea3db5d57c6414c87bbae875e3bcd8e", "ctime": 1730550460.6795778, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 9073515, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730550460.6795778, "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": "248233193", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 02 November 2024 08:27:44 -0400 (0:00:00.374) 0:00:10.851 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 02 November 2024 08:27:44 -0400 (0:00:00.029) 0:00:10.881 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 02 November 2024 08:27:44 -0400 (0:00:00.061) 0:00:10.942 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:FA:67:61:BA:FB:E6:AD:9E:F1:78:7C:CE:90:DD:51:26:D6:4C:7E" }, "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": "89:33:32:17:51:26:41:75:4F:07:E6:35:0A:0F:99:C2:43:4B:91:2A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:4D:4C:59:52:C1:2B:14:1E:B1:48:AE:53:D6:E1:BE:F8:5D:64:19:42:DA:59:E2:D0:F4:0C:9A:CC:81:AB:53:AD:9B:10:0A:92:CF:AB:06:2B:9E:4B:D9:0A:B1:01:28:9D:71:40:B3:AF:B3:6B:D4:0C:47:CC:3B:64:46:CF:47:0E:FB:0E:CC:6C:CA:8C:E1:AB:CB:71:8A:8F:6B:D2:ED:FD:BE:FF:9F:C7:61:38:B1:CB:43:37:58:15:EE:36:4D:8C:0A:6B:4E:23:EA:D6:7B:7A:BC:3D:BE:2C:D7:73:68:EC:38:C6:3D:30:AB:F7:F0:AC:F5:F0:D0:E5:2C:AA:83:B7:1F:20:D2:E8:75:C3:58:5B:DA:8E:4D:E9:FD:0E:0C:76:FB:73:CA:C2:EB:52:04:DA:53:18:E3:3C:C6:CF:7A:4D:1E:03:AA:84:69:92:6B:B4:8C:E8:36:8D:FB:A8:12:AD:A5:2C:E5:A1:47:D7:C8:97:CF:16:23:09:85:2A:32:B5:9C:DA:A3:7E:EE:E4:E6:87:76:56:73:56:63:BE:9B:17:45:2B:AB:A6:36:19:87:EF:05:7A:4B:A6:8D:40:B5:A3:53:98:B4:2A:4D:72:34:0C:A3:5C:57:BF:43:66:16:20:5C:98:69:D1:72:7B:E2:CE:EB:56:82:7C:4C:9C:8E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122644Z", "not_valid_before": "20241102122740Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 02 November 2024 08:27:45 -0400 (0:00:00.475) 0:00:11.418 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:FA:67:61:BA:FB:E6:AD:9E:F1:78:7C:CE:90:DD:51:26:D6:4C:7E" }, "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": "89:33:32:17:51:26:41:75:4F:07:E6:35:0A:0F:99:C2:43:4B:91:2A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:4D:4C:59:52:C1:2B:14:1E:B1:48:AE:53:D6:E1:BE:F8:5D:64:19:42:DA:59:E2:D0:F4:0C:9A:CC:81:AB:53:AD:9B:10:0A:92:CF:AB:06:2B:9E:4B:D9:0A:B1:01:28:9D:71:40:B3:AF:B3:6B:D4:0C:47:CC:3B:64:46:CF:47:0E:FB:0E:CC:6C:CA:8C:E1:AB:CB:71:8A:8F:6B:D2:ED:FD:BE:FF:9F:C7:61:38:B1:CB:43:37:58:15:EE:36:4D:8C:0A:6B:4E:23:EA:D6:7B:7A:BC:3D:BE:2C:D7:73:68:EC:38:C6:3D:30:AB:F7:F0:AC:F5:F0:D0:E5:2C:AA:83:B7:1F:20:D2:E8:75:C3:58:5B:DA:8E:4D:E9:FD:0E:0C:76:FB:73:CA:C2:EB:52:04:DA:53:18:E3:3C:C6:CF:7A:4D:1E:03:AA:84:69:92:6B:B4:8C:E8:36:8D:FB:A8:12:AD:A5:2C:E5:A1:47:D7:C8:97:CF:16:23:09:85:2A:32:B5:9C:DA:A3:7E:EE:E4:E6:87:76:56:73:56:63:BE:9B:17:45:2B:AB:A6:36:19:87:EF:05:7A:4B:A6:8D:40:B5:A3:53:98:B4:2A:4D:72:34:0C:A3:5C:57:BF:43:66:16:20:5C:98:69:D1:72:7B:E2:CE:EB:56:82:7C:4C:9C:8E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122644Z", "not_valid_before": "20241102122740Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 02 November 2024 08:27:45 -0400 (0:00:00.019) 0:00:11.438 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 02 November 2024 08:27:45 -0400 (0:00:00.047) 0:00:11.485 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 02 November 2024 08:27:45 -0400 (0:00:00.023) 0:00:11.508 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 02 November 2024 08:27:45 -0400 (0:00:00.038) 0:00:11.547 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 02 November 2024 08:27:45 -0400 (0:00:00.041) 0:00:11.589 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 02 November 2024 08:27:45 -0400 (0:00:00.040) 0:00:11.629 ***** ok: [managed-node3] => { "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.039925", "end": "2024-11-02 08:27:46.052351", "rc": 0, "start": "2024-11-02 08:27:46.012426" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 02 November 2024 08:27:46 -0400 (0:00:00.461) 0:00:12.091 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 02 November 2024 08:27:46 -0400 (0:00:00.039) 0:00:12.130 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 02 November 2024 08:27:46 -0400 (0:00:00.015) 0:00:12.145 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 02 November 2024 08:27:46 -0400 (0:00:00.017) 0:00:12.163 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 02 November 2024 08:27:46 -0400 (0:00:00.018) 0:00:12.181 ***** skipping: [managed-node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 02 November 2024 08:27:46 -0400 (0:00:00.013) 0:00:12.195 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 02 November 2024 08:27:47 -0400 (0:00:01.246) 0:00:13.442 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550461.47558, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "000142c7f6b8599d6613a852180e48e1b15fb1a7", "ctime": 1730550461.47258, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13270011, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730550461.47258, "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": "2032937392", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 02 November 2024 08:27:47 -0400 (0:00:00.353) 0:00:13.795 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 02 November 2024 08:27:47 -0400 (0:00:00.023) 0:00:13.818 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 02 November 2024 08:27:47 -0400 (0:00:00.043) 0:00:13.862 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 02 November 2024 08:27:47 -0400 (0:00:00.052) 0:00:13.915 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550461.4285798, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e6d102e2b4dc66bffbe3355115bb01f3c89c4a25", "ctime": 1730550461.47258, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 9073516, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730550461.47258, "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": "1763065802", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.368) 0:00:14.283 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.020) 0:00:14.303 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.040) 0:00:14.343 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:FA:67:61:BA:FB:E6:AD:9E:F1:78:7C:CE:90:DD:51:26:D6:4C:7E" }, "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": "63:51:3D:02:50:DC:6C:E6:E1:19:C1:FC:AD:55:CC:8E:EA:B5:FF:EB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3B:3E:EF:E1:46:29:37:B7:8E:6E:8D:E8:26:7E:AD:AF:64:FF:0B:58:F9:A0:75:20:F4:96:AC:10:D1:62:F9:66:C3:2C:4C:56:26:84:3B:D5:37:2E:E4:BB:44:59:81:93:44:7E:85:2A:CE:A7:EE:9D:11:86:49:A8:57:81:BA:F9:CE:D2:F9:78:2D:2D:9B:B4:90:F1:16:93:A1:92:05:18:05:B0:9A:4A:7E:C9:BD:32:8F:F9:08:06:46:02:30:D3:5A:44:B8:81:E4:BF:47:59:09:B5:EE:7F:78:8D:B5:BB:7A:CA:CB:67:F4:80:8D:5E:8F:E8:4E:62:8D:F2:15:AB:B5:1C:12:03:4C:9C:BF:0B:F2:13:A7:34:9F:EB:CE:1C:72:48:D9:24:74:0F:AB:F7:1B:B3:89:72:EE:CB:3C:DF:2E:70:EF:A3:F8:CB:CA:96:05:DD:66:17:FE:25:C7:BB:20:F3:05:15:55:C3:C8:DF:B7:43:B4:36:C4:AC:4C:C5:06:47:F9:8B:3F:8C:B2:8C:11:33:74:BF:1D:F5:71:3D:B7:54:80:03:BB:20:B5:7F:64:5F:B5:AF:7E:AA:1B:90:75:17:8B:43:88:4E:D4:4D:A4:11:79:D8:D5:F4:AA:9B:99:FD:A4:F2:D7:3F:ED:C9:AA:0F:0F:45:09:93:19:2A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122644Z", "not_valid_before": "20241102122741Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.372) 0:00:14.716 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "BB:FA:67:61:BA:FB:E6:AD:9E:F1:78:7C:CE:90:DD:51:26:D6:4C:7E" }, "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": "63:51:3D:02:50:DC:6C:E6:E1:19:C1:FC:AD:55:CC:8E:EA:B5:FF:EB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3B:3E:EF:E1:46:29:37:B7:8E:6E:8D:E8:26:7E:AD:AF:64:FF:0B:58:F9:A0:75:20:F4:96:AC:10:D1:62:F9:66:C3:2C:4C:56:26:84:3B:D5:37:2E:E4:BB:44:59:81:93:44:7E:85:2A:CE:A7:EE:9D:11:86:49:A8:57:81:BA:F9:CE:D2:F9:78:2D:2D:9B:B4:90:F1:16:93:A1:92:05:18:05:B0:9A:4A:7E:C9:BD:32:8F:F9:08:06:46:02:30:D3:5A:44:B8:81:E4:BF:47:59:09:B5:EE:7F:78:8D:B5:BB:7A:CA:CB:67:F4:80:8D:5E:8F:E8:4E:62:8D:F2:15:AB:B5:1C:12:03:4C:9C:BF:0B:F2:13:A7:34:9F:EB:CE:1C:72:48:D9:24:74:0F:AB:F7:1B:B3:89:72:EE:CB:3C:DF:2E:70:EF:A3:F8:CB:CA:96:05:DD:66:17:FE:25:C7:BB:20:F3:05:15:55:C3:C8:DF:B7:43:B4:36:C4:AC:4C:C5:06:47:F9:8B:3F:8C:B2:8C:11:33:74:BF:1D:F5:71:3D:B7:54:80:03:BB:20:B5:7F:64:5F:B5:AF:7E:AA:1B:90:75:17:8B:43:88:4E:D4:4D:A4:11:79:D8:D5:F4:AA:9B:99:FD:A4:F2:D7:3F:ED:C9:AA:0F:0F:45:09:93:19:2A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122644Z", "not_valid_before": "20241102122741Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.024) 0:00:14.740 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.045) 0:00:14.785 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.030) 0:00:14.816 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.038) 0:00:14.855 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.041) 0:00:14.896 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 02 November 2024 08:27:48 -0400 (0:00:00.040) 0:00:14.937 ***** ok: [managed-node3] => { "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.039501", "end": "2024-11-02 08:27:49.256958", "rc": 0, "start": "2024-11-02 08:27:49.217457" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 02 November 2024 08:27:49 -0400 (0:00:00.359) 0:00:15.296 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node3 : ok=50 changed=1 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Saturday 02 November 2024 08:27:49 -0400 (0:00:00.047) 0:00:15.343 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.59s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.38s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.29s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 1.26s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.25s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Gathering Facts --------------------------------------------------------- 1.09s /tmp/collections-8Ko/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.74s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.74s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.53s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.48s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.48s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.46s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve key file stats ------------------------------------------------- 0.37s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.37s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Parse certificate ------------------------------------------------------- 0.37s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve certificate file stats ----------------------------------------- 0.37s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.37s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve auto-renew flag ------------------------------------------------ 0.36s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve certificate file stats ----------------------------------------- 0.35s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.09s /tmp/collections-8Ko/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152