ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_no_auto_renew.yml ********************************************** 2 plays in /tmp/collections-y8P/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-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 Tuesday 24 September 2024 12:51:19 -0400 (0:00:00.025) 0:00:00.025 ***** ok: [managed-node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Tuesday 24 September 2024 12:51:20 -0400 (0:00:00.908) 0:00:00.934 ***** included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Tuesday 24 September 2024 12:51:20 -0400 (0:00:00.027) 0:00:00.961 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Tuesday 24 September 2024 12:51:20 -0400 (0:00:00.037) 0:00:00.999 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Tuesday 24 September 2024 12:51:20 -0400 (0:00:00.450) 0:00:01.449 ***** ok: [managed-node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Tuesday 24 September 2024 12:51:20 -0400 (0:00:00.058) 0:00:01.508 ***** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Tuesday 24 September 2024 12:51:20 -0400 (0:00:00.078) 0:00:01.587 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Tuesday 24 September 2024 12:51:23 -0400 (0:00:02.932) 0:00:04.519 ***** ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Tuesday 24 September 2024 12:51:26 -0400 (0:00:02.820) 0:00:07.340 ***** ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Tuesday 24 September 2024 12:51:27 -0400 (0:00:00.521) 0:00:07.861 ***** ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Tuesday 24 September 2024 12:51:27 -0400 (0:00:00.370) 0:00:08.232 ***** ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-09-24 12:50:36 EDT", "ActiveEnterTimestampMonotonic": "318772812", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target syslog.target basic.target dbus.socket dbus.service system.slice systemd-journald.socket sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-09-24 12:50:36 EDT", "AssertTimestampMonotonic": "318761486", "Before": "multi-user.target shutdown.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": "Tue 2024-09-24 12:50:36 EDT", "ConditionTimestampMonotonic": "318761485", "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": "9410", "ExecMainStartTimestamp": "Tue 2024-09-24 12:50:36 EDT", "ExecMainStartTimestampMonotonic": "318762433", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Tue 2024-09-24 12:50:36 EDT] ; stop_time=[n/a] ; pid=9410 ; 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": "Tue 2024-09-24 12:50:36 EDT", "InactiveExitTimestampMonotonic": "318762467", "InvocationID": "99253b5ae75040d99074fcfa34e23424", "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": "9410", "MemoryAccounting": "yes", "MemoryCurrent": "3821568", "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": "dbus.socket sysinit.target system.slice", "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": "Tue 2024-09-24 12:50:36 EDT", "StateChangeTimestampMonotonic": "318772812", "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": "Tue 2024-09-24 12:50:36 EDT", "WatchdogTimestampMonotonic": "318772808", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Tuesday 24 September 2024 12:51:28 -0400 (0:00:00.684) 0:00:08.916 ***** changed: [managed-node1] => (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-node1] => (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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Tuesday 24 September 2024 12:51:29 -0400 (0:00:01.709) 0:00:10.626 ***** skipping: [managed-node1] => (item=['cert', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": 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-node1] => (item=['cert', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=['key', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": 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-node1] => (item=['key', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=['ca', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": 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-node1] => (item=['ca', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.069) 0:00:10.695 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.037) 0:00:10.732 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.052) 0:00:10.784 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.051) 0:00:10.836 ***** ok: [managed-node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.596) 0:00:11.433 ***** included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.080) 0:00:11.514 ***** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.013) 0:00:11.527 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.033) 0:00:11.560 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.031) 0:00:11.592 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 24 September 2024 12:51:30 -0400 (0:00:00.033) 0:00:11.626 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 24 September 2024 12:51:33 -0400 (0:00:02.784) 0:00:14.410 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1727196688.896153, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "be153b4fd47715c95964ed2b27a20c97197e9bcd", "ctime": 1727196688.8941529, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718644, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727196688.8941529, "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": "3322807784", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 24 September 2024 12:51:34 -0400 (0:00:00.384) 0:00:14.795 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 24 September 2024 12:51:34 -0400 (0:00:00.036) 0:00:14.832 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 24 September 2024 12:51:34 -0400 (0:00:00.044) 0:00:14.877 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 24 September 2024 12:51:34 -0400 (0:00:00.049) 0:00:14.927 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1727196688.8541527, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "aba77487c2939da2e64af543c170568f71a0faab", "ctime": 1727196688.8941529, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718643, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727196688.8941529, "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": "2469231129", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 24 September 2024 12:51:34 -0400 (0:00:00.413) 0:00:15.340 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 24 September 2024 12:51:34 -0400 (0:00:00.053) 0:00:15.394 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 24 September 2024 12:51:34 -0400 (0:00:00.047) 0:00:15.442 ***** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DE:B7:F6:D3:EE:DF:2D:69:E6:F4:4D:A4:5D:27:BB:84:9D:58:7B:7F" }, "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": "DE:E5:D3:11:DF:1E:6E:04:EE:A5:1C:C3:9E:EB:4E:61:67:BD:9C:B0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "95:BE:82:98:BE:D5:B9:51:4C:0A:FC:94:41:52:1C:CC:C5:E1:5F:5D:F0:1E:34:DD:3B:BF:96:D8:D8:DE:A5:A7:EB:81:40:23:74:76:A1:31:4F:7B:66:66:DA:9B:00:BE:73:A3:E9:49:A5:0E:0A:23:E3:E1:BF:8D:6A:4B:B6:50:7F:91:AC:DB:AB:B9:AE:AE:67:12:3E:FA:6B:70:8F:F6:7E:F4:4E:80:4B:47:C8:73:8B:5F:4A:23:B1:64:BA:71:ED:3D:44:1F:D7:30:5E:02:C9:59:52:B2:EC:76:D3:E2:D5:F1:AF:A6:EA:F2:FF:95:BD:3F:B0:C8:EE:1A:71:D6:4A:9A:9D:D6:8C:3E:F2:A2:8B:45:D9:85:C7:28:57:36:EA:5E:46:1E:E2:B8:AF:C5:D1:7B:7B:31:8A:D4:1F:A6:1A:49:F3:05:72:B5:9C:0E:84:74:01:2E:43:C3:57:79:A5:90:D0:51:13:97:F3:EC:0B:75:25:30:03:43:19:7F:53:61:E0:30:06:D3:AE:C2:7D:16:46:40:72:95:2B:F3:F8:D5:39:02:B9:47:70:3B:FC:14:5C:A7:1B:3E:18:BC:39:18:5D:1E:29:9F:9F:CD:6B:73:64:58:38:26:9C:D6:78:07:03:60:C1:2F:D5:B3:D0:E2:8F:49:C8:62:CE:77" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165036Z", "not_valid_before": "20240924165128Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 24 September 2024 12:51:35 -0400 (0:00:00.509) 0:00:15.952 ***** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DE:B7:F6:D3:EE:DF:2D:69:E6:F4:4D:A4:5D:27:BB:84:9D:58:7B:7F" }, "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": "DE:E5:D3:11:DF:1E:6E:04:EE:A5:1C:C3:9E:EB:4E:61:67:BD:9C:B0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "95:BE:82:98:BE:D5:B9:51:4C:0A:FC:94:41:52:1C:CC:C5:E1:5F:5D:F0:1E:34:DD:3B:BF:96:D8:D8:DE:A5:A7:EB:81:40:23:74:76:A1:31:4F:7B:66:66:DA:9B:00:BE:73:A3:E9:49:A5:0E:0A:23:E3:E1:BF:8D:6A:4B:B6:50:7F:91:AC:DB:AB:B9:AE:AE:67:12:3E:FA:6B:70:8F:F6:7E:F4:4E:80:4B:47:C8:73:8B:5F:4A:23:B1:64:BA:71:ED:3D:44:1F:D7:30:5E:02:C9:59:52:B2:EC:76:D3:E2:D5:F1:AF:A6:EA:F2:FF:95:BD:3F:B0:C8:EE:1A:71:D6:4A:9A:9D:D6:8C:3E:F2:A2:8B:45:D9:85:C7:28:57:36:EA:5E:46:1E:E2:B8:AF:C5:D1:7B:7B:31:8A:D4:1F:A6:1A:49:F3:05:72:B5:9C:0E:84:74:01:2E:43:C3:57:79:A5:90:D0:51:13:97:F3:EC:0B:75:25:30:03:43:19:7F:53:61:E0:30:06:D3:AE:C2:7D:16:46:40:72:95:2B:F3:F8:D5:39:02:B9:47:70:3B:FC:14:5C:A7:1B:3E:18:BC:39:18:5D:1E:29:9F:9F:CD:6B:73:64:58:38:26:9C:D6:78:07:03:60:C1:2F:D5:B3:D0:E2:8F:49:C8:62:CE:77" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165036Z", "not_valid_before": "20240924165128Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 24 September 2024 12:51:35 -0400 (0:00:00.040) 0:00:15.992 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 24 September 2024 12:51:35 -0400 (0:00:00.043) 0:00:16.036 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 24 September 2024 12:51:35 -0400 (0:00:00.044) 0:00:16.081 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 24 September 2024 12:51:35 -0400 (0:00:00.040) 0:00:16.121 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 24 September 2024 12:51:35 -0400 (0:00:00.041) 0:00:16.162 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 24 September 2024 12:51:35 -0400 (0:00:00.040) 0:00:16.203 ***** ok: [managed-node1] => { "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.048659", "end": "2024-09-24 12:51:35.950971", "rc": 0, "start": "2024-09-24 12:51:35.902312" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 24 September 2024 12:51:36 -0400 (0:00:00.493) 0:00:16.696 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 24 September 2024 12:51:36 -0400 (0:00:00.049) 0:00:16.746 ***** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 24 September 2024 12:51:36 -0400 (0:00:00.015) 0:00:16.762 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 24 September 2024 12:51:36 -0400 (0:00:00.045) 0:00:16.807 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 24 September 2024 12:51:36 -0400 (0:00:00.040) 0:00:16.847 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 24 September 2024 12:51:36 -0400 (0:00:00.037) 0:00:16.885 ***** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 24 September 2024 12:51:38 -0400 (0:00:02.782) 0:00:19.668 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1727196689.7301586, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "751db2b2a264ff41750524a8885824da124f7f4f", "ctime": 1727196689.7271585, "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": 1727196689.7271585, "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": "1396240182", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 24 September 2024 12:51:39 -0400 (0:00:00.372) 0:00:20.040 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 24 September 2024 12:51:39 -0400 (0:00:00.055) 0:00:20.096 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 24 September 2024 12:51:39 -0400 (0:00:00.119) 0:00:20.216 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 24 September 2024 12:51:39 -0400 (0:00:00.123) 0:00:20.339 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1727196689.6861584, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9bc1124a2bf71ab6d54aab4a741856334e929b80", "ctime": 1727196689.7271585, "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": 1727196689.7271585, "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": "3764436640", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.531) 0:00:20.871 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.049) 0:00:20.920 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.044) 0:00:20.965 ***** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DE:B7:F6:D3:EE:DF:2D:69:E6:F4:4D:A4:5D:27:BB:84:9D:58:7B:7F" }, "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": "13:A5:50:33:16:14:57:6B:B3:CC:DC:1B:93:78:45:D8:D0:E2:C6:2D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:48:1D:1A:3A:E1:15:76:38:43:0B:96:56:82:FA:65:4C:3C:62:FE:13:00:1D:A6:D5:F4:64:12:9A:AF:3A:3C:BD:8B:10:A3:C2:F1:15:FD:CB:B2:06:B1:1C:D3:D4:56:25:16:F5:2E:37:B0:FE:0B:EC:0D:60:FE:3E:55:A4:D2:A4:0A:8F:35:CB:AA:2C:69:44:B1:FD:2A:5F:AF:95:88:E4:26:74:B0:DB:DE:55:61:EF:99:E3:56:2E:4D:C3:F6:7F:0C:94:FD:32:42:60:41:C0:0F:CB:92:51:5D:7A:AC:A9:B4:CF:51:BA:1F:3A:80:EF:B7:B0:09:8B:76:7C:1C:07:9E:0F:C0:41:AD:B0:93:DA:59:6B:F2:7E:45:12:29:26:1E:44:9F:71:15:31:BC:90:91:BC:E4:5D:4A:67:1A:2D:8D:7C:A5:83:33:8B:5B:9E:33:07:5B:94:DD:94:ED:9E:BC:62:A6:D3:D7:91:83:E4:33:FF:A1:EF:69:8F:93:F3:C6:A4:04:DD:06:8E:D7:59:8E:14:44:8A:CD:D6:0B:C2:69:66:5B:55:C7:A0:74:0F:E7:CB:7F:0E:3E:AB:04:BE:9A:2D:AD:96:24:6D:97:C3:88:C3:AC:54:94:74:82:DE:03:FC:1F:CE:29:A7:DE:0F:D6:8A:B4:28:17:18:F2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165036Z", "not_valid_before": "20240924165129Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.485) 0:00:21.450 ***** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DE:B7:F6:D3:EE:DF:2D:69:E6:F4:4D:A4:5D:27:BB:84:9D:58:7B:7F" }, "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": "13:A5:50:33:16:14:57:6B:B3:CC:DC:1B:93:78:45:D8:D0:E2:C6:2D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:48:1D:1A:3A:E1:15:76:38:43:0B:96:56:82:FA:65:4C:3C:62:FE:13:00:1D:A6:D5:F4:64:12:9A:AF:3A:3C:BD:8B:10:A3:C2:F1:15:FD:CB:B2:06:B1:1C:D3:D4:56:25:16:F5:2E:37:B0:FE:0B:EC:0D:60:FE:3E:55:A4:D2:A4:0A:8F:35:CB:AA:2C:69:44:B1:FD:2A:5F:AF:95:88:E4:26:74:B0:DB:DE:55:61:EF:99:E3:56:2E:4D:C3:F6:7F:0C:94:FD:32:42:60:41:C0:0F:CB:92:51:5D:7A:AC:A9:B4:CF:51:BA:1F:3A:80:EF:B7:B0:09:8B:76:7C:1C:07:9E:0F:C0:41:AD:B0:93:DA:59:6B:F2:7E:45:12:29:26:1E:44:9F:71:15:31:BC:90:91:BC:E4:5D:4A:67:1A:2D:8D:7C:A5:83:33:8B:5B:9E:33:07:5B:94:DD:94:ED:9E:BC:62:A6:D3:D7:91:83:E4:33:FF:A1:EF:69:8F:93:F3:C6:A4:04:DD:06:8E:D7:59:8E:14:44:8A:CD:D6:0B:C2:69:66:5B:55:C7:A0:74:0F:E7:CB:7F:0E:3E:AB:04:BE:9A:2D:AD:96:24:6D:97:C3:88:C3:AC:54:94:74:82:DE:03:FC:1F:CE:29:A7:DE:0F:D6:8A:B4:28:17:18:F2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165036Z", "not_valid_before": "20240924165129Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.036) 0:00:21.487 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.043) 0:00:21.530 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.045) 0:00:21.575 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.053) 0:00:21.629 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 24 September 2024 12:51:40 -0400 (0:00:00.059) 0:00:21.689 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 24 September 2024 12:51:41 -0400 (0:00:00.050) 0:00:21.739 ***** ok: [managed-node1] => { "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.048820", "end": "2024-09-24 12:51:41.439274", "rc": 0, "start": "2024-09-24 12:51:41.390454" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 24 September 2024 12:51:41 -0400 (0:00:00.445) 0:00:22.185 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node1 : ok=49 changed=1 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Tuesday 24 September 2024 12:51:41 -0400 (0:00:00.053) 0:00:22.238 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.93s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.82s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.78s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.78s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.71s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.91s /tmp/collections-y8P/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.68s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.60s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Retrieve key file stats ------------------------------------------------- 0.53s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.52s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.51s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.49s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.49s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.45s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve auto-renew flag ------------------------------------------------ 0.45s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve key file stats ------------------------------------------------- 0.41s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve certificate file stats ----------------------------------------- 0.38s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve certificate file stats ----------------------------------------- 0.37s /tmp/collections-y8P/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.37s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Verify certificate permissions ------------------------------------------ 0.12s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59