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-vvW/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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 Saturday 12 October 2024 13:26:54 -0400 (0:00:00.020) 0:00:00.020 ****** ok: [managed-node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 12 October 2024 13:26:55 -0400 (0:00:00.945) 0:00:00.965 ****** included: /tmp/collections-vvW/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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 12 October 2024 13:26:55 -0400 (0:00:00.029) 0:00:00.995 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 12 October 2024 13:26:55 -0400 (0:00:00.038) 0:00:01.034 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 12 October 2024 13:26:56 -0400 (0:00:00.491) 0:00:01.525 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 12 October 2024 13:26:56 -0400 (0:00:00.044) 0:00:01.570 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 12 October 2024 13:26:56 -0400 (0:00:00.074) 0:00:01.644 ****** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 12 October 2024 13:26:59 -0400 (0:00:03.289) 0:00:04.934 ****** ok: [managed-node1] => (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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 12 October 2024 13:27:02 -0400 (0:00:03.002) 0:00:07.936 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 12 October 2024 13:27:03 -0400 (0:00:00.499) 0:00:08.436 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 12 October 2024 13:27:03 -0400 (0:00:00.397) 0:00:08.834 ****** ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-10-12 13:26:08 EDT", "ActiveEnterTimestampMonotonic": "450811182", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket basic.target sysinit.target system.slice syslog.target dbus.socket network.target dbus.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-10-12 13:26:08 EDT", "AssertTimestampMonotonic": "450798319", "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-12 13:26:08 EDT", "ConditionTimestampMonotonic": "450798317", "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": "9003", "ExecMainStartTimestamp": "Sat 2024-10-12 13:26:08 EDT", "ExecMainStartTimestampMonotonic": "450799112", "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-12 13:26:08 EDT] ; stop_time=[n/a] ; pid=9003 ; 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-12 13:26:08 EDT", "InactiveExitTimestampMonotonic": "450799242", "InvocationID": "fffe6b03f25d4fcc92357d295ed91755", "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": "9003", "MemoryAccounting": "yes", "MemoryCurrent": "3829760", "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": "system.slice dbus.socket sysinit.target", "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-12 13:26:08 EDT", "StateChangeTimestampMonotonic": "450811182", "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-12 13:26:08 EDT", "WatchdogTimestampMonotonic": "450811179", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 12 October 2024 13:27:04 -0400 (0:00:00.806) 0:00:09.640 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 12 October 2024 13:27:06 -0400 (0:00:02.003) 0:00:11.644 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 12 October 2024 13:27:06 -0400 (0:00:00.081) 0:00:11.725 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 12 October 2024 13:27:06 -0400 (0:00:00.043) 0:00:11.769 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 12 October 2024 13:27:06 -0400 (0:00:00.040) 0:00:11.809 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Saturday 12 October 2024 13:27:06 -0400 (0:00:00.040) 0:00:11.850 ****** ok: [managed-node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42 Saturday 12 October 2024 13:27:07 -0400 (0:00:00.625) 0:00:12.475 ****** included: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 included: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 12 October 2024 13:27:07 -0400 (0:00:00.066) 0:00:12.542 ****** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 12 October 2024 13:27:07 -0400 (0:00:00.014) 0:00:12.556 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 12 October 2024 13:27:07 -0400 (0:00:00.035) 0:00:12.592 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 12 October 2024 13:27:07 -0400 (0:00:00.035) 0:00:12.628 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 12 October 2024 13:27:07 -0400 (0:00:00.036) 0:00:12.664 ****** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 12 October 2024 13:27:10 -0400 (0:00:02.985) 0:00:15.650 ****** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1728754025.394073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8ef12c07e6006e8f1e927a9d29c514c0514bbb6b", "ctime": 1728754025.391073, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718640, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728754025.391073, "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": "2298265121", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 12 October 2024 13:27:10 -0400 (0:00:00.416) 0:00:16.067 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 12 October 2024 13:27:11 -0400 (0:00:00.061) 0:00:16.128 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 12 October 2024 13:27:11 -0400 (0:00:00.053) 0:00:16.182 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 12 October 2024 13:27:11 -0400 (0:00:00.047) 0:00:16.230 ****** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1728754025.3460722, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8e5268cb90f96c0bcb11a0da99281850fd2c8a85", "ctime": 1728754025.391073, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718639, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728754025.391073, "nlink": 1, "path": "/etc/pki/tls/private/mycert_no_auto_renew.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "7334962", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 12 October 2024 13:27:11 -0400 (0:00:00.409) 0:00:16.639 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 12 October 2024 13:27:11 -0400 (0:00:00.043) 0:00:16.683 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 12 October 2024 13:27:11 -0400 (0:00:00.074) 0:00:16.757 ****** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E8:3F:2F:34:17:35:55:BE:E1:CB:D6:34:01:DC:7C:3A:F4:E7:BC:F9" }, "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": "60:1B:E8:EE:5A:A5:2C:BC:E3:DF:21:AD:C8:E1:EB:E2:71:93:26:71" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "53:AE:86:6B:DB:C3:CF:83:AF:A7:3C:2B:8E:D0:F3:37:09:68:64:C4:F7:42:CD:34:DB:98:E3:AB:6D:FD:13:B6:2D:56:9B:8F:3F:FF:7F:7B:10:74:4C:96:8C:C3:AB:AF:43:84:09:B0:B5:57:9B:04:1A:7E:51:66:9A:F5:47:EE:8D:2F:2A:BE:46:C1:08:65:0C:E6:69:38:B6:F0:D9:96:88:F3:60:6E:9B:28:45:7C:EC:47:B7:4A:20:F2:ED:C1:B7:AB:17:42:FB:A2:CA:7A:AE:D2:5F:C2:EF:B0:B2:3F:34:D6:0A:41:D0:6F:32:28:34:F8:A4:D2:F5:10:E6:A8:D8:FB:AF:34:09:79:07:56:90:BE:DE:AF:2F:40:08:DF:AA:AB:D0:D0:FD:A5:B8:72:F0:54:AF:0E:A5:9C:DE:60:03:15:DB:42:F9:FF:A3:6D:F7:EE:F1:1C:F2:C7:F0:5D:D7:43:49:CE:DC:F3:C3:2D:C1:F2:8B:93:D5:B4:CD:86:11:F5:3F:25:A0:96:28:9C:A5:62:F7:EC:3D:73:37:EC:8C:5A:53:DB:BB:18:B9:4A:F1:28:8E:D3:85:9A:72:70:E2:AA:DD:0A:47:61:58:58:95:31:15:19:EC:9A:A7:CC:E1:5B:F6:E7:33:B7:16:26:20:8F:E6:E2:7F:CE:C2:57" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172608Z", "not_valid_before": "20241012172705Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 12 October 2024 13:27:12 -0400 (0:00:00.604) 0:00:17.362 ****** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E8:3F:2F:34:17:35:55:BE:E1:CB:D6:34:01:DC:7C:3A:F4:E7:BC:F9" }, "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": "60:1B:E8:EE:5A:A5:2C:BC:E3:DF:21:AD:C8:E1:EB:E2:71:93:26:71" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "53:AE:86:6B:DB:C3:CF:83:AF:A7:3C:2B:8E:D0:F3:37:09:68:64:C4:F7:42:CD:34:DB:98:E3:AB:6D:FD:13:B6:2D:56:9B:8F:3F:FF:7F:7B:10:74:4C:96:8C:C3:AB:AF:43:84:09:B0:B5:57:9B:04:1A:7E:51:66:9A:F5:47:EE:8D:2F:2A:BE:46:C1:08:65:0C:E6:69:38:B6:F0:D9:96:88:F3:60:6E:9B:28:45:7C:EC:47:B7:4A:20:F2:ED:C1:B7:AB:17:42:FB:A2:CA:7A:AE:D2:5F:C2:EF:B0:B2:3F:34:D6:0A:41:D0:6F:32:28:34:F8:A4:D2:F5:10:E6:A8:D8:FB:AF:34:09:79:07:56:90:BE:DE:AF:2F:40:08:DF:AA:AB:D0:D0:FD:A5:B8:72:F0:54:AF:0E:A5:9C:DE:60:03:15:DB:42:F9:FF:A3:6D:F7:EE:F1:1C:F2:C7:F0:5D:D7:43:49:CE:DC:F3:C3:2D:C1:F2:8B:93:D5:B4:CD:86:11:F5:3F:25:A0:96:28:9C:A5:62:F7:EC:3D:73:37:EC:8C:5A:53:DB:BB:18:B9:4A:F1:28:8E:D3:85:9A:72:70:E2:AA:DD:0A:47:61:58:58:95:31:15:19:EC:9A:A7:CC:E1:5B:F6:E7:33:B7:16:26:20:8F:E6:E2:7F:CE:C2:57" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172608Z", "not_valid_before": "20241012172705Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 12 October 2024 13:27:12 -0400 (0:00:00.048) 0:00:17.410 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 12 October 2024 13:27:12 -0400 (0:00:00.049) 0:00:17.460 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 12 October 2024 13:27:12 -0400 (0:00:00.055) 0:00:17.515 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 12 October 2024 13:27:12 -0400 (0:00:00.055) 0:00:17.571 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 12 October 2024 13:27:12 -0400 (0:00:00.052) 0:00:17.623 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 12 October 2024 13:27:12 -0400 (0:00:00.051) 0:00:17.675 ****** 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.062125", "end": "2024-10-12 13:27:13.063856", "rc": 0, "start": "2024-10-12 13:27:13.001731" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 12 October 2024 13:27:13 -0400 (0:00:00.560) 0:00:18.235 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 12 October 2024 13:27:13 -0400 (0:00:00.047) 0:00:18.283 ****** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 12 October 2024 13:27:13 -0400 (0:00:00.014) 0:00:18.297 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 12 October 2024 13:27:13 -0400 (0:00:00.050) 0:00:18.348 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 12 October 2024 13:27:13 -0400 (0:00:00.049) 0:00:18.397 ****** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 12 October 2024 13:27:13 -0400 (0:00:00.049) 0:00:18.447 ****** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 12 October 2024 13:27:16 -0400 (0:00:03.004) 0:00:21.451 ****** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1728754026.4180923, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4e29c2fd201d41936b554c4aed2d3cbd038b4826", "ctime": 1728754026.4150922, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718642, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728754026.4150922, "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": "3313173419", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 12 October 2024 13:27:16 -0400 (0:00:00.433) 0:00:21.885 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 12 October 2024 13:27:16 -0400 (0:00:00.041) 0:00:21.926 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 12 October 2024 13:27:16 -0400 (0:00:00.041) 0:00:21.968 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 12 October 2024 13:27:16 -0400 (0:00:00.039) 0:00:22.007 ****** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1728754026.3700914, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3f8fdf6afa749097e0c4521ce3c28ed362b5f084", "ctime": 1728754026.4150922, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718641, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1728754026.4150922, "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": "1827192975", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 12 October 2024 13:27:17 -0400 (0:00:00.409) 0:00:22.417 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 12 October 2024 13:27:17 -0400 (0:00:00.059) 0:00:22.476 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 12 October 2024 13:27:17 -0400 (0:00:00.067) 0:00:22.544 ****** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E8:3F:2F:34:17:35:55:BE:E1:CB:D6:34:01:DC:7C:3A:F4:E7:BC:F9" }, "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": "F7:CD:58:16:8E:64:2B:F5:C4:EC:70:E0:88:2B:50:B1:C5:77:E1:87" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "41:3A:2B:D6:DE:1C:3B:42:10:5E:08:C5:E5:72:DA:99:24:E7:2F:A5:E3:F8:21:60:C7:0D:1B:E7:BD:A2:76:75:C7:71:EE:DD:08:E0:3D:BA:0B:5B:82:EB:EE:3E:95:94:E6:BC:98:40:5B:00:92:87:18:90:DD:23:30:2E:C4:DF:6D:0E:18:00:72:34:7B:19:F7:BE:AC:E5:A1:27:6E:E9:49:DB:1B:76:31:BC:B6:74:45:C1:7C:3F:25:19:45:ED:01:BB:B6:F3:C2:F9:54:B6:5E:A7:B8:ED:7F:E2:D6:24:2E:A6:7E:63:E4:4A:E9:CD:22:6E:ED:71:AB:AB:42:12:AD:1C:D8:3F:EE:F7:43:AC:CF:7E:F3:80:CF:E4:ED:6C:91:68:5B:31:43:08:60:9E:D0:39:C5:74:87:CD:52:7F:C6:E7:76:A0:B5:F4:DB:13:B8:A9:FF:65:C5:52:99:21:06:23:E4:3F:FC:18:BC:B4:D7:FD:35:38:A9:37:52:73:BC:5C:B3:31:98:BA:23:71:81:D1:A9:7D:E0:10:13:25:52:2E:37:52:25:41:9F:91:14:12:E1:57:88:15:B0:05:CC:86:DC:05:13:51:BE:4D:D4:3F:4F:86:69:7D:25:E1:C4:97:98:D2:49:FF:1C:12:A8:28:F3:AB:C3:FE:19:D6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172608Z", "not_valid_before": "20241012172706Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 12 October 2024 13:27:17 -0400 (0:00:00.489) 0:00:23.033 ****** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E8:3F:2F:34:17:35:55:BE:E1:CB:D6:34:01:DC:7C:3A:F4:E7:BC:F9" }, "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": "F7:CD:58:16:8E:64:2B:F5:C4:EC:70:E0:88:2B:50:B1:C5:77:E1:87" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "41:3A:2B:D6:DE:1C:3B:42:10:5E:08:C5:E5:72:DA:99:24:E7:2F:A5:E3:F8:21:60:C7:0D:1B:E7:BD:A2:76:75:C7:71:EE:DD:08:E0:3D:BA:0B:5B:82:EB:EE:3E:95:94:E6:BC:98:40:5B:00:92:87:18:90:DD:23:30:2E:C4:DF:6D:0E:18:00:72:34:7B:19:F7:BE:AC:E5:A1:27:6E:E9:49:DB:1B:76:31:BC:B6:74:45:C1:7C:3F:25:19:45:ED:01:BB:B6:F3:C2:F9:54:B6:5E:A7:B8:ED:7F:E2:D6:24:2E:A6:7E:63:E4:4A:E9:CD:22:6E:ED:71:AB:AB:42:12:AD:1C:D8:3F:EE:F7:43:AC:CF:7E:F3:80:CF:E4:ED:6C:91:68:5B:31:43:08:60:9E:D0:39:C5:74:87:CD:52:7F:C6:E7:76:A0:B5:F4:DB:13:B8:A9:FF:65:C5:52:99:21:06:23:E4:3F:FC:18:BC:B4:D7:FD:35:38:A9:37:52:73:BC:5C:B3:31:98:BA:23:71:81:D1:A9:7D:E0:10:13:25:52:2E:37:52:25:41:9F:91:14:12:E1:57:88:15:B0:05:CC:86:DC:05:13:51:BE:4D:D4:3F:4F:86:69:7D:25:E1:C4:97:98:D2:49:FF:1C:12:A8:28:F3:AB:C3:FE:19:D6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172608Z", "not_valid_before": "20241012172706Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 12 October 2024 13:27:17 -0400 (0:00:00.042) 0:00:23.076 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 12 October 2024 13:27:18 -0400 (0:00:00.049) 0:00:23.125 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 12 October 2024 13:27:18 -0400 (0:00:00.046) 0:00:23.171 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 12 October 2024 13:27:18 -0400 (0:00:00.038) 0:00:23.210 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 12 October 2024 13:27:18 -0400 (0:00:00.043) 0:00:23.254 ****** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 12 October 2024 13:27:18 -0400 (0:00:00.044) 0:00:23.298 ****** 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.062223", "end": "2024-10-12 13:27:18.578696", "rc": 0, "start": "2024-10-12 13:27:18.516473" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 12 October 2024 13:27:18 -0400 (0:00:00.437) 0:00:23.736 ****** 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 Saturday 12 October 2024 13:27:18 -0400 (0:00:00.040) 0:00:23.776 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.29s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 3.00s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.00s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.99s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.00s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.95s /tmp/collections-vvW/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.81s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.63s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Parse certificate ------------------------------------------------------- 0.60s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.56s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.50s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.49s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.49s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.44s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Retrieve certificate file stats ----------------------------------------- 0.43s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve certificate file stats ----------------------------------------- 0.42s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.41s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve key file stats ------------------------------------------------- 0.41s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.40s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.08s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152