ansible-playbook [core 2.16.12] config file = None 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-tHe executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults 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-tHe/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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 Saturday 26 October 2024 08:30:00 -0400 (0:00:00.009) 0:00:00.009 ****** ok: [managed-node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 26 October 2024 08:30:01 -0400 (0:00:01.110) 0:00:01.120 ****** included: /tmp/collections-tHe/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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 26 October 2024 08:30:01 -0400 (0:00:00.020) 0:00:01.140 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 26 October 2024 08:30:01 -0400 (0:00:00.034) 0:00:01.175 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 26 October 2024 08:30:01 -0400 (0:00:00.475) 0:00:01.650 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 26 October 2024 08:30:01 -0400 (0:00:00.023) 0:00:01.673 ****** 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" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 26 October 2024 08:30:01 -0400 (0:00:00.033) 0:00:01.706 ****** ok: [managed-node2] => { "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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 26 October 2024 08:30:05 -0400 (0:00:03.144) 0:00:04.851 ****** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 26 October 2024 08:30:08 -0400 (0:00:03.043) 0:00:07.895 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 26 October 2024 08:30:08 -0400 (0:00:00.510) 0:00:08.405 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 26 October 2024 08:30:09 -0400 (0:00:00.389) 0:00:08.795 ****** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-10-26 08:28:48 EDT", "ActiveEnterTimestampMonotonic": "338912895", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target systemd-journald.socket sysinit.target dbus.socket network.target dbus.service basic.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-10-26 08:28:48 EDT", "AssertTimestampMonotonic": "338900880", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-10-26 08:28:48 EDT", "ConditionTimestampMonotonic": "338900879", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8552", "ExecMainStartTimestamp": "Sat 2024-10-26 08:28:48 EDT", "ExecMainStartTimestampMonotonic": "338901658", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-10-26 08:28:48 EDT] ; stop_time=[n/a] ; pid=8552 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-10-26 08:28:48 EDT", "InactiveExitTimestampMonotonic": "338901696", "InvocationID": "4a0498a43bf447819612a88216d9db60", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8552", "MemoryAccounting": "yes", "MemoryCurrent": "3940352", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-10-26 08:28:48 EDT", "StateChangeTimestampMonotonic": "338912895", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-10-26 08:28:48 EDT", "WatchdogTimestampMonotonic": "338912893", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 26 October 2024 08:30:09 -0400 (0:00:00.826) 0:00:09.622 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 26 October 2024 08:30:11 -0400 (0:00:01.701) 0:00:11.324 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 26 October 2024 08:30:11 -0400 (0:00:00.056) 0:00:11.380 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 26 October 2024 08:30:11 -0400 (0:00:00.032) 0:00:11.413 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 26 October 2024 08:30:11 -0400 (0:00:00.034) 0:00:11.447 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Saturday 26 October 2024 08:30:11 -0400 (0:00:00.053) 0:00:11.500 ****** ok: [managed-node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42 Saturday 26 October 2024 08:30:12 -0400 (0:00:00.762) 0:00:12.263 ****** included: /tmp/collections-tHe/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-tHe/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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 26 October 2024 08:30:12 -0400 (0:00:00.051) 0:00:12.315 ****** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 26 October 2024 08:30:12 -0400 (0:00:00.013) 0:00:12.328 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 26 October 2024 08:30:12 -0400 (0:00:00.016) 0:00:12.345 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 26 October 2024 08:30:12 -0400 (0:00:00.017) 0:00:12.362 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 26 October 2024 08:30:12 -0400 (0:00:00.011) 0:00:12.374 ****** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 26 October 2024 08:30:15 -0400 (0:00:02.936) 0:00:15.311 ****** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1729945810.6358008, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bc3f565d5316d9b05d15ce41d3ffab341b180e4d", "ctime": 1729945810.632801, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718646, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1729945810.632801, "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": "3770458761", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 26 October 2024 08:30:15 -0400 (0:00:00.399) 0:00:15.710 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 26 October 2024 08:30:16 -0400 (0:00:00.029) 0:00:15.740 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 26 October 2024 08:30:16 -0400 (0:00:00.056) 0:00:15.797 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 26 October 2024 08:30:16 -0400 (0:00:00.054) 0:00:15.852 ****** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1729945810.589801, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f3e5a231227e964109e00955e21da113db6259a3", "ctime": 1729945810.632801, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718645, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1729945810.632801, "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": "2391807894", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 26 October 2024 08:30:16 -0400 (0:00:00.359) 0:00:16.211 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 26 October 2024 08:30:16 -0400 (0:00:00.019) 0:00:16.230 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 26 October 2024 08:30:16 -0400 (0:00:00.040) 0:00:16.270 ****** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "46:39:16:CD:F2:72:12:8C:F8:5F:89:E8:2F:B0:17:44:76:3D:66:E2" }, "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": "3B:8A:85:2E:89:FC:1E:9A:C1:EF:4A:7B:83:6E:B0:9B:AB:48:A3:72" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "50:0A:DB:07:E0:D4:DD:20:56:21:15:69:0C:6B:00:64:C3:7A:D2:C7:17:72:CC:FE:CC:99:80:B2:AC:1F:BC:C2:79:38:38:A5:63:74:BE:F1:D0:7C:2D:28:FB:0C:8F:A0:87:32:01:D6:38:90:F5:30:62:43:A5:9E:55:81:59:D8:4F:D0:58:F3:0C:E9:FF:8C:89:C7:39:D3:A0:B0:45:75:F7:57:6B:3E:7E:1D:CB:00:2B:17:F3:E8:1E:E5:87:AF:1B:ED:96:27:4E:DF:35:56:34:93:29:42:64:60:92:E5:CC:9F:0A:BD:8F:8A:04:E8:7E:DC:A9:D3:60:BE:5B:F5:30:01:36:B9:DC:1C:FD:93:D7:6C:89:09:4C:EF:D2:FC:C0:38:1C:BA:45:91:7D:73:AD:02:41:63:8A:F3:4C:EA:D1:EC:26:1A:1C:3B:22:50:AC:23:D5:7D:9F:34:E2:14:0B:6D:3F:62:83:2E:EB:38:68:7D:32:30:D4:78:40:ED:FA:18:47:B6:AD:03:77:C9:FC:99:5B:F6:5D:10:36:BC:3F:43:43:18:C6:A0:E4:65:CD:23:16:3C:30:4D:CC:90:17:9B:E7:04:1B:94:45:03:FD:46:5B:34:CA:00:D5:E4:A2:D6:CC:4C:7B:DB:17:D9:81:08:21:D6:CA:CF:FA:12" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251026122849Z", "not_valid_before": "20241026123010Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.522) 0:00:16.793 ****** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "46:39:16:CD:F2:72:12:8C:F8:5F:89:E8:2F:B0:17:44:76:3D:66:E2" }, "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": "3B:8A:85:2E:89:FC:1E:9A:C1:EF:4A:7B:83:6E:B0:9B:AB:48:A3:72" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "50:0A:DB:07:E0:D4:DD:20:56:21:15:69:0C:6B:00:64:C3:7A:D2:C7:17:72:CC:FE:CC:99:80:B2:AC:1F:BC:C2:79:38:38:A5:63:74:BE:F1:D0:7C:2D:28:FB:0C:8F:A0:87:32:01:D6:38:90:F5:30:62:43:A5:9E:55:81:59:D8:4F:D0:58:F3:0C:E9:FF:8C:89:C7:39:D3:A0:B0:45:75:F7:57:6B:3E:7E:1D:CB:00:2B:17:F3:E8:1E:E5:87:AF:1B:ED:96:27:4E:DF:35:56:34:93:29:42:64:60:92:E5:CC:9F:0A:BD:8F:8A:04:E8:7E:DC:A9:D3:60:BE:5B:F5:30:01:36:B9:DC:1C:FD:93:D7:6C:89:09:4C:EF:D2:FC:C0:38:1C:BA:45:91:7D:73:AD:02:41:63:8A:F3:4C:EA:D1:EC:26:1A:1C:3B:22:50:AC:23:D5:7D:9F:34:E2:14:0B:6D:3F:62:83:2E:EB:38:68:7D:32:30:D4:78:40:ED:FA:18:47:B6:AD:03:77:C9:FC:99:5B:F6:5D:10:36:BC:3F:43:43:18:C6:A0:E4:65:CD:23:16:3C:30:4D:CC:90:17:9B:E7:04:1B:94:45:03:FD:46:5B:34:CA:00:D5:E4:A2:D6:CC:4C:7B:DB:17:D9:81:08:21:D6:CA:CF:FA:12" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251026122849Z", "not_valid_before": "20241026123010Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.024) 0:00:16.817 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.042) 0:00:16.859 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.020) 0:00:16.880 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.046) 0:00:16.926 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.042) 0:00:16.968 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.042) 0:00:17.010 ****** 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.056057", "end": "2024-10-26 08:30:17.795383", "rc": 0, "start": "2024-10-26 08:30:17.739326" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.550) 0:00:17.561 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.040) 0:00:17.602 ****** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.014) 0:00:17.616 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.018) 0:00:17.635 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.017) 0:00:17.652 ****** 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-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 26 October 2024 08:30:17 -0400 (0:00:00.013) 0:00:17.666 ****** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 26 October 2024 08:30:20 -0400 (0:00:02.954) 0:00:20.620 ****** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1729945811.4827964, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "980dc944bb932f78b105918a46fa4fd088e51eea", "ctime": 1729945811.4807966, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718648, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1729945811.4807966, "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": "2225981181", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 26 October 2024 08:30:21 -0400 (0:00:00.377) 0:00:20.998 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 26 October 2024 08:30:21 -0400 (0:00:00.035) 0:00:21.034 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 26 October 2024 08:30:21 -0400 (0:00:00.051) 0:00:21.085 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 26 October 2024 08:30:21 -0400 (0:00:00.040) 0:00:21.126 ****** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1729945811.4377968, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6ea0bf4583101ad07ba598945e88d046c0511d7d", "ctime": 1729945811.4797966, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718647, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1729945811.4797966, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "2969870442", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 26 October 2024 08:30:21 -0400 (0:00:00.376) 0:00:21.502 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 26 October 2024 08:30:21 -0400 (0:00:00.019) 0:00:21.522 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 26 October 2024 08:30:21 -0400 (0:00:00.043) 0:00:21.565 ****** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "46:39:16:CD:F2:72:12:8C:F8:5F:89:E8:2F:B0:17:44:76:3D:66:E2" }, "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": "B0:69:CC:FB:E1:D3:CD:C0:57:CF:AA:26:E9:82:83:F1:CA:A2:D7:DA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B1:BD:6E:4D:72:66:57:0B:E2:E3:47:30:E3:00:8A:3A:BE:37:CF:BB:3E:B1:B6:38:18:AB:CF:BB:A7:AB:8B:5D:2B:35:26:20:F4:B5:13:08:BD:DC:6B:99:58:CC:85:CD:D4:17:0F:D4:49:17:D7:C0:41:79:DA:A3:6E:E3:38:12:2E:F1:C4:6A:22:E6:29:04:79:8A:43:6C:24:2E:C9:BE:FA:13:74:A7:D2:9A:AC:96:68:C5:E8:44:74:E6:25:F3:10:1C:37:18:62:21:67:6D:1A:CA:86:6F:A4:86:76:44:20:BC:B9:84:E6:E0:48:48:80:5D:4F:25:4E:89:FF:18:E9:88:88:C3:07:0F:30:3C:44:BE:9D:5B:BC:F3:BC:A4:FD:BD:23:93:8D:59:0A:BE:E6:8D:8D:F9:13:78:11:12:FA:BA:5C:24:49:B7:0A:89:07:11:C1:D3:34:D5:92:F2:96:17:7E:3E:6A:21:86:28:E7:A1:45:48:3E:86:7B:2C:C6:35:12:E0:54:69:9C:85:A2:27:34:44:A2:FE:56:BA:D9:90:2D:CE:48:71:5A:36:DA:E1:A9:DC:6F:9E:6B:4C:90:B2:AF:10:9F:2A:E4:11:6B:1B:16:25:A6:51:26:59:2C:FA:B0:AD:D7:AB:10:C1:E0:01:C7:19:CC:62:0D:BC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251026122849Z", "not_valid_before": "20241026123011Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.441) 0:00:22.007 ****** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "46:39:16:CD:F2:72:12:8C:F8:5F:89:E8:2F:B0:17:44:76:3D:66:E2" }, "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": "B0:69:CC:FB:E1:D3:CD:C0:57:CF:AA:26:E9:82:83:F1:CA:A2:D7:DA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B1:BD:6E:4D:72:66:57:0B:E2:E3:47:30:E3:00:8A:3A:BE:37:CF:BB:3E:B1:B6:38:18:AB:CF:BB:A7:AB:8B:5D:2B:35:26:20:F4:B5:13:08:BD:DC:6B:99:58:CC:85:CD:D4:17:0F:D4:49:17:D7:C0:41:79:DA:A3:6E:E3:38:12:2E:F1:C4:6A:22:E6:29:04:79:8A:43:6C:24:2E:C9:BE:FA:13:74:A7:D2:9A:AC:96:68:C5:E8:44:74:E6:25:F3:10:1C:37:18:62:21:67:6D:1A:CA:86:6F:A4:86:76:44:20:BC:B9:84:E6:E0:48:48:80:5D:4F:25:4E:89:FF:18:E9:88:88:C3:07:0F:30:3C:44:BE:9D:5B:BC:F3:BC:A4:FD:BD:23:93:8D:59:0A:BE:E6:8D:8D:F9:13:78:11:12:FA:BA:5C:24:49:B7:0A:89:07:11:C1:D3:34:D5:92:F2:96:17:7E:3E:6A:21:86:28:E7:A1:45:48:3E:86:7B:2C:C6:35:12:E0:54:69:9C:85:A2:27:34:44:A2:FE:56:BA:D9:90:2D:CE:48:71:5A:36:DA:E1:A9:DC:6F:9E:6B:4C:90:B2:AF:10:9F:2A:E4:11:6B:1B:16:25:A6:51:26:59:2C:FA:B0:AD:D7:AB:10:C1:E0:01:C7:19:CC:62:0D:BC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251026122849Z", "not_valid_before": "20241026123011Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.022) 0:00:22.029 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.046) 0:00:22.076 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.018) 0:00:22.094 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.037) 0:00:22.131 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.040) 0:00:22.172 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.039) 0:00:22.211 ****** 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.056168", "end": "2024-10-26 08:30:22.861537", "rc": 0, "start": "2024-10-26 08:30:22.805369" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.416) 0:00:22.628 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node2 : ok=49 changed=1 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Saturday 26 October 2024 08:30:22 -0400 (0:00:00.048) 0:00:22.677 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.14s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.04s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.95s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.94s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.70s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.11s /tmp/collections-tHe/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.83s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.76s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Retrieve auto-renew flag ------------------------------------------------ 0.55s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.52s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.51s /tmp/collections-tHe/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-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.44s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.42s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve certificate file stats ----------------------------------------- 0.40s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.39s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.38s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.38s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve key file stats ------------------------------------------------- 0.36s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Verify certificate file owner and group --------------------------------- 0.06s /tmp/collections-tHe/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49