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-y8P/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-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Tuesday 24 September 2024 12:50:28 -0400 (0:00:00.018) 0:00:00.018 ***** ok: [managed-node3] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Tuesday 24 September 2024 12:50:29 -0400 (0:00:00.918) 0:00:00.936 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Tuesday 24 September 2024 12:50:30 -0400 (0:00:00.751) 0:00:01.687 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Tuesday 24 September 2024 12:50:31 -0400 (0:00:00.503) 0:00:02.191 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Tuesday 24 September 2024 12:50:31 -0400 (0:00:00.613) 0:00:02.804 ***** included: /tmp/collections-y8P/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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Tuesday 24 September 2024 12:50:31 -0400 (0:00:00.022) 0:00:02.826 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Tuesday 24 September 2024 12:50:31 -0400 (0:00:00.039) 0:00:02.865 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Tuesday 24 September 2024 12:50:32 -0400 (0:00:00.492) 0:00:03.358 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Tuesday 24 September 2024 12:50:32 -0400 (0:00:00.038) 0:00:03.397 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Tuesday 24 September 2024 12:50:32 -0400 (0:00:00.051) 0:00:03.449 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Tuesday 24 September 2024 12:50:35 -0400 (0:00:02.950) 0:00:06.399 ***** 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" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Tuesday 24 September 2024 12:50:39 -0400 (0:00:04.428) 0:00:10.828 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Tuesday 24 September 2024 12:50:40 -0400 (0:00:00.493) 0:00:11.321 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Tuesday 24 September 2024 12:50:40 -0400 (0:00:00.428) 0:00:11.750 ***** 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": "syslog.target network.target dbus.service basic.target dbus.socket systemd-journald.socket system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "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": "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]", "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": "22406", "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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Tuesday 24 September 2024 12:50:41 -0400 (0:00:01.076) 0:00:12.827 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Tuesday 24 September 2024 12:50:43 -0400 (0:00:01.885) 0:00:14.712 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Tuesday 24 September 2024 12:50:43 -0400 (0:00:00.058) 0:00:14.770 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Tuesday 24 September 2024 12:50:43 -0400 (0:00:00.034) 0:00:14.805 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Tuesday 24 September 2024 12:50:43 -0400 (0:00:00.035) 0:00:14.840 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Tuesday 24 September 2024 12:50:43 -0400 (0:00:00.040) 0:00:14.881 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Tuesday 24 September 2024 12:50:44 -0400 (0:00:00.612) 0:00:15.493 ***** included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 24 September 2024 12:50:44 -0400 (0:00:00.076) 0:00:15.569 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 24 September 2024 12:50:44 -0400 (0:00:00.014) 0:00:15.584 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 24 September 2024 12:50:44 -0400 (0:00:00.035) 0:00:15.619 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 24 September 2024 12:50:44 -0400 (0:00:00.034) 0:00:15.654 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 24 September 2024 12:50:44 -0400 (0:00:00.033) 0:00:15.688 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 24 September 2024 12:50:47 -0400 (0:00:02.839) 0:00:18.527 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196642.6125143, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d087eae0596df4b9d5e4856bf630e2c072bb9080", "ctime": 1727196642.763513, "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": "0640", "mtime": 1727196642.6105144, "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": "2124902601", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 24 September 2024 12:50:47 -0400 (0:00:00.433) 0:00:18.960 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 24 September 2024 12:50:47 -0400 (0:00:00.035) 0:00:18.996 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 24 September 2024 12:50:47 -0400 (0:00:00.047) 0:00:19.044 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 24 September 2024 12:50:47 -0400 (0:00:00.053) 0:00:19.097 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196642.5665147, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "265be3b3d1f638612e15fd323ced7242879a6ec9", "ctime": 1727196642.763513, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6986549, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1727196642.6105144, "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": "3695785207", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 24 September 2024 12:50:48 -0400 (0:00:00.449) 0:00:19.546 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 24 September 2024 12:50:48 -0400 (0:00:00.071) 0:00:19.617 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 24 September 2024 12:50:48 -0400 (0:00:00.061) 0:00:19.679 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "84:9F:C6:E0:F3:7E:69:7B:BC:7E:C8:0D:9E:8E:68:D0:48:31:E7:AE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7F:8B:84:28:18:39:A1:B4:76:7B:25:A6:44:3F:EC:F5:05:A2:6D:1E:89:D5:9F:AD:86:6A:FE:62:0F:06:16:EA:85:FE:85:6C:A8:B7:E3:96:49:FD:81:57:C9:69:65:37:C5:EB:4C:F4:5C:B5:35:91:11:90:86:75:6D:68:FA:E6:B9:3A:67:DB:68:78:0E:0B:44:5D:9C:C0:84:B8:32:86:6B:21:BC:D8:7B:08:96:C3:C2:BF:A1:93:8A:08:F1:2E:12:22:F6:62:A3:7B:B8:B7:12:96:C3:89:8A:B5:DB:7B:27:58:39:EA:00:3C:76:D5:B0:62:87:69:4B:90:59:11:D0:65:A3:E8:7E:BA:51:F7:A6:C5:F0:22:8C:0D:23:C6:F2:33:35:3E:38:40:B6:05:AB:BB:90:53:14:55:FE:68:68:94:1F:E5:DC:6F:C2:1E:B1:5A:66:D7:23:5B:60:58:D0:6E:F4:6E:D1:8C:0F:4C:86:6E:E9:52:2D:7E:29:49:48:E8:7C:F3:BA:BB:98:2E:1E:52:D4:25:D6:60:18:5C:D5:50:58:12:60:42:E9:FC:48:46:61:8C:48:FB:F8:C9:34:F7:C1:A4:29:1F:8F:3B:A7:94:8D:7D:4E:8A:8B:51:16:36:95:C8:B9:F3:03:D2:31:C2:44:3B:27:0B:62:28" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165042Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 24 September 2024 12:50:49 -0400 (0:00:00.826) 0:00:20.505 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "84:9F:C6:E0:F3:7E:69:7B:BC:7E:C8:0D:9E:8E:68:D0:48:31:E7:AE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7F:8B:84:28:18:39:A1:B4:76:7B:25:A6:44:3F:EC:F5:05:A2:6D:1E:89:D5:9F:AD:86:6A:FE:62:0F:06:16:EA:85:FE:85:6C:A8:B7:E3:96:49:FD:81:57:C9:69:65:37:C5:EB:4C:F4:5C:B5:35:91:11:90:86:75:6D:68:FA:E6:B9:3A:67:DB:68:78:0E:0B:44:5D:9C:C0:84:B8:32:86:6B:21:BC:D8:7B:08:96:C3:C2:BF:A1:93:8A:08:F1:2E:12:22:F6:62:A3:7B:B8:B7:12:96:C3:89:8A:B5:DB:7B:27:58:39:EA:00:3C:76:D5:B0:62:87:69:4B:90:59:11:D0:65:A3:E8:7E:BA:51:F7:A6:C5:F0:22:8C:0D:23:C6:F2:33:35:3E:38:40:B6:05:AB:BB:90:53:14:55:FE:68:68:94:1F:E5:DC:6F:C2:1E:B1:5A:66:D7:23:5B:60:58:D0:6E:F4:6E:D1:8C:0F:4C:86:6E:E9:52:2D:7E:29:49:48:E8:7C:F3:BA:BB:98:2E:1E:52:D4:25:D6:60:18:5C:D5:50:58:12:60:42:E9:FC:48:46:61:8C:48:FB:F8:C9:34:F7:C1:A4:29:1F:8F:3B:A7:94:8D:7D:4E:8A:8B:51:16:36:95:C8:B9:F3:03:D2:31:C2:44:3B:27:0B:62:28" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165042Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 24 September 2024 12:50:49 -0400 (0:00:00.050) 0:00:20.556 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 24 September 2024 12:50:49 -0400 (0:00:00.048) 0:00:20.605 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 24 September 2024 12:50:49 -0400 (0:00:00.056) 0:00:20.661 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 24 September 2024 12:50:49 -0400 (0:00:00.055) 0:00:20.717 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 24 September 2024 12:50:49 -0400 (0:00:00.055) 0:00:20.772 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 24 September 2024 12:50:49 -0400 (0:00:00.049) 0:00:20.821 ***** 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.043893", "end": "2024-09-24 12:50:50.122534", "rc": 0, "start": "2024-09-24 12:50:50.078641" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 24 September 2024 12:50:50 -0400 (0:00:00.530) 0:00:21.352 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 24 September 2024 12:50:50 -0400 (0:00:00.043) 0:00:21.396 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 24 September 2024 12:50:50 -0400 (0:00:00.020) 0:00:21.417 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 24 September 2024 12:50:50 -0400 (0:00:00.039) 0:00:21.457 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 24 September 2024 12:50:50 -0400 (0:00:00.035) 0:00:21.492 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 24 September 2024 12:50:50 -0400 (0:00:00.034) 0:00:21.527 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 24 September 2024 12:50:53 -0400 (0:00:02.841) 0:00:24.369 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196643.4305072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a9365949344c61378834735e92c86f56cb00611b", "ctime": 1727196643.467507, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718640, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1727196643.4275072, "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": "1400072946", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 24 September 2024 12:50:53 -0400 (0:00:00.432) 0:00:24.801 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 24 September 2024 12:50:53 -0400 (0:00:00.067) 0:00:24.869 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 24 September 2024 12:50:53 -0400 (0:00:00.060) 0:00:24.929 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 24 September 2024 12:50:53 -0400 (0:00:00.057) 0:00:24.987 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196643.3875074, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "40dbde0cd7f60d400f56e21a4611df39f8937118", "ctime": 1727196643.467507, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718639, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1727196643.4275072, "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": "807515327", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.416) 0:00:25.403 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.038) 0:00:25.442 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.041) 0:00:25.483 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "08:6D:8C:8D:B3:CF:32:01:A8:3B:65:43:16:07:53:A9:B0:C9:59:CC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1D:EE:5E:1D:5E:C4:0A:EA:9B:44:98:C1:A7:BC:9C:68:B0:8A:74:88:8A:AA:66:16:B3:E2:86:86:A9:4D:65:06:E6:D5:30:99:33:5B:64:23:27:70:1F:95:82:DF:10:CF:72:14:D8:96:EC:09:F9:41:38:72:30:A2:66:95:87:4E:6E:6C:F4:34:D1:EE:23:B1:5A:3A:6C:98:4B:DC:9C:20:7F:C0:CC:AD:9E:77:60:63:16:F7:D3:A4:CC:78:30:88:8C:E2:A3:B9:4B:D4:53:1D:CE:1E:B2:FE:C9:0D:03:AE:7B:EE:66:1C:87:2E:26:FB:56:A9:AC:06:62:36:B9:B2:EF:F2:5D:83:0B:14:04:23:A8:B8:5F:77:BA:60:F6:74:2D:82:B1:F6:42:D0:DE:4E:34:13:E3:31:5A:0E:C3:47:0C:C7:3C:06:71:19:0B:33:A2:75:F2:D3:3E:96:16:D3:0A:B1:05:E0:EF:CF:00:76:06:01:90:CB:3F:86:72:22:16:D5:3F:5A:D6:D1:D7:75:B4:55:B2:54:91:5C:40:BD:7D:52:CC:04:8A:3E:49:66:78:29:B5:CB:05:BE:6A:8D:B6:BE:11:5A:CA:F6:19:00:10:8A:8F:50:58:C2:80:99:D2:D6:53:61:B5:17:3F:08:85:E5:BF:72:11:A2:66:7C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165043Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.426) 0:00:25.910 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "08:6D:8C:8D:B3:CF:32:01:A8:3B:65:43:16:07:53:A9:B0:C9:59:CC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1D:EE:5E:1D:5E:C4:0A:EA:9B:44:98:C1:A7:BC:9C:68:B0:8A:74:88:8A:AA:66:16:B3:E2:86:86:A9:4D:65:06:E6:D5:30:99:33:5B:64:23:27:70:1F:95:82:DF:10:CF:72:14:D8:96:EC:09:F9:41:38:72:30:A2:66:95:87:4E:6E:6C:F4:34:D1:EE:23:B1:5A:3A:6C:98:4B:DC:9C:20:7F:C0:CC:AD:9E:77:60:63:16:F7:D3:A4:CC:78:30:88:8C:E2:A3:B9:4B:D4:53:1D:CE:1E:B2:FE:C9:0D:03:AE:7B:EE:66:1C:87:2E:26:FB:56:A9:AC:06:62:36:B9:B2:EF:F2:5D:83:0B:14:04:23:A8:B8:5F:77:BA:60:F6:74:2D:82:B1:F6:42:D0:DE:4E:34:13:E3:31:5A:0E:C3:47:0C:C7:3C:06:71:19:0B:33:A2:75:F2:D3:3E:96:16:D3:0A:B1:05:E0:EF:CF:00:76:06:01:90:CB:3F:86:72:22:16:D5:3F:5A:D6:D1:D7:75:B4:55:B2:54:91:5C:40:BD:7D:52:CC:04:8A:3E:49:66:78:29:B5:CB:05:BE:6A:8D:B6:BE:11:5A:CA:F6:19:00:10:8A:8F:50:58:C2:80:99:D2:D6:53:61:B5:17:3F:08:85:E5:BF:72:11:A2:66:7C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165043Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.046) 0:00:25.957 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.044) 0:00:26.001 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.039) 0:00:26.041 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.037) 0:00:26.079 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 24 September 2024 12:50:54 -0400 (0:00:00.043) 0:00:26.123 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 24 September 2024 12:50:55 -0400 (0:00:00.065) 0:00:26.188 ***** 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.047659", "end": "2024-09-24 12:50:55.401446", "rc": 0, "start": "2024-09-24 12:50:55.353787" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 24 September 2024 12:50:55 -0400 (0:00:00.455) 0:00:26.644 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Tuesday 24 September 2024 12:50:55 -0400 (0:00:00.066) 0:00:26.710 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Tuesday 24 September 2024 12:50:56 -0400 (0:00:00.637) 0:00:27.347 ***** included: /tmp/collections-y8P/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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Tuesday 24 September 2024 12:50:56 -0400 (0:00:00.018) 0:00:27.366 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Tuesday 24 September 2024 12:50:56 -0400 (0:00:00.036) 0:00:27.402 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Tuesday 24 September 2024 12:50:56 -0400 (0:00:00.034) 0:00:27.436 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Tuesday 24 September 2024 12:50:56 -0400 (0:00:00.034) 0:00:27.471 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Tuesday 24 September 2024 12:50:56 -0400 (0:00:00.052) 0:00:27.523 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Tuesday 24 September 2024 12:50:59 -0400 (0:00:02.824) 0:00:30.348 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Tuesday 24 September 2024 12:51:02 -0400 (0:00:02.914) 0:00:33.262 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Tuesday 24 September 2024 12:51:02 -0400 (0:00:00.380) 0:00:33.643 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Tuesday 24 September 2024 12:51:02 -0400 (0:00:00.399) 0:00:34.042 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-09-24 12:50:41 EDT", "ActiveEnterTimestampMonotonic": "238524505", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service syslog.target dbus.socket network.target sysinit.target basic.target systemd-journald.socket system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-09-24 12:50:41 EDT", "AssertTimestampMonotonic": "238512800", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-09-24 12:50:41 EDT", "ConditionTimestampMonotonic": "238512799", "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": "9859", "ExecMainStartTimestamp": "Tue 2024-09-24 12:50:41 EDT", "ExecMainStartTimestampMonotonic": "238513667", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Tue 2024-09-24 12:50:41 EDT] ; stop_time=[n/a] ; pid=9859 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-09-24 12:50:41 EDT", "InactiveExitTimestampMonotonic": "238513763", "InvocationID": "dbdd4015817a43baa1e9c07dd58bb91b", "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": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9859", "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": "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]", "StateChangeTimestamp": "Tue 2024-09-24 12:50:41 EDT", "StateChangeTimestampMonotonic": "238524505", "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": "22406", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Tue 2024-09-24 12:50:41 EDT", "WatchdogTimestampMonotonic": "238524502", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Tuesday 24 September 2024 12:51:03 -0400 (0:00:00.510) 0:00:34.552 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Tuesday 24 September 2024 12:51:04 -0400 (0:00:01.524) 0:00:36.076 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Tuesday 24 September 2024 12:51:04 -0400 (0:00:00.084) 0:00:36.161 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.037) 0:00:36.198 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.043) 0:00:36.242 ***** 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-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.064) 0:00:36.306 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.625) 0:00:36.931 ***** included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.071) 0:00:37.002 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.026) 0:00:37.029 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.051) 0:00:37.080 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.057) 0:00:37.138 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 24 September 2024 12:51:05 -0400 (0:00:00.037) 0:00:37.175 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 24 September 2024 12:51:08 -0400 (0:00:02.838) 0:00:40.014 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196664.0153284, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c760f77d9d6655ffec68f5845d4128f4deacb89d", "ctime": 1727196664.0973277, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718642, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1727196664.0123286, "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": "164550017", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 24 September 2024 12:51:09 -0400 (0:00:00.358) 0:00:40.372 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 24 September 2024 12:51:09 -0400 (0:00:00.046) 0:00:40.419 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 24 September 2024 12:51:09 -0400 (0:00:00.047) 0:00:40.467 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 24 September 2024 12:51:09 -0400 (0:00:00.042) 0:00:40.509 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196663.972329, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a5d55a21471dc2896df3a8bc51e9fea4bcbe20a7", "ctime": 1727196664.0983279, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718641, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1727196664.0123286, "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": "2621046211", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 24 September 2024 12:51:09 -0400 (0:00:00.386) 0:00:40.896 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 24 September 2024 12:51:09 -0400 (0:00:00.043) 0:00:40.940 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 24 September 2024 12:51:09 -0400 (0:00:00.050) 0:00:40.990 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "C5:16:7D:5E:AD:A3:1C:45:5E:99:D8:8F:97:03:8C:31:64:47:1A:9B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "03:24:80:F6:20:54:11:73:AA:D9:1B:1E:B6:DF:21:43:55:C6:8E:CD:36:7F:B0:D0:63:E9:1F:86:DD:66:DE:9F:3B:BF:0C:5D:26:19:26:3D:A2:04:8F:D2:B0:70:BB:7D:98:FF:8D:EF:8A:AF:EE:F0:63:54:6D:D5:B4:E1:C1:BF:94:09:0D:63:89:BE:6F:78:BD:71:49:A9:B3:BA:8A:49:0A:A1:2E:FC:C0:A0:28:05:27:CA:21:21:B0:43:79:19:CF:BE:4C:D6:D8:0D:7C:B7:C1:38:52:A2:30:FB:B6:93:BE:17:0E:1F:E5:68:0A:4C:34:69:C1:16:F8:D2:9C:B9:03:85:85:5D:45:AA:4C:55:D6:40:A3:09:5E:00:B4:B5:5D:0F:96:2D:65:00:8A:29:29:F5:19:E5:F1:D1:20:5B:AB:C7:4F:AA:57:61:59:60:B0:B2:49:00:0D:09:D5:3F:F4:63:00:5C:C8:CF:3C:11:9B:39:C1:49:7E:14:4D:B2:F3:2A:C8:4C:49:33:70:50:28:BA:50:D1:E4:7A:87:24:29:C6:44:91:78:0A:F1:21:BE:80:21:A7:C8:7B:5F:F7:23:26:94:6D:B3:80:DB:65:8D:4D:AA:8D:8B:1B:76:E8:F8:1C:F9:DD:F3:53:2A:2E:F6:91:31:23:FB:6F:F9:97" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165104Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.462) 0:00:41.453 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "C5:16:7D:5E:AD:A3:1C:45:5E:99:D8:8F:97:03:8C:31:64:47:1A:9B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "03:24:80:F6:20:54:11:73:AA:D9:1B:1E:B6:DF:21:43:55:C6:8E:CD:36:7F:B0:D0:63:E9:1F:86:DD:66:DE:9F:3B:BF:0C:5D:26:19:26:3D:A2:04:8F:D2:B0:70:BB:7D:98:FF:8D:EF:8A:AF:EE:F0:63:54:6D:D5:B4:E1:C1:BF:94:09:0D:63:89:BE:6F:78:BD:71:49:A9:B3:BA:8A:49:0A:A1:2E:FC:C0:A0:28:05:27:CA:21:21:B0:43:79:19:CF:BE:4C:D6:D8:0D:7C:B7:C1:38:52:A2:30:FB:B6:93:BE:17:0E:1F:E5:68:0A:4C:34:69:C1:16:F8:D2:9C:B9:03:85:85:5D:45:AA:4C:55:D6:40:A3:09:5E:00:B4:B5:5D:0F:96:2D:65:00:8A:29:29:F5:19:E5:F1:D1:20:5B:AB:C7:4F:AA:57:61:59:60:B0:B2:49:00:0D:09:D5:3F:F4:63:00:5C:C8:CF:3C:11:9B:39:C1:49:7E:14:4D:B2:F3:2A:C8:4C:49:33:70:50:28:BA:50:D1:E4:7A:87:24:29:C6:44:91:78:0A:F1:21:BE:80:21:A7:C8:7B:5F:F7:23:26:94:6D:B3:80:DB:65:8D:4D:AA:8D:8B:1B:76:E8:F8:1C:F9:DD:F3:53:2A:2E:F6:91:31:23:FB:6F:F9:97" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165104Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.048) 0:00:41.502 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.040) 0:00:41.543 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.047) 0:00:41.590 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.037) 0:00:41.628 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.041) 0:00:41.670 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.041) 0:00:41.712 ***** 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.046903", "end": "2024-09-24 12:51:10.895876", "rc": 0, "start": "2024-09-24 12:51:10.848973" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.416) 0:00:42.128 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 24 September 2024 12:51:10 -0400 (0:00:00.038) 0:00:42.167 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 24 September 2024 12:51:11 -0400 (0:00:00.015) 0:00:42.182 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 24 September 2024 12:51:11 -0400 (0:00:00.034) 0:00:42.217 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 24 September 2024 12:51:11 -0400 (0:00:00.034) 0:00:42.252 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 24 September 2024 12:51:11 -0400 (0:00:00.036) 0:00:42.288 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 24 September 2024 12:51:13 -0400 (0:00:02.791) 0:00:45.079 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196664.7363222, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cb37ee5235fd1d9df5366c0a8d24bbe06a8bd845", "ctime": 1727196664.7333224, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718644, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727196664.7333224, "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": "1841594240", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 24 September 2024 12:51:14 -0400 (0:00:00.377) 0:00:45.456 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 24 September 2024 12:51:14 -0400 (0:00:00.040) 0:00:45.496 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 24 September 2024 12:51:14 -0400 (0:00:00.045) 0:00:45.542 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 24 September 2024 12:51:14 -0400 (0:00:00.054) 0:00:45.596 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1727196664.6903226, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "743f29d035cd880bf2e3ec6807ecac8f9c692a4f", "ctime": 1727196664.7333224, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718643, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727196664.7333224, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "3763688535", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 24 September 2024 12:51:14 -0400 (0:00:00.388) 0:00:45.984 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 24 September 2024 12:51:14 -0400 (0:00:00.038) 0:00:46.023 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 24 September 2024 12:51:14 -0400 (0:00:00.042) 0:00:46.065 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "1D:26:CC:5A:9F:2D:F8:77:96:CA:23:A0:C3:14:8E:E3:73:B8:56:60" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "13:F7:90:A3:47:2A:BA:B6:F1:02:15:F6:FF:B0:20:ED:4F:D7:3A:FE:63:62:8A:64:D6:3B:72:25:CF:A2:99:2B:59:FE:35:06:F5:2F:CF:31:00:FD:4E:09:5D:11:41:37:AC:07:21:88:E3:FF:69:7D:E2:6D:ED:3A:28:F0:AF:AB:35:C4:B3:95:D9:0F:00:C1:95:AB:35:D2:E2:D1:58:99:16:AE:8A:2D:83:A9:DD:54:F1:37:AF:9E:78:10:85:9D:26:5F:5C:45:9C:AA:63:0D:BB:1F:25:C4:39:B1:DB:6C:4E:36:01:22:D7:6D:5A:A6:28:A7:EE:88:B2:E9:B7:57:00:16:2B:C6:B5:17:AB:3F:AC:8E:EA:18:25:44:4B:13:FC:8B:3D:E5:0D:22:0B:92:10:A0:76:12:97:6F:76:2F:8B:A2:AB:99:C5:08:6E:F3:8D:38:3F:C6:49:D5:CE:4D:DD:55:53:46:6A:39:D9:DF:4E:E1:F9:01:5C:4B:F8:94:70:4B:22:47:03:5E:29:1A:76:AB:B4:84:35:B2:35:5A:40:6B:F9:57:51:CF:79:1E:3F:51:02:AB:9B:D7:BF:5C:5E:C7:81:17:AD:78:43:41:E2:D3:21:42:51:45:EC:97:E2:06:A0:0F:56:45:FC:A1:04:06:82:B0:FF:F1:00:3D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165104Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 24 September 2024 12:51:15 -0400 (0:00:00.409) 0:00:46.475 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:9D:B0:9D:D2:7B:40:53:9F:2E:BB:3B:F4:E3:F3:62:F5:95:D8:37" }, "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": "1D:26:CC:5A:9F:2D:F8:77:96:CA:23:A0:C3:14:8E:E3:73:B8:56:60" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "13:F7:90:A3:47:2A:BA:B6:F1:02:15:F6:FF:B0:20:ED:4F:D7:3A:FE:63:62:8A:64:D6:3B:72:25:CF:A2:99:2B:59:FE:35:06:F5:2F:CF:31:00:FD:4E:09:5D:11:41:37:AC:07:21:88:E3:FF:69:7D:E2:6D:ED:3A:28:F0:AF:AB:35:C4:B3:95:D9:0F:00:C1:95:AB:35:D2:E2:D1:58:99:16:AE:8A:2D:83:A9:DD:54:F1:37:AF:9E:78:10:85:9D:26:5F:5C:45:9C:AA:63:0D:BB:1F:25:C4:39:B1:DB:6C:4E:36:01:22:D7:6D:5A:A6:28:A7:EE:88:B2:E9:B7:57:00:16:2B:C6:B5:17:AB:3F:AC:8E:EA:18:25:44:4B:13:FC:8B:3D:E5:0D:22:0B:92:10:A0:76:12:97:6F:76:2F:8B:A2:AB:99:C5:08:6E:F3:8D:38:3F:C6:49:D5:CE:4D:DD:55:53:46:6A:39:D9:DF:4E:E1:F9:01:5C:4B:F8:94:70:4B:22:47:03:5E:29:1A:76:AB:B4:84:35:B2:35:5A:40:6B:F9:57:51:CF:79:1E:3F:51:02:AB:9B:D7:BF:5C:5E:C7:81:17:AD:78:43:41:E2:D3:21:42:51:45:EC:97:E2:06:A0:0F:56:45:FC:A1:04:06:82:B0:FF:F1:00:3D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250924165041Z", "not_valid_before": "20240924165104Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 24 September 2024 12:51:15 -0400 (0:00:00.041) 0:00:46.517 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 24 September 2024 12:51:15 -0400 (0:00:00.055) 0:00:46.573 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 24 September 2024 12:51:15 -0400 (0:00:00.058) 0:00:46.631 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 24 September 2024 12:51:15 -0400 (0:00:00.056) 0:00:46.688 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 24 September 2024 12:51:15 -0400 (0:00:00.069) 0:00:46.757 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 24 September 2024 12:51:15 -0400 (0:00:00.098) 0:00:46.856 ***** 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.048874", "end": "2024-09-24 12:51:16.104559", "rc": 0, "start": "2024-09-24 12:51:16.055685" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 24 September 2024 12:51:16 -0400 (0:00:00.484) 0:00:47.340 ***** 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 Tuesday 24 September 2024 12:51:16 -0400 (0:00:00.046) 0:00:47.387 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.43s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.95s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.91s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.84s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.84s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.84s /tmp/collections-y8P/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.82s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.79s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.89s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.52s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.08s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.92s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Parse certificate ------------------------------------------------------- 0.83s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.75s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.64s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.63s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.61s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.61s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Retrieve auto-renew flag ------------------------------------------------ 0.53s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.51s /tmp/collections-y8P/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90