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-nr7/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-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:2 Saturday 07 December 2024 07:29:47 -0500 (0:00:00.026) 0:00:00.026 ***** ok: [managed-node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 07 December 2024 07:29:48 -0500 (0:00:00.961) 0:00:00.988 ***** included: /tmp/collections-nr7/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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 07 December 2024 07:29:48 -0500 (0:00:00.034) 0:00:01.023 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 07 December 2024 07:29:48 -0500 (0:00:00.053) 0:00:01.076 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 07 December 2024 07:29:49 -0500 (0:00:00.523) 0:00:01.599 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 07 December 2024 07:29:49 -0500 (0:00:00.054) 0:00:01.653 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 07 December 2024 07:29:49 -0500 (0:00:00.075) 0:00:01.729 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 07 December 2024 07:29:52 -0500 (0:00:03.071) 0:00:04.800 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 07 December 2024 07:29:55 -0500 (0:00:02.980) 0:00:07.780 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 07 December 2024 07:29:56 -0500 (0:00:00.634) 0:00:08.415 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 07 December 2024 07:29:56 -0500 (0:00:00.414) 0:00:08.830 ***** 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-12-07 07:29:03 EST", "ActiveEnterTimestampMonotonic": "293484319", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target dbus.service network.target systemd-journald.socket syslog.target sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-12-07 07:29:03 EST", "AssertTimestampMonotonic": "293471999", "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": "Sat 2024-12-07 07:29:03 EST", "ConditionTimestampMonotonic": "293471998", "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": "9028", "ExecMainStartTimestamp": "Sat 2024-12-07 07:29:03 EST", "ExecMainStartTimestampMonotonic": "293472969", "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-12-07 07:29:03 EST] ; stop_time=[n/a] ; pid=9028 ; 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-12-07 07:29:03 EST", "InactiveExitTimestampMonotonic": "293473021", "InvocationID": "866c3d7b45524b8ca30ad7005a009090", "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": "9028", "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": "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-12-07 07:29:03 EST", "StateChangeTimestampMonotonic": "293484319", "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-12-07 07:29:03 EST", "WatchdogTimestampMonotonic": "293484316", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 07 December 2024 07:29:57 -0500 (0:00:00.776) 0:00:09.606 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 07 December 2024 07:29:59 -0500 (0:00:01.848) 0:00:11.455 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 07 December 2024 07:29:59 -0500 (0:00:00.063) 0:00:11.518 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 07 December 2024 07:29:59 -0500 (0:00:00.034) 0:00:11.553 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 07 December 2024 07:29:59 -0500 (0:00:00.036) 0:00:11.590 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 Saturday 07 December 2024 07:29:59 -0500 (0:00:00.041) 0:00:11.631 ***** ok: [managed-node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42 Saturday 07 December 2024 07:30:00 -0500 (0:00:00.660) 0:00:12.291 ***** included: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 included: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 07 December 2024 07:30:00 -0500 (0:00:00.100) 0:00:12.391 ***** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 07 December 2024 07:30:00 -0500 (0:00:00.031) 0:00:12.422 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 07 December 2024 07:30:00 -0500 (0:00:00.085) 0:00:12.508 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 07 December 2024 07:30:00 -0500 (0:00:00.075) 0:00:12.584 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 07 December 2024 07:30:00 -0500 (0:00:00.044) 0:00:12.628 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 07 December 2024 07:30:03 -0500 (0:00:02.945) 0:00:15.573 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1733574598.308214, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b128151f267d49869cc9eb6317a4b8bac898a751", "ctime": 1733574598.305214, "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": 1733574598.305214, "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": "3159274005", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 07 December 2024 07:30:03 -0500 (0:00:00.387) 0:00:15.961 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 07 December 2024 07:30:03 -0500 (0:00:00.039) 0:00:16.000 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 07 December 2024 07:30:03 -0500 (0:00:00.043) 0:00:16.044 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 07 December 2024 07:30:04 -0500 (0:00:00.040) 0:00:16.085 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1733574598.2632136, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7faebe9645936e82c8188fa564ad64994b8254cf", "ctime": 1733574598.305214, "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": 1733574598.305214, "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": "62711256", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 07 December 2024 07:30:04 -0500 (0:00:00.384) 0:00:16.470 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 07 December 2024 07:30:04 -0500 (0:00:00.039) 0:00:16.509 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 07 December 2024 07:30:04 -0500 (0:00:00.044) 0:00:16.554 ***** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:A8:60:EA:C1:76:6E:BE:E6:69:E5:8F:02:6B:3D:5B:2C:02:B2:DB" }, "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": "94:35:7D:64:59:E8:E7:B7:47:A3:9D:47:C2:22:76:56:98:D3:CB:C6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:E2:91:D8:4A:6D:FB:04:68:C0:BC:A2:7E:89:90:6C:68:00:F5:3A:A8:42:FB:67:C7:E8:A1:51:74:A1:7F:7E:F9:B3:32:3A:7C:4F:4F:98:DD:F9:64:73:49:28:12:F1:AA:3C:19:3F:56:BE:BB:32:99:A5:13:7C:60:AD:C5:58:9D:61:4F:A9:04:5B:36:56:29:94:3B:43:45:5C:F4:BB:85:DF:CC:A5:4F:80:75:F0:70:DD:58:41:A6:30:6C:10:3A:17:75:6E:A1:0B:02:37:71:6A:93:A2:CA:84:75:12:C6:4C:35:62:FC:C0:A8:E3:86:D1:95:7B:F8:B9:A6:3D:B4:96:65:75:61:1F:7C:B7:4A:64:97:24:35:A7:36:B5:88:91:E2:4D:F9:C8:A2:54:51:9D:08:EB:A6:E4:37:AB:7E:B0:62:B1:1D:87:BF:7B:0F:7E:60:F6:8D:A1:BD:EB:23:AD:81:2D:35:DA:81:79:70:51:A9:5F:49:D3:92:3E:A9:15:33:E6:6F:A2:3F:C4:64:2A:CC:3F:4A:97:56:55:7A:EF:19:96:E9:5B:8F:52:74:E0:45:F9:D2:B6:E6:93:52:7B:D7:C7:CE:68:D1:2A:56:8D:DC:55:C6:8E:49:7C:55:5B:BB:58:A2:F5:F8:F0:4B:68:1C:37:80:BF:F2:22" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251207122903Z", "not_valid_before": "20241207122958Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.542) 0:00:17.097 ***** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:A8:60:EA:C1:76:6E:BE:E6:69:E5:8F:02:6B:3D:5B:2C:02:B2:DB" }, "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": "94:35:7D:64:59:E8:E7:B7:47:A3:9D:47:C2:22:76:56:98:D3:CB:C6" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:E2:91:D8:4A:6D:FB:04:68:C0:BC:A2:7E:89:90:6C:68:00:F5:3A:A8:42:FB:67:C7:E8:A1:51:74:A1:7F:7E:F9:B3:32:3A:7C:4F:4F:98:DD:F9:64:73:49:28:12:F1:AA:3C:19:3F:56:BE:BB:32:99:A5:13:7C:60:AD:C5:58:9D:61:4F:A9:04:5B:36:56:29:94:3B:43:45:5C:F4:BB:85:DF:CC:A5:4F:80:75:F0:70:DD:58:41:A6:30:6C:10:3A:17:75:6E:A1:0B:02:37:71:6A:93:A2:CA:84:75:12:C6:4C:35:62:FC:C0:A8:E3:86:D1:95:7B:F8:B9:A6:3D:B4:96:65:75:61:1F:7C:B7:4A:64:97:24:35:A7:36:B5:88:91:E2:4D:F9:C8:A2:54:51:9D:08:EB:A6:E4:37:AB:7E:B0:62:B1:1D:87:BF:7B:0F:7E:60:F6:8D:A1:BD:EB:23:AD:81:2D:35:DA:81:79:70:51:A9:5F:49:D3:92:3E:A9:15:33:E6:6F:A2:3F:C4:64:2A:CC:3F:4A:97:56:55:7A:EF:19:96:E9:5B:8F:52:74:E0:45:F9:D2:B6:E6:93:52:7B:D7:C7:CE:68:D1:2A:56:8D:DC:55:C6:8E:49:7C:55:5B:BB:58:A2:F5:F8:F0:4B:68:1C:37:80:BF:F2:22" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251207122903Z", "not_valid_before": "20241207122958Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.038) 0:00:17.135 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.041) 0:00:17.176 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.040) 0:00:17.216 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.040) 0:00:17.257 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.044) 0:00:17.302 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.045) 0:00:17.348 ***** 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.050630", "end": "2024-12-07 07:30:05.771011", "rc": 0, "start": "2024-12-07 07:30:05.720381" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.559) 0:00:17.907 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.059) 0:00:17.966 ***** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.020) 0:00:17.987 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 07 December 2024 07:30:05 -0500 (0:00:00.052) 0:00:18.039 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 07 December 2024 07:30:06 -0500 (0:00:00.081) 0:00:18.121 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 07 December 2024 07:30:06 -0500 (0:00:00.073) 0:00:18.194 ***** 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-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 07 December 2024 07:30:09 -0500 (0:00:02.941) 0:00:21.136 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1733574599.1832216, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "de6f1628a2a96a8d933bb65c4a2b0928a89ba935", "ctime": 1733574599.1812215, "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": 1733574599.1812215, "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": "1251557409", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 07 December 2024 07:30:09 -0500 (0:00:00.473) 0:00:21.609 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 07 December 2024 07:30:09 -0500 (0:00:00.053) 0:00:21.663 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 07 December 2024 07:30:09 -0500 (0:00:00.045) 0:00:21.708 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 07 December 2024 07:30:09 -0500 (0:00:00.062) 0:00:21.771 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1733574599.1392212, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5c82126c34455431ceb09bb22483c6877d2ce0b8", "ctime": 1733574599.1812215, "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": 1733574599.1812215, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "221883251", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.420) 0:00:22.192 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.040) 0:00:22.233 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.043) 0:00:22.277 ***** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:A8:60:EA:C1:76:6E:BE:E6:69:E5:8F:02:6B:3D:5B:2C:02:B2:DB" }, "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": "65:CD:56:09:88:93:42:68:BE:2F:36:E7:C3:4A:DE:8E:57:6B:3A:68" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "51:FA:5B:2C:38:1C:80:A1:DE:3B:BE:B7:D8:AC:28:46:1E:6E:7D:D3:A3:3E:4C:C7:BC:81:9C:AA:61:04:1E:C3:7E:50:C7:0F:07:AE:2C:13:5C:D9:6D:B9:85:87:1B:CF:0C:CE:B9:5B:A3:FB:09:E6:82:57:62:D4:13:7E:BF:FB:00:1B:46:29:25:70:FA:2C:4A:D9:D4:83:CB:82:C7:B8:F4:27:96:5B:5B:26:81:A1:9D:23:A4:01:82:6C:96:5B:28:41:C6:E1:6B:56:00:D0:F7:5E:10:9C:15:48:A6:11:D3:9C:23:52:4C:FC:BC:AC:FB:14:BC:BF:D7:94:9D:9D:80:47:F3:18:15:9F:44:A4:8B:6E:F3:F3:38:96:38:66:2B:53:0C:AE:15:40:9B:63:73:04:E0:5F:A4:AB:6B:20:9A:CB:B6:C0:57:3C:5C:A7:59:93:69:07:09:9F:BB:5C:00:F0:BA:4D:A8:0C:0C:37:75:26:91:9F:9C:B5:58:96:98:FD:11:20:30:76:11:A7:C6:CE:DB:B9:A1:83:7D:CF:94:2D:AD:4C:3D:B4:38:A3:17:6E:77:A5:11:B8:3E:2A:57:A2:7C:02:1A:5E:CB:A9:91:53:D1:DA:8A:5C:3D:1F:5D:C3:CF:81:C7:7A:69:BF:14:A7:29:CC:1D:FE:0A:44" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251207122903Z", "not_valid_before": "20241207122959Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.436) 0:00:22.714 ***** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "DC:A8:60:EA:C1:76:6E:BE:E6:69:E5:8F:02:6B:3D:5B:2C:02:B2:DB" }, "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": "65:CD:56:09:88:93:42:68:BE:2F:36:E7:C3:4A:DE:8E:57:6B:3A:68" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "51:FA:5B:2C:38:1C:80:A1:DE:3B:BE:B7:D8:AC:28:46:1E:6E:7D:D3:A3:3E:4C:C7:BC:81:9C:AA:61:04:1E:C3:7E:50:C7:0F:07:AE:2C:13:5C:D9:6D:B9:85:87:1B:CF:0C:CE:B9:5B:A3:FB:09:E6:82:57:62:D4:13:7E:BF:FB:00:1B:46:29:25:70:FA:2C:4A:D9:D4:83:CB:82:C7:B8:F4:27:96:5B:5B:26:81:A1:9D:23:A4:01:82:6C:96:5B:28:41:C6:E1:6B:56:00:D0:F7:5E:10:9C:15:48:A6:11:D3:9C:23:52:4C:FC:BC:AC:FB:14:BC:BF:D7:94:9D:9D:80:47:F3:18:15:9F:44:A4:8B:6E:F3:F3:38:96:38:66:2B:53:0C:AE:15:40:9B:63:73:04:E0:5F:A4:AB:6B:20:9A:CB:B6:C0:57:3C:5C:A7:59:93:69:07:09:9F:BB:5C:00:F0:BA:4D:A8:0C:0C:37:75:26:91:9F:9C:B5:58:96:98:FD:11:20:30:76:11:A7:C6:CE:DB:B9:A1:83:7D:CF:94:2D:AD:4C:3D:B4:38:A3:17:6E:77:A5:11:B8:3E:2A:57:A2:7C:02:1A:5E:CB:A9:91:53:D1:DA:8A:5C:3D:1F:5D:C3:CF:81:C7:7A:69:BF:14:A7:29:CC:1D:FE:0A:44" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251207122903Z", "not_valid_before": "20241207122959Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.048) 0:00:22.762 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.064) 0:00:22.826 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.060) 0:00:22.887 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.047) 0:00:22.934 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.049) 0:00:22.983 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 07 December 2024 07:30:10 -0500 (0:00:00.050) 0:00:23.033 ***** 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.050310", "end": "2024-12-07 07:30:11.372704", "rc": 0, "start": "2024-12-07 07:30:11.322394" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 07 December 2024 07:30:11 -0500 (0:00:00.536) 0:00:23.570 ***** 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 07 December 2024 07:30:11 -0500 (0:00:00.063) 0:00:23.634 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.07s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.98s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.95s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.94s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.85s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.96s /tmp/collections-nr7/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.78s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.66s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:17 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.63s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Retrieve auto-renew flag ------------------------------------------------ 0.56s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.54s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.54s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.52s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve certificate file stats ----------------------------------------- 0.47s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Parse certificate ------------------------------------------------------- 0.44s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve key file stats ------------------------------------------------- 0.42s /tmp/collections-nr7/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.41s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.39s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.38s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Verify each certificate ------------------------------------------------- 0.10s /tmp/collections-nr7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_no_auto_renew.yml:42