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-EpE/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-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 17 August 2024 08:23:40 -0400 (0:00:00.019) 0:00:00.019 ******* ok: [managed_node3] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 17 August 2024 08:23:41 -0400 (0:00:00.956) 0:00:00.975 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 17 August 2024 08:23:42 -0400 (0:00:00.731) 0:00:01.707 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 17 August 2024 08:23:42 -0400 (0:00:00.485) 0:00:02.192 ******* ok: [managed_node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 17 August 2024 08:23:43 -0400 (0:00:00.640) 0:00:02.833 ******* included: /tmp/collections-EpE/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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 17 August 2024 08:23:43 -0400 (0:00:00.020) 0:00:02.853 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 17 August 2024 08:23:43 -0400 (0:00:00.035) 0:00:02.889 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 17 August 2024 08:23:44 -0400 (0:00:00.446) 0:00:03.335 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 17 August 2024 08:23:44 -0400 (0:00:00.056) 0:00:03.392 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 17 August 2024 08:23:44 -0400 (0:00:00.068) 0:00:03.461 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 17 August 2024 08:23:47 -0400 (0:00:03.385) 0:00:06.846 ******* changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: xmlrpc-c-client-1.51.0-9.el8.x86_64", "Installed: xmlrpc-c-1.51.0-9.el8.x86_64", "Installed: certmonger-0.79.17-2.el8.x86_64" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 17 August 2024 08:23:52 -0400 (0:00:05.246) 0:00:12.092 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 17 August 2024 08:23:53 -0400 (0:00:00.858) 0:00:12.951 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 17 August 2024 08:23:54 -0400 (0:00:00.459) 0:00:13.410 ******* 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": "dbus.service basic.target network.target syslog.target systemd-journald.socket dbus.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": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 17 August 2024 08:23:55 -0400 (0:00:01.126) 0:00:14.536 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 17 August 2024 08:23:57 -0400 (0:00:02.047) 0:00:16.583 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 17 August 2024 08:23:57 -0400 (0:00:00.081) 0:00:16.665 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 17 August 2024 08:23:57 -0400 (0:00:00.048) 0:00:16.713 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 17 August 2024 08:23:57 -0400 (0:00:00.042) 0:00:16.756 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 17 August 2024 08:23:57 -0400 (0:00:00.149) 0:00:16.906 ******* ok: [managed_node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 17 August 2024 08:23:58 -0400 (0:00:00.708) 0:00:17.615 ******* included: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 included: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 17 August 2024 08:23:58 -0400 (0:00:00.064) 0:00:17.679 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 17 August 2024 08:23:58 -0400 (0:00:00.013) 0:00:17.693 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 17 August 2024 08:23:58 -0400 (0:00:00.033) 0:00:17.726 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 17 August 2024 08:23:58 -0400 (0:00:00.031) 0:00:17.758 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 17 August 2024 08:23:58 -0400 (0:00:00.031) 0:00:17.790 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 17 August 2024 08:24:01 -0400 (0:00:03.262) 0:00:21.052 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897436.3021133, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4897ec3576944e268885f0a6b028ef2025b1459c", "ctime": 1723897436.3981109, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718632, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723897436.2991133, "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": "64626138", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 17 August 2024 08:24:02 -0400 (0:00:00.452) 0:00:21.505 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 17 August 2024 08:24:02 -0400 (0:00:00.042) 0:00:21.547 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 17 August 2024 08:24:02 -0400 (0:00:00.039) 0:00:21.586 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 17 August 2024 08:24:02 -0400 (0:00:00.040) 0:00:21.626 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897436.2511146, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "110c7e9b3e99b26fe5cac4edbc25051f310a6a3f", "ctime": 1723897436.3991108, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7074497, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723897436.2991133, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "2036297279", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 17 August 2024 08:24:02 -0400 (0:00:00.383) 0:00:22.010 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 17 August 2024 08:24:02 -0400 (0:00:00.035) 0:00:22.046 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 17 August 2024 08:24:02 -0400 (0:00:00.040) 0:00:22.086 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "14:18:A7:E2:D4:5A:36:BC:66:1A:C7:6E:29:89:99:FE:B6:AF:AA:19" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A3:FF:32:CB:A0:05:19:94:4B:9A:7A:7B:37:24:7E:70:24:88:76:5D:51:80:26:02:AE:57:3A:1B:9E:AE:AC:74:1E:C1:6F:38:0E:09:77:24:C1:59:41:3A:AD:06:2E:1C:FA:2E:69:31:31:81:B7:FF:96:6E:49:9D:80:4D:6F:E5:D3:35:3D:2C:9A:B3:D8:68:80:A8:A0:FB:53:41:EB:21:51:A4:ED:FE:EC:90:CC:A8:96:86:41:CD:F7:DE:AC:C5:7C:D8:CD:77:80:5F:27:B1:46:19:9A:FF:A0:75:74:C5:B4:A7:CA:E9:54:69:79:20:77:2E:84:61:40:24:B4:90:9B:95:3B:66:15:FA:9B:D2:2F:33:22:B9:EF:49:4F:59:F6:79:68:2D:21:F1:D7:3B:31:C5:BE:C1:F8:E9:E9:F0:59:DE:F7:C0:5F:E2:A3:0C:2D:D4:F8:B8:81:5D:B3:6C:2C:08:10:CE:10:2B:4D:C8:2A:BB:5E:3F:2F:2A:E6:63:CD:16:C3:F1:30:71:20:63:BD:4B:74:9E:C2:2D:44:AB:3C:A2:DC:90:F6:4D:79:30:5B:20:6E:F6:DD:A1:44:14:5D:E9:89:30:10:BE:56:BF:83:09:21:5B:EB:B9:7F:85:03:6F:CB:1E:77:B9:8C:F3:5E:5F:47:BA:DA:72:60:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122356Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 17 August 2024 08:24:03 -0400 (0:00:00.752) 0:00:22.838 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "14:18:A7:E2:D4:5A:36:BC:66:1A:C7:6E:29:89:99:FE:B6:AF:AA:19" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A3:FF:32:CB:A0:05:19:94:4B:9A:7A:7B:37:24:7E:70:24:88:76:5D:51:80:26:02:AE:57:3A:1B:9E:AE:AC:74:1E:C1:6F:38:0E:09:77:24:C1:59:41:3A:AD:06:2E:1C:FA:2E:69:31:31:81:B7:FF:96:6E:49:9D:80:4D:6F:E5:D3:35:3D:2C:9A:B3:D8:68:80:A8:A0:FB:53:41:EB:21:51:A4:ED:FE:EC:90:CC:A8:96:86:41:CD:F7:DE:AC:C5:7C:D8:CD:77:80:5F:27:B1:46:19:9A:FF:A0:75:74:C5:B4:A7:CA:E9:54:69:79:20:77:2E:84:61:40:24:B4:90:9B:95:3B:66:15:FA:9B:D2:2F:33:22:B9:EF:49:4F:59:F6:79:68:2D:21:F1:D7:3B:31:C5:BE:C1:F8:E9:E9:F0:59:DE:F7:C0:5F:E2:A3:0C:2D:D4:F8:B8:81:5D:B3:6C:2C:08:10:CE:10:2B:4D:C8:2A:BB:5E:3F:2F:2A:E6:63:CD:16:C3:F1:30:71:20:63:BD:4B:74:9E:C2:2D:44:AB:3C:A2:DC:90:F6:4D:79:30:5B:20:6E:F6:DD:A1:44:14:5D:E9:89:30:10:BE:56:BF:83:09:21:5B:EB:B9:7F:85:03:6F:CB:1E:77:B9:8C:F3:5E:5F:47:BA:DA:72:60:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122356Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 17 August 2024 08:24:03 -0400 (0:00:00.057) 0:00:22.895 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 17 August 2024 08:24:03 -0400 (0:00:00.078) 0:00:22.974 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 17 August 2024 08:24:03 -0400 (0:00:00.072) 0:00:23.046 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 17 August 2024 08:24:03 -0400 (0:00:00.062) 0:00:23.109 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 17 August 2024 08:24:03 -0400 (0:00:00.079) 0:00:23.188 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 17 August 2024 08:24:03 -0400 (0:00:00.066) 0:00:23.254 ******* 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.055310", "end": "2024-08-17 08:24:04.446962", "rc": 0, "start": "2024-08-17 08:24:04.391652" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 17 August 2024 08:24:04 -0400 (0:00:00.623) 0:00:23.878 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 17 August 2024 08:24:04 -0400 (0:00:00.131) 0:00:24.010 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 17 August 2024 08:24:04 -0400 (0:00:00.034) 0:00:24.045 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 17 August 2024 08:24:04 -0400 (0:00:00.059) 0:00:24.104 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 17 August 2024 08:24:04 -0400 (0:00:00.042) 0:00:24.147 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 17 August 2024 08:24:04 -0400 (0:00:00.039) 0:00:24.186 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 17 August 2024 08:24:08 -0400 (0:00:03.356) 0:00:27.542 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897437.146092, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f077f6b760dbab5f7d5f8846b53cdbfa8e2d27cb", "ctime": 1723897437.190091, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718634, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723897437.1430922, "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": "3189459312", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 17 August 2024 08:24:08 -0400 (0:00:00.381) 0:00:27.923 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 17 August 2024 08:24:08 -0400 (0:00:00.049) 0:00:27.973 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 17 August 2024 08:24:08 -0400 (0:00:00.052) 0:00:28.025 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 17 August 2024 08:24:08 -0400 (0:00:00.047) 0:00:28.073 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897437.0980933, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d7baaab95e07cd036c80a972759be9dcae1e08e3", "ctime": 1723897437.1910908, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718633, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1723897437.1430922, "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": "667573075", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.407) 0:00:28.480 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.047) 0:00:28.528 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.051) 0:00:28.580 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "B1:D6:02:E2:79:54:32:BC:68:49:2B:3D:C0:22:E5:6C:0B:08:87:6D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "74:EC:58:D0:16:FC:A6:EC:F8:DD:24:4F:E3:92:45:B0:A8:C5:42:B4:A4:5C:41:73:22:CC:D2:F5:92:98:3E:AC:BF:CC:F9:FF:21:66:4F:58:3B:82:67:96:22:B2:2D:AF:ED:A6:EA:2C:96:47:97:22:6D:EC:D8:D8:F9:E5:EA:38:C7:EA:C5:65:EA:01:44:AF:16:F0:1C:0E:2F:6D:4D:80:00:D6:7F:DF:EF:D9:2F:9E:8D:3C:0E:09:9A:D1:E1:D7:A2:15:93:4C:DF:6C:C9:57:4B:C9:CC:7C:17:6E:49:64:3F:03:13:D4:19:23:D9:0A:96:F5:E4:AE:EF:A1:A1:13:37:ED:D6:09:DA:69:AF:75:4B:9C:8E:83:8F:B1:13:3A:01:D0:06:38:AD:9E:60:33:42:D2:73:34:AC:08:3C:2C:EC:8B:75:3E:2E:09:81:96:27:2A:A1:6A:EB:54:3B:41:23:67:18:2E:B1:4A:A6:92:A2:AA:70:40:EC:AD:9E:EA:F9:88:75:B5:FA:64:0B:A2:50:13:FA:F9:57:00:AC:3E:AD:F2:81:3A:72:A1:08:9A:38:98:C6:68:B6:61:F7:BA:78:8D:AA:50:81:4D:58:9A:5D:36:F3:93:FC:07:27:30:95:B2:2C:71:6C:CA:D2:B7:FB:F5:AA:0D:40:4C:5A:9B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122357Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.462) 0:00:29.042 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "B1:D6:02:E2:79:54:32:BC:68:49:2B:3D:C0:22:E5:6C:0B:08:87:6D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "74:EC:58:D0:16:FC:A6:EC:F8:DD:24:4F:E3:92:45:B0:A8:C5:42:B4:A4:5C:41:73:22:CC:D2:F5:92:98:3E:AC:BF:CC:F9:FF:21:66:4F:58:3B:82:67:96:22:B2:2D:AF:ED:A6:EA:2C:96:47:97:22:6D:EC:D8:D8:F9:E5:EA:38:C7:EA:C5:65:EA:01:44:AF:16:F0:1C:0E:2F:6D:4D:80:00:D6:7F:DF:EF:D9:2F:9E:8D:3C:0E:09:9A:D1:E1:D7:A2:15:93:4C:DF:6C:C9:57:4B:C9:CC:7C:17:6E:49:64:3F:03:13:D4:19:23:D9:0A:96:F5:E4:AE:EF:A1:A1:13:37:ED:D6:09:DA:69:AF:75:4B:9C:8E:83:8F:B1:13:3A:01:D0:06:38:AD:9E:60:33:42:D2:73:34:AC:08:3C:2C:EC:8B:75:3E:2E:09:81:96:27:2A:A1:6A:EB:54:3B:41:23:67:18:2E:B1:4A:A6:92:A2:AA:70:40:EC:AD:9E:EA:F9:88:75:B5:FA:64:0B:A2:50:13:FA:F9:57:00:AC:3E:AD:F2:81:3A:72:A1:08:9A:38:98:C6:68:B6:61:F7:BA:78:8D:AA:50:81:4D:58:9A:5D:36:F3:93:FC:07:27:30:95:B2:2C:71:6C:CA:D2:B7:FB:F5:AA:0D:40:4C:5A:9B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122357Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.037) 0:00:29.080 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.040) 0:00:29.120 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.040) 0:00:29.161 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.054) 0:00:29.216 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 17 August 2024 08:24:09 -0400 (0:00:00.064) 0:00:29.280 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 17 August 2024 08:24:10 -0400 (0:00:00.063) 0:00:29.344 ******* 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.054930", "end": "2024-08-17 08:24:10.454648", "rc": 0, "start": "2024-08-17 08:24:10.399718" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 17 August 2024 08:24:10 -0400 (0:00:00.479) 0:00:29.823 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 17 August 2024 08:24:10 -0400 (0:00:00.056) 0:00:29.879 ******* ok: [managed_node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 17 August 2024 08:24:11 -0400 (0:00:00.713) 0:00:30.593 ******* included: /tmp/collections-EpE/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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 17 August 2024 08:24:11 -0400 (0:00:00.023) 0:00:30.616 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 17 August 2024 08:24:11 -0400 (0:00:00.051) 0:00:30.668 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 17 August 2024 08:24:11 -0400 (0:00:00.045) 0:00:30.713 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 17 August 2024 08:24:11 -0400 (0:00:00.046) 0:00:30.759 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 17 August 2024 08:24:11 -0400 (0:00:00.065) 0:00:30.824 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 17 August 2024 08:24:14 -0400 (0:00:03.242) 0:00:34.067 ******* ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 17 August 2024 08:24:17 -0400 (0:00:03.180) 0:00:37.248 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 17 August 2024 08:24:18 -0400 (0:00:00.387) 0:00:37.636 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 17 August 2024 08:24:18 -0400 (0:00:00.391) 0:00:38.027 ******* ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-17 08:23:55 EDT", "ActiveEnterTimestampMonotonic": "228206119", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket systemd-journald.socket basic.target system.slice syslog.target network.target dbus.service sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-17 08:23:55 EDT", "AssertTimestampMonotonic": "228193445", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-17 08:23:55 EDT", "ConditionTimestampMonotonic": "228193443", "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": "9345", "ExecMainStartTimestamp": "Sat 2024-08-17 08:23:55 EDT", "ExecMainStartTimestampMonotonic": "228194443", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-17 08:23:55 EDT] ; stop_time=[n/a] ; pid=9345 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-17 08:23:55 EDT", "InactiveExitTimestampMonotonic": "228200035", "InvocationID": "ae2b9bdeba6e41edb646b7d293975fe5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9345", "MemoryAccounting": "yes", "MemoryCurrent": "3727360", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-08-17 08:23:55 EDT", "StateChangeTimestampMonotonic": "228206119", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-17 08:23:55 EDT", "WatchdogTimestampMonotonic": "228206116", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 17 August 2024 08:24:19 -0400 (0:00:00.536) 0:00:38.564 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 17 August 2024 08:24:20 -0400 (0:00:01.381) 0:00:39.946 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 17 August 2024 08:24:20 -0400 (0:00:00.082) 0:00:40.028 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 17 August 2024 08:24:20 -0400 (0:00:00.043) 0:00:40.072 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 17 August 2024 08:24:20 -0400 (0:00:00.035) 0:00:40.107 ******* 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-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 17 August 2024 08:24:20 -0400 (0:00:00.039) 0:00:40.147 ******* ok: [managed_node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 17 August 2024 08:24:21 -0400 (0:00:00.696) 0:00:40.843 ******* included: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 included: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 17 August 2024 08:24:21 -0400 (0:00:00.062) 0:00:40.906 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 17 August 2024 08:24:21 -0400 (0:00:00.015) 0:00:40.921 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 17 August 2024 08:24:21 -0400 (0:00:00.032) 0:00:40.954 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 17 August 2024 08:24:21 -0400 (0:00:00.039) 0:00:40.994 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 17 August 2024 08:24:21 -0400 (0:00:00.038) 0:00:41.033 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 17 August 2024 08:24:25 -0400 (0:00:03.464) 0:00:44.497 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897459.830522, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b733d445ec39159e83bdf41853529f8d98cfd34d", "ctime": 1723897459.8645213, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718636, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723897459.827522, "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": "2853772532", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 17 August 2024 08:24:25 -0400 (0:00:00.395) 0:00:44.892 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 17 August 2024 08:24:25 -0400 (0:00:00.039) 0:00:44.932 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 17 August 2024 08:24:25 -0400 (0:00:00.042) 0:00:44.975 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 17 August 2024 08:24:25 -0400 (0:00:00.039) 0:00:45.014 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897459.7735236, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "99ca22dc8ab0887203bec376110f7595bb971517", "ctime": 1723897459.8655212, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718635, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1723897459.827522, "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": "2334524487", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.391) 0:00:45.406 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.036) 0:00:45.443 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.039) 0:00:45.483 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "52:9E:0D:9C:46:D5:D0:24:C8:6C:7F:6F:B2:B1:30:97:78:82:15:1E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "E1:C2:11:58:BC:2C:9F:D3:0C:83:75:53:BD:D8:4C:32:03:D0:18:51:0D:D7:89:37:79:58:47:E6:D0:17:66:47:25:A4:49:23:9A:6E:90:CD:7C:91:09:9A:EB:C6:A9:AA:7E:A7:AD:0C:8C:9D:F6:E6:16:6C:BB:34:DD:A7:98:4D:3D:D4:76:18:B1:BF:E3:6A:37:A6:95:20:A8:4A:29:2C:DC:CC:43:04:6A:B3:66:3A:18:B9:D0:A5:80:E4:9E:ED:FB:D2:24:4A:D1:D5:25:09:D9:7E:C9:25:E2:F4:AC:40:79:0E:7F:C3:52:C1:52:B9:C1:DE:02:98:94:F0:67:F2:3A:ED:DF:B0:18:C7:CC:E7:7D:79:0B:44:B1:E6:49:51:7B:28:F7:7B:E1:84:B3:41:94:DB:59:0C:2C:50:DD:15:41:A8:A1:9D:96:4A:68:2B:89:A3:9C:CB:AE:1D:43:0D:E4:EF:84:9C:59:BE:0F:27:5D:96:01:B1:C5:CC:93:CF:D5:EE:F5:80:C2:A2:48:BE:69:EE:B9:48:07:D7:59:67:CB:9E:2E:36:24:C9:8E:84:7B:52:B9:23:E7:F3:99:55:BE:F7:E9:42:3D:6F:29:B6:37:6A:7F:A5:4A:38:FA:C2:73:AD:43:82:D1:3C:E5:2B:F9:E9:8B:D0:9A:58:B1:7C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122419Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.488) 0:00:45.971 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "52:9E:0D:9C:46:D5:D0:24:C8:6C:7F:6F:B2:B1:30:97:78:82:15:1E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "E1:C2:11:58:BC:2C:9F:D3:0C:83:75:53:BD:D8:4C:32:03:D0:18:51:0D:D7:89:37:79:58:47:E6:D0:17:66:47:25:A4:49:23:9A:6E:90:CD:7C:91:09:9A:EB:C6:A9:AA:7E:A7:AD:0C:8C:9D:F6:E6:16:6C:BB:34:DD:A7:98:4D:3D:D4:76:18:B1:BF:E3:6A:37:A6:95:20:A8:4A:29:2C:DC:CC:43:04:6A:B3:66:3A:18:B9:D0:A5:80:E4:9E:ED:FB:D2:24:4A:D1:D5:25:09:D9:7E:C9:25:E2:F4:AC:40:79:0E:7F:C3:52:C1:52:B9:C1:DE:02:98:94:F0:67:F2:3A:ED:DF:B0:18:C7:CC:E7:7D:79:0B:44:B1:E6:49:51:7B:28:F7:7B:E1:84:B3:41:94:DB:59:0C:2C:50:DD:15:41:A8:A1:9D:96:4A:68:2B:89:A3:9C:CB:AE:1D:43:0D:E4:EF:84:9C:59:BE:0F:27:5D:96:01:B1:C5:CC:93:CF:D5:EE:F5:80:C2:A2:48:BE:69:EE:B9:48:07:D7:59:67:CB:9E:2E:36:24:C9:8E:84:7B:52:B9:23:E7:F3:99:55:BE:F7:E9:42:3D:6F:29:B6:37:6A:7F:A5:4A:38:FA:C2:73:AD:43:82:D1:3C:E5:2B:F9:E9:8B:D0:9A:58:B1:7C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122419Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.043) 0:00:46.014 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.064) 0:00:46.079 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.052) 0:00:46.132 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.044) 0:00:46.176 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.043) 0:00:46.220 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 17 August 2024 08:24:26 -0400 (0:00:00.040) 0:00:46.260 ******* 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.061891", "end": "2024-08-17 08:24:27.367516", "rc": 0, "start": "2024-08-17 08:24:27.305625" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 17 August 2024 08:24:27 -0400 (0:00:00.477) 0:00:46.737 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 17 August 2024 08:24:27 -0400 (0:00:00.039) 0:00:46.777 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 17 August 2024 08:24:27 -0400 (0:00:00.014) 0:00:46.792 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 17 August 2024 08:24:27 -0400 (0:00:00.050) 0:00:46.843 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 17 August 2024 08:24:27 -0400 (0:00:00.078) 0:00:46.922 ******* skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 17 August 2024 08:24:27 -0400 (0:00:00.050) 0:00:46.973 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 17 August 2024 08:24:30 -0400 (0:00:03.254) 0:00:50.227 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897460.5045052, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "588255616f92a8f8e7b234fb2a78d23b11a2d45a", "ctime": 1723897460.5015051, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718638, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723897460.5015051, "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": "3820785573", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 17 August 2024 08:24:31 -0400 (0:00:00.436) 0:00:50.663 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 17 August 2024 08:24:31 -0400 (0:00:00.044) 0:00:50.707 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 17 August 2024 08:24:31 -0400 (0:00:00.060) 0:00:50.767 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 17 August 2024 08:24:31 -0400 (0:00:00.058) 0:00:50.826 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1723897460.4565063, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "edc6224add4934efea27f10ce42b3f9602a1a75b", "ctime": 1723897460.5015051, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718637, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1723897460.5015051, "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": "826330705", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 17 August 2024 08:24:31 -0400 (0:00:00.456) 0:00:51.283 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.038) 0:00:51.321 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.039) 0:00:51.361 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "B6:B5:8A:AA:6C:4E:CA:13:1E:E4:C5:20:EB:BF:13:B7:8F:75:A5:DA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A8:1C:E2:57:85:84:FE:81:BC:E6:CE:B4:26:3E:FC:BD:8A:F3:C9:A0:1F:A4:10:31:CD:F8:46:4E:FC:07:51:19:C9:10:65:80:F8:69:05:D7:14:4E:40:83:F8:7D:84:FD:4C:06:7B:20:4E:A3:D2:01:69:60:51:AA:E1:E4:A9:7F:9B:3E:DD:05:E0:62:87:A8:14:71:52:88:67:78:EC:7C:0B:02:A1:D6:A9:DB:B1:11:CF:5E:F7:E8:10:40:D0:1B:67:C8:63:95:7F:08:9E:4E:72:36:83:00:1A:8F:02:3D:E4:18:C1:49:BB:2E:DA:FD:4E:C9:D6:D2:80:3A:18:95:4A:0C:7C:C6:92:AD:A2:7F:EE:86:D3:D7:6B:CC:6A:3C:D2:ED:28:80:72:58:58:41:8D:84:70:30:A8:32:F4:15:C1:82:2E:95:BE:33:71:14:FE:96:3E:BA:33:C5:D5:75:D9:B3:E3:72:87:2F:5B:40:A6:0D:60:08:DF:C2:09:56:EF:30:2B:F6:09:DC:25:CD:F1:3B:D7:A5:ED:A9:86:31:E6:77:65:CC:54:38:6B:C7:4F:05:56:03:E0:C7:5E:CF:AC:78:99:CB:55:5D:3E:F8:33:97:B3:CF:74:8B:F0:72:0A:B4:71:75:4B:99:12:79:2E:DF:7C:D8:C7:BF:4F:6D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122420Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.476) 0:00:51.837 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "28:1D:EE:5D:0D:CF:1A:5D:78:6E:AE:C4:A5:8C:3A:49:71:85:05:D2" }, "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": "B6:B5:8A:AA:6C:4E:CA:13:1E:E4:C5:20:EB:BF:13:B7:8F:75:A5:DA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A8:1C:E2:57:85:84:FE:81:BC:E6:CE:B4:26:3E:FC:BD:8A:F3:C9:A0:1F:A4:10:31:CD:F8:46:4E:FC:07:51:19:C9:10:65:80:F8:69:05:D7:14:4E:40:83:F8:7D:84:FD:4C:06:7B:20:4E:A3:D2:01:69:60:51:AA:E1:E4:A9:7F:9B:3E:DD:05:E0:62:87:A8:14:71:52:88:67:78:EC:7C:0B:02:A1:D6:A9:DB:B1:11:CF:5E:F7:E8:10:40:D0:1B:67:C8:63:95:7F:08:9E:4E:72:36:83:00:1A:8F:02:3D:E4:18:C1:49:BB:2E:DA:FD:4E:C9:D6:D2:80:3A:18:95:4A:0C:7C:C6:92:AD:A2:7F:EE:86:D3:D7:6B:CC:6A:3C:D2:ED:28:80:72:58:58:41:8D:84:70:30:A8:32:F4:15:C1:82:2E:95:BE:33:71:14:FE:96:3E:BA:33:C5:D5:75:D9:B3:E3:72:87:2F:5B:40:A6:0D:60:08:DF:C2:09:56:EF:30:2B:F6:09:DC:25:CD:F1:3B:D7:A5:ED:A9:86:31:E6:77:65:CC:54:38:6B:C7:4F:05:56:03:E0:C7:5E:CF:AC:78:99:CB:55:5D:3E:F8:33:97:B3:CF:74:8B:F0:72:0A:B4:71:75:4B:99:12:79:2E:DF:7C:D8:C7:BF:4F:6D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250817122355Z", "not_valid_before": "20240817122420Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.050) 0:00:51.888 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.078) 0:00:51.967 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.049) 0:00:52.016 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.050) 0:00:52.067 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.056) 0:00:52.124 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 17 August 2024 08:24:32 -0400 (0:00:00.060) 0:00:52.184 ******* 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.061534", "end": "2024-08-17 08:24:33.280722", "rc": 0, "start": "2024-08-17 08:24:33.219188" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 17 August 2024 08:24:33 -0400 (0:00:00.465) 0:00:52.650 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node3 : ok=99 changed=8 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 Saturday 17 August 2024 08:24:33 -0400 (0:00:00.039) 0:00:52.689 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 5.25s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 3.46s /tmp/collections-EpE/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 --- 3.39s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 3.36s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 3.26s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 3.25s /tmp/collections-EpE/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 --- 3.24s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.18s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.05s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.38s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.13s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.96s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.86s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.75s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.73s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.71s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.71s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.70s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.64s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Retrieve auto-renew flag ------------------------------------------------ 0.62s /tmp/collections-EpE/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143