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_fs_attrs.yml *************************************************** 5 plays in /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 14 September 2024 08:26:44 -0400 (0:00:00.018) 0:00:00.018 **** ok: [managed_node3] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 14 September 2024 08:26:44 -0400 (0:00:00.908) 0:00:00.927 **** changed: [managed_node3] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 14 September 2024 08:26:45 -0400 (0:00:00.822) 0:00:01.749 **** changed: [managed_node3] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 14 September 2024 08:26:46 -0400 (0:00:00.463) 0:00:02.213 **** ok: [managed_node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 14 September 2024 08:26:46 -0400 (0:00:00.608) 0:00:02.822 **** included: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 14 September 2024 08:26:46 -0400 (0:00:00.018) 0:00:02.840 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 14 September 2024 08:26:46 -0400 (0:00:00.035) 0:00:02.875 **** ok: [managed_node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 14 September 2024 08:26:47 -0400 (0:00:00.407) 0:00:03.283 **** ok: [managed_node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 14 September 2024 08:26:47 -0400 (0:00:00.037) 0:00:03.321 **** skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (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-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 14 September 2024 08:26:47 -0400 (0:00:00.052) 0:00:03.373 **** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 14 September 2024 08:26:50 -0400 (0:00:02.954) 0:00:06.328 **** changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: xmlrpc-c-client-1.51.0-9.el8.x86_64", "Installed: xmlrpc-c-1.51.0-9.el8.x86_64", "Installed: certmonger-0.79.17-2.el8.x86_64" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 14 September 2024 08:26:54 -0400 (0:00:04.560) 0:00:10.888 **** changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 14 September 2024 08:26:55 -0400 (0:00:00.670) 0:00:11.559 **** changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.434) 0:00:11.993 **** changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network.target system.slice sysinit.target dbus.service systemd-journald.socket syslog.target dbus.socket basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "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": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "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": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; 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", "InactiveExitTimestampMonotonic": "0", "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": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice 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]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 14 September 2024 08:26:57 -0400 (0:00:01.053) 0:00:13.047 **** changed: [managed_node3] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed_node3] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 14 September 2024 08:26:58 -0400 (0:00:01.695) 0:00:14.742 **** skipping: [managed_node3] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.061) 0:00:14.804 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.035) 0:00:14.840 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.038) 0:00:14.878 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.039) 0:00:14.917 **** ok: [managed_node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.637) 0:00:15.554 **** included: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 included: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.065) 0:00:15.619 **** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.013) 0:00:15.632 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.036) 0:00:15.669 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.038) 0:00:15.708 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.049) 0:00:15.757 **** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:27:02 -0400 (0:00:02.801) 0:00:18.558 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316817.887668, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bc34a8b9fe930156374f529baa84ee1ccc088140", "ctime": 1726316817.9456677, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718634, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1726316817.8856678, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "739382844", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.441) 0:00:19.000 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.067) 0:00:19.067 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.077) 0:00:19.145 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.057) 0:00:19.203 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316817.8406677, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "18d8daebdec9784051b31bfbc3b7be44a799f0de", "ctime": 1726316817.946668, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7074497, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1726316817.8856678, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "2036297279", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.468) 0:00:19.672 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.121) 0:00:19.793 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.061) 0:00:19.855 **** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "C6:19:90:48:2D:40:5A:0C:B7:3B:75:FD:C0:3C:88:4C:9A:40:F2:66" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:4B:FB:B0:16:B6:85:4C:0C:F6:17:B1:1C:BB:66:97:C5:4F:4C:1A:AA:1C:73:5A:6B:B1:6C:00:0B:AD:C7:1F:BD:BE:91:C4:33:A8:32:1A:9A:B6:C7:59:11:BB:35:3C:35:A0:61:49:20:EA:50:E1:46:FE:DD:2A:E1:14:BC:B5:90:07:2A:30:67:57:EF:B7:90:97:68:F7:84:F2:A7:2A:24:F6:C4:2C:19:71:D7:79:DE:74:ED:5F:E9:8E:71:E9:31:7B:F3:DC:1E:7E:B3:CA:D3:D9:CA:17:D2:F8:C9:EB:DD:94:D2:B0:98:16:BB:22:DE:D5:C4:9E:91:53:CC:6C:21:A4:9F:16:20:E6:88:7D:A2:90:2C:12:51:46:FA:3F:45:A7:DF:D4:09:38:74:90:D4:90:60:31:02:B2:B3:AA:FE:EA:5A:E0:6D:C3:61:82:25:7F:89:15:4B:87:6D:67:7E:F1:DF:8A:91:D2:68:FE:B5:1D:23:B5:42:E4:CD:94:BB:C5:A8:13:7C:EF:4C:93:29:73:0C:FD:04:91:33:86:5A:8F:5D:6E:A7:C4:89:28:7E:70:5C:D9:2E:E9:4F:05:A5:BB:C9:7A:13:6B:EE:F6:77:3C:33:E0:8B:1D:56:04:D8:7F:5A:B7:DC:77:91:C7:FD:A1:D8:00:B0:CE:C2:39" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122657Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:27:04 -0400 (0:00:00.805) 0:00:20.661 **** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "C6:19:90:48:2D:40:5A:0C:B7:3B:75:FD:C0:3C:88:4C:9A:40:F2:66" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:4B:FB:B0:16:B6:85:4C:0C:F6:17:B1:1C:BB:66:97:C5:4F:4C:1A:AA:1C:73:5A:6B:B1:6C:00:0B:AD:C7:1F:BD:BE:91:C4:33:A8:32:1A:9A:B6:C7:59:11:BB:35:3C:35:A0:61:49:20:EA:50:E1:46:FE:DD:2A:E1:14:BC:B5:90:07:2A:30:67:57:EF:B7:90:97:68:F7:84:F2:A7:2A:24:F6:C4:2C:19:71:D7:79:DE:74:ED:5F:E9:8E:71:E9:31:7B:F3:DC:1E:7E:B3:CA:D3:D9:CA:17:D2:F8:C9:EB:DD:94:D2:B0:98:16:BB:22:DE:D5:C4:9E:91:53:CC:6C:21:A4:9F:16:20:E6:88:7D:A2:90:2C:12:51:46:FA:3F:45:A7:DF:D4:09:38:74:90:D4:90:60:31:02:B2:B3:AA:FE:EA:5A:E0:6D:C3:61:82:25:7F:89:15:4B:87:6D:67:7E:F1:DF:8A:91:D2:68:FE:B5:1D:23:B5:42:E4:CD:94:BB:C5:A8:13:7C:EF:4C:93:29:73:0C:FD:04:91:33:86:5A:8F:5D:6E:A7:C4:89:28:7E:70:5C:D9:2E:E9:4F:05:A5:BB:C9:7A:13:6B:EE:F6:77:3C:33:E0:8B:1D:56:04:D8:7F:5A:B7:DC:77:91:C7:FD:A1:D8:00:B0:CE:C2:39" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122657Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:27:04 -0400 (0:00:00.037) 0:00:20.699 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:27:04 -0400 (0:00:00.042) 0:00:20.741 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:27:04 -0400 (0:00:00.045) 0:00:20.786 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:27:04 -0400 (0:00:00.050) 0:00:20.837 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:27:04 -0400 (0:00:00.046) 0:00:20.884 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:27:04 -0400 (0:00:00.062) 0:00:20.947 **** ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.043286", "end": "2024-09-14 08:27:05.452242", "rc": 0, "start": "2024-09-14 08:27:05.408956" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:27:05 -0400 (0:00:00.513) 0:00:21.461 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:27:05 -0400 (0:00:00.071) 0:00:21.532 **** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:27:05 -0400 (0:00:00.017) 0:00:21.550 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:27:05 -0400 (0:00:00.035) 0:00:21.585 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:27:05 -0400 (0:00:00.034) 0:00:21.620 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:27:05 -0400 (0:00:00.034) 0:00:21.654 **** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:27:08 -0400 (0:00:02.710) 0:00:24.364 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316818.6236682, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "529caaceb2adbef23b6ac370f462efdb145ee793", "ctime": 1726316818.7196681, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718636, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1726316818.6206682, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 1040, "version": "1747456086", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:27:08 -0400 (0:00:00.351) 0:00:24.716 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:27:08 -0400 (0:00:00.047) 0:00:24.763 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:27:08 -0400 (0:00:00.042) 0:00:24.806 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:27:08 -0400 (0:00:00.037) 0:00:24.844 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316818.5816681, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e781268697bd803137721b6fc7940a8f93651b9f", "ctime": 1726316818.7196681, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718635, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1726316818.6206682, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "2641624908", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.364) 0:00:25.209 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.039) 0:00:25.248 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.042) 0:00:25.290 **** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "23:FE:E9:D3:C7:00:EE:8F:05:AA:3D:F1:DA:78:11:0E:34:88:1F:AE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "BB:A6:32:D6:3A:25:F4:34:D1:56:6E:6D:A9:54:AC:24:E5:17:FC:C0:18:94:60:F9:FA:71:11:3A:C3:A8:C7:C8:EF:E6:6B:C3:58:65:A9:1E:99:AE:A9:9D:5A:D7:BF:2A:AA:EA:47:3F:AA:06:DB:25:03:D9:7B:BC:86:48:E1:99:C7:AA:FE:AC:CF:DD:B0:54:F9:53:02:42:CC:12:7C:01:CC:88:CC:B0:9C:84:7D:C9:64:24:EB:69:86:48:43:04:9D:30:E0:92:4E:97:F1:B8:97:5A:11:28:CD:C5:96:E6:4E:4A:03:F8:C3:46:DD:87:20:D1:1F:B7:53:C8:4D:F0:B2:92:A5:EF:0A:CC:FA:D7:67:2E:D2:1B:76:52:8C:DF:6D:93:24:74:19:40:A0:5B:4D:E9:E1:41:A2:3D:B7:7D:44:94:EE:B5:3C:DD:0A:47:1C:4D:DB:50:04:EA:61:B5:3B:33:D2:1B:75:26:34:27:70:9B:EA:B9:CD:61:E8:A4:E5:68:FD:BA:33:E7:43:1F:10:76:8B:FF:73:DD:F5:F1:38:36:95:D8:E6:93:AC:3D:D5:52:12:E6:66:6E:5A:E4:2D:89:3D:8C:38:C2:BA:43:3D:51:92:4B:17:BE:FE:DB:3F:1D:93:50:9B:44:A4:55:B3:CF:DE:72:D4:2F:22:65" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122658Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.422) 0:00:25.713 **** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "23:FE:E9:D3:C7:00:EE:8F:05:AA:3D:F1:DA:78:11:0E:34:88:1F:AE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "BB:A6:32:D6:3A:25:F4:34:D1:56:6E:6D:A9:54:AC:24:E5:17:FC:C0:18:94:60:F9:FA:71:11:3A:C3:A8:C7:C8:EF:E6:6B:C3:58:65:A9:1E:99:AE:A9:9D:5A:D7:BF:2A:AA:EA:47:3F:AA:06:DB:25:03:D9:7B:BC:86:48:E1:99:C7:AA:FE:AC:CF:DD:B0:54:F9:53:02:42:CC:12:7C:01:CC:88:CC:B0:9C:84:7D:C9:64:24:EB:69:86:48:43:04:9D:30:E0:92:4E:97:F1:B8:97:5A:11:28:CD:C5:96:E6:4E:4A:03:F8:C3:46:DD:87:20:D1:1F:B7:53:C8:4D:F0:B2:92:A5:EF:0A:CC:FA:D7:67:2E:D2:1B:76:52:8C:DF:6D:93:24:74:19:40:A0:5B:4D:E9:E1:41:A2:3D:B7:7D:44:94:EE:B5:3C:DD:0A:47:1C:4D:DB:50:04:EA:61:B5:3B:33:D2:1B:75:26:34:27:70:9B:EA:B9:CD:61:E8:A4:E5:68:FD:BA:33:E7:43:1F:10:76:8B:FF:73:DD:F5:F1:38:36:95:D8:E6:93:AC:3D:D5:52:12:E6:66:6E:5A:E4:2D:89:3D:8C:38:C2:BA:43:3D:51:92:4B:17:BE:FE:DB:3F:1D:93:50:9B:44:A4:55:B3:CF:DE:72:D4:2F:22:65" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122658Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.055) 0:00:25.768 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.044) 0:00:25.812 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.045) 0:00:25.858 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.040) 0:00:25.898 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.042) 0:00:25.940 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:27:10 -0400 (0:00:00.041) 0:00:25.982 **** ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.043835", "end": "2024-09-14 08:27:10.374305", "rc": 0, "start": "2024-09-14 08:27:10.330470" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:27:10 -0400 (0:00:00.399) 0:00:26.382 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 14 September 2024 08:27:10 -0400 (0:00:00.043) 0:00:26.425 **** ok: [managed_node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.595) 0:00:27.021 **** included: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.019) 0:00:27.040 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.034) 0:00:27.075 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.035) 0:00:27.111 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.039) 0:00:27.151 **** skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (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-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.066) 0:00:27.217 **** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 14 September 2024 08:27:14 -0400 (0:00:02.780) 0:00:29.997 **** ok: [managed_node3] => (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-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 14 September 2024 08:27:16 -0400 (0:00:02.719) 0:00:32.717 **** ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 14 September 2024 08:27:17 -0400 (0:00:00.436) 0:00:33.153 **** ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 14 September 2024 08:27:17 -0400 (0:00:00.383) 0:00:33.537 **** ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-09-14 08:26:56 EDT", "ActiveEnterTimestampMonotonic": "270917934", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target dbus.service syslog.target sysinit.target basic.target dbus.socket system.slice systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-14 08:26:56 EDT", "AssertTimestampMonotonic": "270907223", "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-09-14 08:26:56 EDT", "ConditionTimestampMonotonic": "270907221", "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": "9392", "ExecMainStartTimestamp": "Sat 2024-09-14 08:26:56 EDT", "ExecMainStartTimestampMonotonic": "270908061", "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-09-14 08:26:56 EDT] ; stop_time=[n/a] ; pid=9392 ; 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-09-14 08:26:56 EDT", "InactiveExitTimestampMonotonic": "270908104", "InvocationID": "d6ca6483161c436bb360f1f317d96018", "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": "9392", "MemoryAccounting": "yes", "MemoryCurrent": "3710976", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-09-14 08:26:56 EDT", "StateChangeTimestampMonotonic": "270917934", "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-09-14 08:26:56 EDT", "WatchdogTimestampMonotonic": "270917932", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 14 September 2024 08:27:18 -0400 (0:00:00.481) 0:00:34.019 **** changed: [managed_node3] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed_node3] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 14 September 2024 08:27:19 -0400 (0:00:01.532) 0:00:35.551 **** skipping: [managed_node3] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 14 September 2024 08:27:19 -0400 (0:00:00.075) 0:00:35.627 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 14 September 2024 08:27:19 -0400 (0:00:00.038) 0:00:35.666 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 14 September 2024 08:27:19 -0400 (0:00:00.045) 0:00:35.711 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 14 September 2024 08:27:19 -0400 (0:00:00.047) 0:00:35.759 **** ok: [managed_node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 14 September 2024 08:27:20 -0400 (0:00:00.616) 0:00:36.375 **** included: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 included: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:27:20 -0400 (0:00:00.070) 0:00:36.446 **** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:27:20 -0400 (0:00:00.047) 0:00:36.494 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:27:20 -0400 (0:00:00.049) 0:00:36.544 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:27:20 -0400 (0:00:00.053) 0:00:36.598 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:27:20 -0400 (0:00:00.093) 0:00:36.692 **** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:27:23 -0400 (0:00:02.902) 0:00:39.594 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316838.6606338, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d61b4e1a5d814e0cc1ad0399cb23080b48c0a9ff", "ctime": 1726316838.7396333, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718638, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1726316838.6586337, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs_mode.crt", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "3248724524", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.370) 0:00:39.965 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.036) 0:00:40.002 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.040) 0:00:40.042 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.038) 0:00:40.081 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316838.618634, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0af01f569ed90c6172e54c3dae007ab73207b487", "ctime": 1726316838.7406332, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718637, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1726316838.6576338, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "2326282321", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.348) 0:00:40.430 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.037) 0:00:40.467 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.040) 0:00:40.507 **** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "7D:DB:1E:CA:FE:CD:43:5A:2B:EB:5A:0A:28:67:90:6F:01:FD:F5:99" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6C:81:1D:AF:76:97:E6:5F:AB:62:A4:C9:F8:AE:5E:62:B6:62:0F:38:AE:3E:AD:09:1F:CA:21:C2:F2:AA:63:32:CC:D7:49:1D:0D:6F:6E:55:46:DA:1E:89:76:CB:A7:BC:0F:84:A7:C9:C0:33:64:47:D2:52:AE:EF:45:02:43:B5:E6:0A:AC:30:09:A1:A3:D1:84:41:48:CC:B7:2E:7C:A6:6A:20:B8:D7:97:4E:4F:81:03:73:A4:3F:2B:ED:21:25:79:0E:27:31:66:AA:42:AB:EF:7D:4A:BE:61:60:F6:CA:43:60:61:95:2C:47:10:AF:37:D7:1F:AD:BA:88:81:24:1E:36:2B:8F:AE:BF:C9:A9:24:6A:36:02:CE:7F:91:10:2C:62:6E:CE:20:2C:DC:01:2E:80:8A:99:35:6B:FE:90:C6:56:09:B9:C5:CC:91:4A:3C:C8:0D:D5:D3:02:02:5B:CE:8A:1C:4E:79:2B:70:EB:46:10:3F:A7:60:48:7E:8D:54:D4:34:8C:B0:EC:D6:C8:BC:F2:5E:FF:F8:A3:4E:70:10:A9:13:95:B2:98:33:5E:39:D4:0A:DD:AE:1D:58:40:5F:4D:E6:57:C5:FA:48:88:3C:23:71:E1:A7:CF:9D:ED:B8:DF:54:62:04:7A:70:4B:E8:2B:FC:24:21:88:87:1F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122718Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.403) 0:00:40.910 **** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "7D:DB:1E:CA:FE:CD:43:5A:2B:EB:5A:0A:28:67:90:6F:01:FD:F5:99" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6C:81:1D:AF:76:97:E6:5F:AB:62:A4:C9:F8:AE:5E:62:B6:62:0F:38:AE:3E:AD:09:1F:CA:21:C2:F2:AA:63:32:CC:D7:49:1D:0D:6F:6E:55:46:DA:1E:89:76:CB:A7:BC:0F:84:A7:C9:C0:33:64:47:D2:52:AE:EF:45:02:43:B5:E6:0A:AC:30:09:A1:A3:D1:84:41:48:CC:B7:2E:7C:A6:6A:20:B8:D7:97:4E:4F:81:03:73:A4:3F:2B:ED:21:25:79:0E:27:31:66:AA:42:AB:EF:7D:4A:BE:61:60:F6:CA:43:60:61:95:2C:47:10:AF:37:D7:1F:AD:BA:88:81:24:1E:36:2B:8F:AE:BF:C9:A9:24:6A:36:02:CE:7F:91:10:2C:62:6E:CE:20:2C:DC:01:2E:80:8A:99:35:6B:FE:90:C6:56:09:B9:C5:CC:91:4A:3C:C8:0D:D5:D3:02:02:5B:CE:8A:1C:4E:79:2B:70:EB:46:10:3F:A7:60:48:7E:8D:54:D4:34:8C:B0:EC:D6:C8:BC:F2:5E:FF:F8:A3:4E:70:10:A9:13:95:B2:98:33:5E:39:D4:0A:DD:AE:1D:58:40:5F:4D:E6:57:C5:FA:48:88:3C:23:71:E1:A7:CF:9D:ED:B8:DF:54:62:04:7A:70:4B:E8:2B:FC:24:21:88:87:1F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122718Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:27:24 -0400 (0:00:00.036) 0:00:40.947 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.038) 0:00:40.985 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.037) 0:00:41.023 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.036) 0:00:41.060 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.042) 0:00:41.103 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.052) 0:00:41.155 **** ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046341", "end": "2024-09-14 08:27:25.541853", "rc": 0, "start": "2024-09-14 08:27:25.495512" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.393) 0:00:41.549 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.043) 0:00:41.593 **** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.019) 0:00:41.613 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.033) 0:00:41.647 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.034) 0:00:41.681 **** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:27:25 -0400 (0:00:00.035) 0:00:41.716 **** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:27:28 -0400 (0:00:02.706) 0:00:44.422 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316839.3966293, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "87528bc29b9a3c0577854ce9cea8e49d07a1ac8e", "ctime": 1726316839.3946292, "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": 1726316839.3946292, "nlink": 1, "path": "/etc/pki/tls/certs/certid_mode.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "2018383614", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:27:28 -0400 (0:00:00.359) 0:00:44.781 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:27:28 -0400 (0:00:00.036) 0:00:44.818 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:27:28 -0400 (0:00:00.047) 0:00:44.866 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:27:28 -0400 (0:00:00.058) 0:00:44.924 **** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726316839.3526297, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "158f0318298b11e9095f68e8501887c510665a18", "ctime": 1726316839.3946292, "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": 1726316839.3946292, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1292955789", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:27:29 -0400 (0:00:00.411) 0:00:45.336 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:27:29 -0400 (0:00:00.042) 0:00:45.378 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:27:29 -0400 (0:00:00.096) 0:00:45.475 **** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "5A:EA:CB:6F:18:D0:55:BF:FA:04:23:5B:B3:06:44:7D:3D:8A:D6:BE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0E:9B:CE:A6:72:69:A8:27:BC:C5:F7:8B:45:64:AD:52:54:E4:85:CB:A4:F5:FF:1B:4F:21:DF:15:FE:88:E9:47:28:E8:2F:29:15:20:95:3F:48:C2:1A:7B:8C:21:0F:EC:E7:A7:E7:F4:C0:C0:0E:BC:96:DA:FB:B0:8D:E1:F9:BA:B6:E8:5A:0A:D0:04:4B:92:48:32:EE:D4:6A:17:89:8B:20:D6:C0:CD:A5:F0:E3:B5:FD:79:97:9D:6C:87:5F:9B:E2:D9:63:11:6B:C0:EF:0D:28:28:36:F1:B6:BA:D2:F6:DE:46:89:01:FA:00:55:BD:A1:AC:09:BC:DE:59:9F:F5:68:B0:63:53:B1:BF:4E:59:E3:89:2F:4B:5C:9C:5B:E3:07:87:12:B9:57:05:02:A5:5D:97:76:92:F6:C3:77:13:2E:10:7A:EA:69:A4:70:12:F4:63:9C:E7:9A:62:AA:7F:25:3D:85:66:D4:85:34:59:4B:98:3A:27:E4:20:6F:19:6E:58:A7:93:77:CC:7E:83:A2:26:F7:36:C5:75:47:59:51:D5:A2:0D:FE:FD:92:01:99:84:33:EE:69:64:8B:FA:58:73:B0:A8:12:C2:42:50:C4:CF:2B:B5:E6:4B:9B:1A:EC:EA:04:92:28:D3:62:42:43:A8:3C:02:1A:A7:7C:3E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122719Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:27:29 -0400 (0:00:00.426) 0:00:45.901 **** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "F1:4A:BE:05:25:D6:84:AA:44:EF:BF:A2:A7:F7:1D:BE:71:14:12:20" }, "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": "5A:EA:CB:6F:18:D0:55:BF:FA:04:23:5B:B3:06:44:7D:3D:8A:D6:BE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0E:9B:CE:A6:72:69:A8:27:BC:C5:F7:8B:45:64:AD:52:54:E4:85:CB:A4:F5:FF:1B:4F:21:DF:15:FE:88:E9:47:28:E8:2F:29:15:20:95:3F:48:C2:1A:7B:8C:21:0F:EC:E7:A7:E7:F4:C0:C0:0E:BC:96:DA:FB:B0:8D:E1:F9:BA:B6:E8:5A:0A:D0:04:4B:92:48:32:EE:D4:6A:17:89:8B:20:D6:C0:CD:A5:F0:E3:B5:FD:79:97:9D:6C:87:5F:9B:E2:D9:63:11:6B:C0:EF:0D:28:28:36:F1:B6:BA:D2:F6:DE:46:89:01:FA:00:55:BD:A1:AC:09:BC:DE:59:9F:F5:68:B0:63:53:B1:BF:4E:59:E3:89:2F:4B:5C:9C:5B:E3:07:87:12:B9:57:05:02:A5:5D:97:76:92:F6:C3:77:13:2E:10:7A:EA:69:A4:70:12:F4:63:9C:E7:9A:62:AA:7F:25:3D:85:66:D4:85:34:59:4B:98:3A:27:E4:20:6F:19:6E:58:A7:93:77:CC:7E:83:A2:26:F7:36:C5:75:47:59:51:D5:A2:0D:FE:FD:92:01:99:84:33:EE:69:64:8B:FA:58:73:B0:A8:12:C2:42:50:C4:CF:2B:B5:E6:4B:9B:1A:EC:EA:04:92:28:D3:62:42:43:A8:3C:02:1A:A7:7C:3E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122657Z", "not_valid_before": "20240914122719Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.082) 0:00:45.983 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.070) 0:00:46.053 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.045) 0:00:46.099 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.041) 0:00:46.140 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.043) 0:00:46.184 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.043) 0:00:46.227 **** ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046055", "end": "2024-09-14 08:27:30.638858", "rc": 0, "start": "2024-09-14 08:27:30.592803" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.432) 0:00:46.659 **** ok: [managed_node3] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node3 : ok=99 changed=8 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 Saturday 14 September 2024 08:27:30 -0400 (0:00:00.056) 0:00:46.716 **** =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.56s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.95s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.90s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.80s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.78s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.72s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.71s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.71s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.70s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.53s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.05s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.91s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Ensure user exists ------------------------------------------------------ 0.82s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Parse certificate ------------------------------------------------------- 0.81s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.67s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Gathering Facts --------------------------------------------------------- 0.64s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.62s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.61s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.60s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Retrieve auto-renew flag ------------------------------------------------ 0.51s /tmp/collections-wob/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143