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-Cne/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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 23 November 2024 07:30:28 -0500 (0:00:00.019) 0:00:00.019 ***** ok: [managed-node3] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 23 November 2024 07:30:29 -0500 (0:00:00.881) 0:00:00.900 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 23 November 2024 07:30:30 -0500 (0:00:00.643) 0:00:01.544 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 23 November 2024 07:30:30 -0500 (0:00:00.560) 0:00:02.104 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 23 November 2024 07:30:31 -0500 (0:00:00.657) 0:00:02.761 ***** included: /tmp/collections-Cne/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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 23 November 2024 07:30:31 -0500 (0:00:00.019) 0:00:02.781 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 23 November 2024 07:30:31 -0500 (0:00:00.037) 0:00:02.818 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 23 November 2024 07:30:31 -0500 (0:00:00.466) 0:00:03.284 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 23 November 2024 07:30:31 -0500 (0:00:00.046) 0:00:03.331 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 23 November 2024 07:30:31 -0500 (0:00:00.055) 0:00:03.386 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 23 November 2024 07:30:34 -0500 (0:00:03.007) 0:00:06.394 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 23 November 2024 07:30:39 -0500 (0:00:04.341) 0:00:10.736 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 23 November 2024 07:30:39 -0500 (0:00:00.568) 0:00:11.305 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 23 November 2024 07:30:40 -0500 (0:00:00.404) 0:00:11.709 ***** 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 sysinit.target basic.target dbus.service dbus.socket syslog.target system.slice systemd-journald.socket", "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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 23 November 2024 07:30:41 -0500 (0:00:00.927) 0:00:12.637 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 23 November 2024 07:30:43 -0500 (0:00:01.916) 0:00:14.553 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 23 November 2024 07:30:43 -0500 (0:00:00.084) 0:00:14.638 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 23 November 2024 07:30:43 -0500 (0:00:00.057) 0:00:14.695 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 23 November 2024 07:30:43 -0500 (0:00:00.053) 0:00:14.749 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 23 November 2024 07:30:43 -0500 (0:00:00.097) 0:00:14.847 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 23 November 2024 07:30:44 -0500 (0:00:00.801) 0:00:15.648 ***** included: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 23 November 2024 07:30:44 -0500 (0:00:00.082) 0:00:15.731 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 23 November 2024 07:30:44 -0500 (0:00:00.063) 0:00:15.795 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 23 November 2024 07:30:44 -0500 (0:00:00.069) 0:00:15.864 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 23 November 2024 07:30:44 -0500 (0:00:00.089) 0:00:15.953 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 23 November 2024 07:30:44 -0500 (0:00:00.055) 0:00:16.009 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 23 November 2024 07:30:47 -0500 (0:00:02.896) 0:00:18.906 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365042.0619216, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9d26434371377645c1e88deae2f1be9af40f703f", "ctime": 1732365042.1789215, "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": 1732365042.0589216, "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": "354691731", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 23 November 2024 07:30:47 -0500 (0:00:00.444) 0:00:19.350 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 23 November 2024 07:30:47 -0500 (0:00:00.056) 0:00:19.407 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 23 November 2024 07:30:48 -0500 (0:00:00.082) 0:00:19.489 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 23 November 2024 07:30:48 -0500 (0:00:00.058) 0:00:19.548 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365042.0149217, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bacaa8717dd0d31ca5ead7f3557eb4ba601b7cb5", "ctime": 1732365042.1799214, "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": 1732365042.0589216, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 23 November 2024 07:30:48 -0500 (0:00:00.429) 0:00:19.977 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 23 November 2024 07:30:48 -0500 (0:00:00.061) 0:00:20.039 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 23 November 2024 07:30:48 -0500 (0:00:00.058) 0:00:20.098 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "F4:71:8B:E0:6D:BB:1A:A9:E1:6D:8E:54:17:75:FE:86:C5:FB:1F:3E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "40:FE:3B:3F:48:A5:8F:00:F2:BA:E2:AD:6A:33:8F:4C:2A:31:38:C9:4C:15:42:E9:95:C0:04:CD:A3:DA:A7:C1:54:2C:39:FC:D6:91:6A:7F:09:FD:FF:D7:A4:82:FE:87:F9:7B:91:A0:65:72:44:AB:94:A7:35:86:1A:30:A6:5C:AC:CB:60:59:42:1D:FD:67:7C:52:FD:F6:8C:55:E7:44:6C:77:BE:21:8E:CC:85:10:F0:48:6C:8A:3F:18:60:A9:FE:3D:13:6F:E8:24:FD:28:11:4E:59:CA:43:56:9F:85:E3:EC:03:53:14:00:20:5A:71:62:6B:E7:D6:F3:E7:13:56:1D:9A:DF:27:51:60:30:69:56:C2:A3:16:C4:78:6D:26:42:71:E3:52:0C:F0:1D:C9:A8:80:E6:32:0F:E4:88:09:03:FB:10:8B:84:8C:AA:FF:52:27:07:53:49:44:1E:C6:D4:36:93:45:B4:A8:CF:F9:33:A7:C8:EC:95:E6:D0:F0:80:33:61:43:67:D9:9A:6C:E1:5D:36:F3:19:59:60:F0:DA:4F:41:58:15:47:5A:61:83:2D:1C:6D:97:90:81:47:8F:12:6A:68:18:A9:FF:73:CE:75:7F:4E:5A:CF:CD:E1:20:82:5D:E5:D6:4B:D6:9C:A2:0C:79:0D:6E:72:D2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123042Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 23 November 2024 07:30:49 -0500 (0:00:00.682) 0:00:20.780 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "F4:71:8B:E0:6D:BB:1A:A9:E1:6D:8E:54:17:75:FE:86:C5:FB:1F:3E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "40:FE:3B:3F:48:A5:8F:00:F2:BA:E2:AD:6A:33:8F:4C:2A:31:38:C9:4C:15:42:E9:95:C0:04:CD:A3:DA:A7:C1:54:2C:39:FC:D6:91:6A:7F:09:FD:FF:D7:A4:82:FE:87:F9:7B:91:A0:65:72:44:AB:94:A7:35:86:1A:30:A6:5C:AC:CB:60:59:42:1D:FD:67:7C:52:FD:F6:8C:55:E7:44:6C:77:BE:21:8E:CC:85:10:F0:48:6C:8A:3F:18:60:A9:FE:3D:13:6F:E8:24:FD:28:11:4E:59:CA:43:56:9F:85:E3:EC:03:53:14:00:20:5A:71:62:6B:E7:D6:F3:E7:13:56:1D:9A:DF:27:51:60:30:69:56:C2:A3:16:C4:78:6D:26:42:71:E3:52:0C:F0:1D:C9:A8:80:E6:32:0F:E4:88:09:03:FB:10:8B:84:8C:AA:FF:52:27:07:53:49:44:1E:C6:D4:36:93:45:B4:A8:CF:F9:33:A7:C8:EC:95:E6:D0:F0:80:33:61:43:67:D9:9A:6C:E1:5D:36:F3:19:59:60:F0:DA:4F:41:58:15:47:5A:61:83:2D:1C:6D:97:90:81:47:8F:12:6A:68:18:A9:FF:73:CE:75:7F:4E:5A:CF:CD:E1:20:82:5D:E5:D6:4B:D6:9C:A2:0C:79:0D:6E:72:D2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123042Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 23 November 2024 07:30:49 -0500 (0:00:00.062) 0:00:20.843 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 23 November 2024 07:30:49 -0500 (0:00:00.063) 0:00:20.906 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 23 November 2024 07:30:49 -0500 (0:00:00.058) 0:00:20.965 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 23 November 2024 07:30:49 -0500 (0:00:00.056) 0:00:21.022 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 23 November 2024 07:30:49 -0500 (0:00:00.075) 0:00:21.097 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 23 November 2024 07:30:49 -0500 (0:00:00.085) 0:00:21.182 ***** 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.045204", "end": "2024-11-23 07:30:50.253848", "rc": 0, "start": "2024-11-23 07:30:50.208644" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 23 November 2024 07:30:50 -0500 (0:00:00.594) 0:00:21.777 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 23 November 2024 07:30:50 -0500 (0:00:00.040) 0:00:21.817 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 23 November 2024 07:30:50 -0500 (0:00:00.018) 0:00:21.835 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 23 November 2024 07:30:50 -0500 (0:00:00.041) 0:00:21.877 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 23 November 2024 07:30:50 -0500 (0:00:00.049) 0:00:21.926 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 23 November 2024 07:30:50 -0500 (0:00:00.039) 0:00:21.965 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 23 November 2024 07:30:53 -0500 (0:00:02.844) 0:00:24.810 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365042.9639206, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5068ae274c8d35755555096dde3d8cf45b46ada7", "ctime": 1732365042.9959204, "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": 1732365042.9619205, "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": "2897087494", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 23 November 2024 07:30:53 -0500 (0:00:00.384) 0:00:25.195 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 23 November 2024 07:30:53 -0500 (0:00:00.056) 0:00:25.251 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 23 November 2024 07:30:53 -0500 (0:00:00.095) 0:00:25.347 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 23 November 2024 07:30:53 -0500 (0:00:00.074) 0:00:25.421 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365042.9199207, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4a7af06bbfdc839a7259bac2e93ead08dee45b94", "ctime": 1732365042.9959204, "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": 1732365042.9619205, "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": "3845791217", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 23 November 2024 07:30:54 -0500 (0:00:00.424) 0:00:25.846 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 23 November 2024 07:30:54 -0500 (0:00:00.092) 0:00:25.938 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 23 November 2024 07:30:54 -0500 (0:00:00.057) 0:00:25.995 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "00:DF:1E:72:BE:81:59:D0:BA:DA:71:69:21:36:59:66:CA:2F:8F:C4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "61:96:7D:9A:F3:88:79:79:0B:AF:96:46:79:34:C5:7D:11:85:38:A4:1C:42:CA:3B:D5:1F:AB:0A:E8:BF:D4:86:20:AC:EB:81:8B:8B:77:54:58:20:86:65:A5:27:97:2C:F9:63:CF:07:3F:CB:A6:3F:E6:55:FA:30:3F:CB:46:C7:20:41:F1:56:2E:0D:AF:D2:02:19:91:03:25:65:70:88:B5:28:9B:62:7C:86:61:C4:64:DD:03:67:29:D5:A5:02:0D:E5:6C:80:89:37:6E:DA:28:2D:E7:C6:93:3B:96:43:F7:A1:59:B7:40:88:59:00:D2:C5:B5:6E:70:EB:B3:89:20:54:60:00:9D:03:69:D9:0C:64:D3:5C:55:47:9D:39:7A:D8:17:89:C8:6D:F5:14:35:81:33:F7:1A:20:7D:99:0C:AF:B0:C9:C9:F2:C5:10:BA:32:7B:C4:13:9A:4A:E8:1B:A0:55:CE:48:5D:89:3E:70:43:A4:65:06:C1:CC:7F:C5:98:18:D4:01:72:D3:7D:45:33:B8:80:4A:A1:AE:A6:0C:D5:42:A2:02:BC:66:0E:46:2A:19:32:03:17:F4:1E:D2:F7:21:97:B6:FA:E5:02:7F:62:7B:CD:F2:CD:DE:26:E6:CB:20:0F:B7:0C:D4:CE:83:65:C4:04:A1:3A:31:AC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123042Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 23 November 2024 07:30:54 -0500 (0:00:00.467) 0:00:26.463 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "00:DF:1E:72:BE:81:59:D0:BA:DA:71:69:21:36:59:66:CA:2F:8F:C4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "61:96:7D:9A:F3:88:79:79:0B:AF:96:46:79:34:C5:7D:11:85:38:A4:1C:42:CA:3B:D5:1F:AB:0A:E8:BF:D4:86:20:AC:EB:81:8B:8B:77:54:58:20:86:65:A5:27:97:2C:F9:63:CF:07:3F:CB:A6:3F:E6:55:FA:30:3F:CB:46:C7:20:41:F1:56:2E:0D:AF:D2:02:19:91:03:25:65:70:88:B5:28:9B:62:7C:86:61:C4:64:DD:03:67:29:D5:A5:02:0D:E5:6C:80:89:37:6E:DA:28:2D:E7:C6:93:3B:96:43:F7:A1:59:B7:40:88:59:00:D2:C5:B5:6E:70:EB:B3:89:20:54:60:00:9D:03:69:D9:0C:64:D3:5C:55:47:9D:39:7A:D8:17:89:C8:6D:F5:14:35:81:33:F7:1A:20:7D:99:0C:AF:B0:C9:C9:F2:C5:10:BA:32:7B:C4:13:9A:4A:E8:1B:A0:55:CE:48:5D:89:3E:70:43:A4:65:06:C1:CC:7F:C5:98:18:D4:01:72:D3:7D:45:33:B8:80:4A:A1:AE:A6:0C:D5:42:A2:02:BC:66:0E:46:2A:19:32:03:17:F4:1E:D2:F7:21:97:B6:FA:E5:02:7F:62:7B:CD:F2:CD:DE:26:E6:CB:20:0F:B7:0C:D4:CE:83:65:C4:04:A1:3A:31:AC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123042Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.037) 0:00:26.501 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.040) 0:00:26.542 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.038) 0:00:26.581 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.044) 0:00:26.625 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.054) 0:00:26.679 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.061) 0:00:26.741 ***** 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.045205", "end": "2024-11-23 07:30:55.662131", "rc": 0, "start": "2024-11-23 07:30:55.616926" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.442) 0:00:27.183 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 23 November 2024 07:30:55 -0500 (0:00:00.049) 0:00:27.233 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 23 November 2024 07:30:56 -0500 (0:00:00.604) 0:00:27.838 ***** included: /tmp/collections-Cne/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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 23 November 2024 07:30:56 -0500 (0:00:00.018) 0:00:27.856 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 23 November 2024 07:30:56 -0500 (0:00:00.036) 0:00:27.892 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 23 November 2024 07:30:56 -0500 (0:00:00.034) 0:00:27.927 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 23 November 2024 07:30:56 -0500 (0:00:00.036) 0:00:27.963 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 23 November 2024 07:30:56 -0500 (0:00:00.058) 0:00:28.022 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 23 November 2024 07:30:59 -0500 (0:00:02.844) 0:00:30.866 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 23 November 2024 07:31:02 -0500 (0:00:02.931) 0:00:33.797 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 23 November 2024 07:31:02 -0500 (0:00:00.392) 0:00:34.190 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 23 November 2024 07:31:03 -0500 (0:00:00.436) 0:00:34.627 ***** 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-11-23 07:30:41 EST", "ActiveEnterTimestampMonotonic": "304073480", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket dbus.socket basic.target system.slice sysinit.target dbus.service network.target syslog.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-11-23 07:30:41 EST", "AssertTimestampMonotonic": "304061983", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-11-23 07:30:41 EST", "ConditionTimestampMonotonic": "304061981", "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": "9463", "ExecMainStartTimestamp": "Sat 2024-11-23 07:30:41 EST", "ExecMainStartTimestampMonotonic": "304062771", "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-11-23 07:30:41 EST] ; stop_time=[n/a] ; pid=9463 ; 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-11-23 07:30:41 EST", "InactiveExitTimestampMonotonic": "304062808", "InvocationID": "14741e81b44a41f6b463e4f062bfe1d5", "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": "9463", "MemoryAccounting": "yes", "MemoryCurrent": "3731456", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target 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-11-23 07:30:41 EST", "StateChangeTimestampMonotonic": "304073480", "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-11-23 07:30:41 EST", "WatchdogTimestampMonotonic": "304073478", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 23 November 2024 07:31:03 -0500 (0:00:00.543) 0:00:35.171 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 23 November 2024 07:31:05 -0500 (0:00:01.589) 0:00:36.760 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 23 November 2024 07:31:05 -0500 (0:00:00.087) 0:00:36.848 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 23 November 2024 07:31:05 -0500 (0:00:00.043) 0:00:36.891 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 23 November 2024 07:31:05 -0500 (0:00:00.041) 0:00:36.933 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 23 November 2024 07:31:05 -0500 (0:00:00.068) 0:00:37.001 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 23 November 2024 07:31:06 -0500 (0:00:00.642) 0:00:37.643 ***** included: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 23 November 2024 07:31:06 -0500 (0:00:00.108) 0:00:37.752 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 23 November 2024 07:31:06 -0500 (0:00:00.024) 0:00:37.776 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 23 November 2024 07:31:06 -0500 (0:00:00.116) 0:00:37.893 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 23 November 2024 07:31:06 -0500 (0:00:00.062) 0:00:37.955 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 23 November 2024 07:31:06 -0500 (0:00:00.053) 0:00:38.008 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 23 November 2024 07:31:09 -0500 (0:00:02.827) 0:00:40.836 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365064.262895, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f0ab32762cba5fa4f81e02f839013b3f7d8d2002", "ctime": 1732365064.4048948, "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": 1732365064.259895, "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": "3685326603", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 23 November 2024 07:31:09 -0500 (0:00:00.401) 0:00:41.238 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 23 November 2024 07:31:09 -0500 (0:00:00.047) 0:00:41.285 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 23 November 2024 07:31:09 -0500 (0:00:00.060) 0:00:41.345 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 23 November 2024 07:31:09 -0500 (0:00:00.044) 0:00:41.389 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365064.2188952, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c728300ae12d6b915d0b25403ea6ee5423a2d84b", "ctime": 1732365064.4048948, "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": 1732365064.259895, "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": "2507622736", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 23 November 2024 07:31:10 -0500 (0:00:00.420) 0:00:41.810 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 23 November 2024 07:31:10 -0500 (0:00:00.067) 0:00:41.877 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 23 November 2024 07:31:10 -0500 (0:00:00.063) 0:00:41.941 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "BB:7F:38:49:4B:18:73:E4:2F:EA:D8:5E:0C:A1:BE:9D:89:1A:53:6E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "92:0F:FF:C4:DE:E2:CD:44:66:5E:7D:6A:E2:62:1F:4B:77:0C:69:46:74:DE:6F:53:8E:E2:39:1B:7C:4D:55:9B:B3:A9:25:43:11:DC:3B:ED:56:CE:37:87:52:49:A2:5B:8F:EA:38:F3:EA:4F:07:09:7D:91:79:37:BA:B0:FD:E1:F7:5B:A1:00:F7:F3:C4:E8:86:3C:53:A5:FD:80:8C:84:B6:BA:27:8B:48:84:81:F1:11:82:49:7F:57:21:E9:D3:6B:81:FB:CC:58:43:EA:FC:A3:6F:97:36:8B:5D:68:AB:36:4F:AB:B7:34:7B:5A:7C:CE:2E:48:05:DC:05:28:A6:A7:B4:CB:5C:99:D5:C8:2B:55:51:FD:D5:03:77:6D:68:56:85:69:F9:E3:B5:DB:47:10:92:90:88:EE:B8:11:58:F2:BB:5B:9F:26:EE:6F:8F:83:5D:B7:41:3C:60:F6:DE:D3:0D:E6:A8:71:63:75:E5:B8:83:26:05:AB:14:A6:2B:7C:AB:92:0B:0B:60:E2:68:31:56:CC:66:31:83:A3:49:E9:2F:86:9B:69:FE:AD:2F:D9:41:0A:2A:07:CB:A1:03:EA:C4:71:39:A6:89:09:2B:E1:18:D3:98:5D:42:5D:73:1C:12:76:7C:B8:59:BD:3A:9C:33:24:4F:3C:2C:42:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123104Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 23 November 2024 07:31:10 -0500 (0:00:00.485) 0:00:42.426 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "BB:7F:38:49:4B:18:73:E4:2F:EA:D8:5E:0C:A1:BE:9D:89:1A:53:6E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "92:0F:FF:C4:DE:E2:CD:44:66:5E:7D:6A:E2:62:1F:4B:77:0C:69:46:74:DE:6F:53:8E:E2:39:1B:7C:4D:55:9B:B3:A9:25:43:11:DC:3B:ED:56:CE:37:87:52:49:A2:5B:8F:EA:38:F3:EA:4F:07:09:7D:91:79:37:BA:B0:FD:E1:F7:5B:A1:00:F7:F3:C4:E8:86:3C:53:A5:FD:80:8C:84:B6:BA:27:8B:48:84:81:F1:11:82:49:7F:57:21:E9:D3:6B:81:FB:CC:58:43:EA:FC:A3:6F:97:36:8B:5D:68:AB:36:4F:AB:B7:34:7B:5A:7C:CE:2E:48:05:DC:05:28:A6:A7:B4:CB:5C:99:D5:C8:2B:55:51:FD:D5:03:77:6D:68:56:85:69:F9:E3:B5:DB:47:10:92:90:88:EE:B8:11:58:F2:BB:5B:9F:26:EE:6F:8F:83:5D:B7:41:3C:60:F6:DE:D3:0D:E6:A8:71:63:75:E5:B8:83:26:05:AB:14:A6:2B:7C:AB:92:0B:0B:60:E2:68:31:56:CC:66:31:83:A3:49:E9:2F:86:9B:69:FE:AD:2F:D9:41:0A:2A:07:CB:A1:03:EA:C4:71:39:A6:89:09:2B:E1:18:D3:98:5D:42:5D:73:1C:12:76:7C:B8:59:BD:3A:9C:33:24:4F:3C:2C:42:9C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123104Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 23 November 2024 07:31:10 -0500 (0:00:00.038) 0:00:42.464 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.044) 0:00:42.508 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.047) 0:00:42.555 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.055) 0:00:42.611 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.057) 0:00:42.668 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.053) 0:00:42.722 ***** 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.048342", "end": "2024-11-23 07:31:11.656308", "rc": 0, "start": "2024-11-23 07:31:11.607966" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.456) 0:00:43.179 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.041) 0:00:43.220 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.013) 0:00:43.234 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.036) 0:00:43.270 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.035) 0:00:43.306 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 23 November 2024 07:31:11 -0500 (0:00:00.034) 0:00:43.341 ***** 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-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 23 November 2024 07:31:14 -0500 (0:00:02.852) 0:00:46.194 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365065.188894, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "69404e3ec3e05903310f2db6cf6f462f4f79738b", "ctime": 1732365065.186894, "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": 1732365065.186894, "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": "911719378", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 23 November 2024 07:31:15 -0500 (0:00:00.370) 0:00:46.564 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 23 November 2024 07:31:15 -0500 (0:00:00.041) 0:00:46.606 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 23 November 2024 07:31:15 -0500 (0:00:00.053) 0:00:46.660 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 23 November 2024 07:31:15 -0500 (0:00:00.068) 0:00:46.728 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732365065.145894, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cfa604a9461158210373feb2cad278ea4b0098c2", "ctime": 1732365065.186894, "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": 1732365065.186894, "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": "819391364", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 23 November 2024 07:31:15 -0500 (0:00:00.395) 0:00:47.124 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 23 November 2024 07:31:15 -0500 (0:00:00.039) 0:00:47.163 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 23 November 2024 07:31:15 -0500 (0:00:00.046) 0:00:47.210 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "D6:23:29:F0:98:25:6A:73:F2:56:B0:9A:F6:E7:76:37:A8:39:2B:02" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4A:8F:51:20:C4:36:0B:CA:D3:BE:05:9E:AB:04:F0:4F:8D:D2:8C:A9:A6:DF:90:88:B5:23:C1:86:6A:63:FE:5F:A6:2D:90:D3:73:44:17:5E:76:6A:36:F4:EC:4C:6B:0C:41:A6:C5:AF:D1:FE:FC:5E:D5:82:4B:C6:3D:37:3C:32:9B:B7:E8:B6:22:5C:FD:8D:0B:12:29:79:33:DA:A2:1B:2F:66:70:41:82:FE:C8:B4:6E:CF:37:4C:5A:59:8B:75:6D:97:8F:59:4A:15:1F:23:0A:55:3B:31:07:4D:C3:7C:F8:71:AC:E1:0A:DE:80:4B:7F:7C:EA:BA:86:78:B2:2A:04:52:6D:AF:FC:B9:C4:88:92:17:46:A5:8A:10:BA:E4:18:DC:EA:C9:C5:74:35:A7:27:1B:EC:5B:78:D3:EA:B2:5C:A8:9E:DC:82:7B:55:1E:07:1B:CC:76:3C:4B:F6:7B:43:69:50:2D:28:5A:2B:3F:C0:2E:1C:3F:B7:6F:34:4A:3C:2A:40:37:8B:92:06:67:46:7A:E6:41:D9:22:9B:86:1A:BA:D0:4B:8F:35:1D:A3:C3:6E:49:8C:5C:AB:BC:C2:BC:1B:DB:8D:69:46:AB:C7:C1:AD:22:A1:8D:7C:E0:A5:F6:11:31:F1:53:75:EA:52:E8:F6:0C:C6:60:61:78:95" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123105Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 23 November 2024 07:31:16 -0500 (0:00:00.474) 0:00:47.684 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B2:FA:5A:47:E0:CB:05:94:F5:14:AD:73:80:E7:1D:25:9B:D2:53:F5" }, "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": "D6:23:29:F0:98:25:6A:73:F2:56:B0:9A:F6:E7:76:37:A8:39:2B:02" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4A:8F:51:20:C4:36:0B:CA:D3:BE:05:9E:AB:04:F0:4F:8D:D2:8C:A9:A6:DF:90:88:B5:23:C1:86:6A:63:FE:5F:A6:2D:90:D3:73:44:17:5E:76:6A:36:F4:EC:4C:6B:0C:41:A6:C5:AF:D1:FE:FC:5E:D5:82:4B:C6:3D:37:3C:32:9B:B7:E8:B6:22:5C:FD:8D:0B:12:29:79:33:DA:A2:1B:2F:66:70:41:82:FE:C8:B4:6E:CF:37:4C:5A:59:8B:75:6D:97:8F:59:4A:15:1F:23:0A:55:3B:31:07:4D:C3:7C:F8:71:AC:E1:0A:DE:80:4B:7F:7C:EA:BA:86:78:B2:2A:04:52:6D:AF:FC:B9:C4:88:92:17:46:A5:8A:10:BA:E4:18:DC:EA:C9:C5:74:35:A7:27:1B:EC:5B:78:D3:EA:B2:5C:A8:9E:DC:82:7B:55:1E:07:1B:CC:76:3C:4B:F6:7B:43:69:50:2D:28:5A:2B:3F:C0:2E:1C:3F:B7:6F:34:4A:3C:2A:40:37:8B:92:06:67:46:7A:E6:41:D9:22:9B:86:1A:BA:D0:4B:8F:35:1D:A3:C3:6E:49:8C:5C:AB:BC:C2:BC:1B:DB:8D:69:46:AB:C7:C1:AD:22:A1:8D:7C:E0:A5:F6:11:31:F1:53:75:EA:52:E8:F6:0C:C6:60:61:78:95" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251123123041Z", "not_valid_before": "20241123123105Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 23 November 2024 07:31:16 -0500 (0:00:00.077) 0:00:47.762 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 23 November 2024 07:31:16 -0500 (0:00:00.064) 0:00:47.826 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 23 November 2024 07:31:16 -0500 (0:00:00.089) 0:00:47.916 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 23 November 2024 07:31:16 -0500 (0:00:00.092) 0:00:48.008 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 23 November 2024 07:31:16 -0500 (0:00:00.068) 0:00:48.077 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 23 November 2024 07:31:16 -0500 (0:00:00.062) 0:00:48.139 ***** 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.049039", "end": "2024-11-23 07:31:17.055443", "rc": 0, "start": "2024-11-23 07:31:17.006404" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 23 November 2024 07:31:17 -0500 (0:00:00.444) 0:00:48.583 ***** 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 23 November 2024 07:31:17 -0500 (0:00:00.043) 0:00:48.627 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.34s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.01s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.93s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.90s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.85s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.84s /tmp/collections-Cne/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.84s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.83s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.92s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.59s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.93s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.88s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Gathering Facts --------------------------------------------------------- 0.80s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Parse certificate ------------------------------------------------------- 0.68s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Gathering Facts --------------------------------------------------------- 0.66s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Ensure user exists ------------------------------------------------------ 0.64s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.64s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.60s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Retrieve auto-renew flag ------------------------------------------------ 0.59s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.57s /tmp/collections-Cne/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35