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-9Rz/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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 02 November 2024 08:26:50 -0400 (0:00:00.019) 0:00:00.019 ***** ok: [managed-node3] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 02 November 2024 08:26:51 -0400 (0:00:00.913) 0:00:00.933 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 02 November 2024 08:26:51 -0400 (0:00:00.587) 0:00:01.520 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 02 November 2024 08:26:52 -0400 (0:00:00.489) 0:00:02.010 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 02 November 2024 08:26:53 -0400 (0:00:00.652) 0:00:02.662 ***** included: /tmp/collections-9Rz/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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 02 November 2024 08:26:53 -0400 (0:00:00.030) 0:00:02.693 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 02 November 2024 08:26:53 -0400 (0:00:00.052) 0:00:02.745 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 02 November 2024 08:26:53 -0400 (0:00:00.468) 0:00:03.214 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 02 November 2024 08:26:53 -0400 (0:00:00.043) 0:00:03.257 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 02 November 2024 08:26:53 -0400 (0:00:00.060) 0:00:03.318 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 02 November 2024 08:26:56 -0400 (0:00:03.098) 0:00:06.416 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 02 November 2024 08:27:01 -0400 (0:00:04.354) 0:00:10.771 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 02 November 2024 08:27:01 -0400 (0:00:00.695) 0:00:11.467 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 02 November 2024 08:27:02 -0400 (0:00:00.449) 0:00:11.916 ***** changed: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network.target dbus.service sysinit.target system.slice systemd-journald.socket dbus.socket basic.target syslog.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": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 02 November 2024 08:27:03 -0400 (0:00:01.006) 0:00:12.923 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 02 November 2024 08:27:05 -0400 (0:00:02.106) 0:00:15.030 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 02 November 2024 08:27:05 -0400 (0:00:00.095) 0:00:15.125 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 02 November 2024 08:27:05 -0400 (0:00:00.059) 0:00:15.185 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 02 November 2024 08:27:05 -0400 (0:00:00.058) 0:00:15.243 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 02 November 2024 08:27:05 -0400 (0:00:00.096) 0:00:15.340 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 02 November 2024 08:27:06 -0400 (0:00:00.690) 0:00:16.030 ***** included: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 02 November 2024 08:27:06 -0400 (0:00:00.121) 0:00:16.152 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 02 November 2024 08:27:06 -0400 (0:00:00.021) 0:00:16.174 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 02 November 2024 08:27:06 -0400 (0:00:00.052) 0:00:16.226 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 02 November 2024 08:27:06 -0400 (0:00:00.057) 0:00:16.283 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 02 November 2024 08:27:06 -0400 (0:00:00.056) 0:00:16.340 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 02 November 2024 08:27:09 -0400 (0:00:03.029) 0:00:19.370 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550424.2088468, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ecff31c5b59290fe4ea36bcda5ac98bed74ec26f", "ctime": 1730550424.2628474, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718634, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1730550424.2058468, "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": "2015863033", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 02 November 2024 08:27:10 -0400 (0:00:00.388) 0:00:19.759 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 02 November 2024 08:27:10 -0400 (0:00:00.043) 0:00:19.802 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 02 November 2024 08:27:10 -0400 (0:00:00.064) 0:00:19.867 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 02 November 2024 08:27:10 -0400 (0:00:00.072) 0:00:19.939 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550424.1628466, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "dad88b9ffaa1f7f3f1e72542595539a5c73750da", "ctime": 1730550424.2628474, "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": 1730550424.2058468, "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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 02 November 2024 08:27:10 -0400 (0:00:00.405) 0:00:20.345 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 02 November 2024 08:27:10 -0400 (0:00:00.064) 0:00:20.410 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 02 November 2024 08:27:10 -0400 (0:00:00.056) 0:00:20.466 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "01:04:64:43:A7:47:1E:79:C7:D0:A2:53:AF:0C:B7:BE:FE:D7:7A:BA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B4:02:00:BB:91:84:A3:FB:36:D0:86:FC:A4:AD:AC:95:3E:52:BB:BA:1C:2A:8F:A1:55:CB:57:1F:FC:25:6C:BF:C0:CE:1F:FF:74:54:15:1F:B8:0E:14:C6:6B:A9:0D:72:87:94:45:2F:68:18:47:AB:EE:7B:63:7A:ED:3B:EC:B6:F3:1B:BB:6B:A2:44:59:F8:1A:98:0C:A2:76:A6:31:81:C7:00:74:05:B1:FD:27:1D:9A:73:90:63:B7:36:93:3C:CC:21:A3:37:7C:D4:0D:F9:25:BD:C8:1A:51:1A:AA:66:CA:F9:FF:4C:90:DE:AE:D7:AE:BC:CB:1F:36:D9:0F:F1:11:5D:5F:F0:C1:95:E4:CD:95:F6:A1:18:D7:08:D1:97:55:8E:D6:FA:B7:DB:54:48:FD:42:0A:B2:0B:07:3E:DE:19:36:2F:38:F1:3B:E5:A3:33:A2:4E:FA:24:60:08:72:6D:E7:E6:51:7D:28:EA:F0:27:CD:73:F6:A9:85:74:2C:D3:35:D3:D5:5D:38:19:87:2B:D0:BC:8B:7B:73:94:25:46:9E:7F:BD:F9:80:00:E7:D0:8B:B6:FA:54:63:D4:B0:F1:13:DE:1C:F7:E9:0C:26:75:D8:54:94:1C:AA:66:95:9C:A3:1B:32:33:90:AB:87:3F:EB:AD:D9:B2:9B:6C:3B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122704Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 02 November 2024 08:27:11 -0400 (0:00:00.631) 0:00:21.098 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "01:04:64:43:A7:47:1E:79:C7:D0:A2:53:AF:0C:B7:BE:FE:D7:7A:BA" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B4:02:00:BB:91:84:A3:FB:36:D0:86:FC:A4:AD:AC:95:3E:52:BB:BA:1C:2A:8F:A1:55:CB:57:1F:FC:25:6C:BF:C0:CE:1F:FF:74:54:15:1F:B8:0E:14:C6:6B:A9:0D:72:87:94:45:2F:68:18:47:AB:EE:7B:63:7A:ED:3B:EC:B6:F3:1B:BB:6B:A2:44:59:F8:1A:98:0C:A2:76:A6:31:81:C7:00:74:05:B1:FD:27:1D:9A:73:90:63:B7:36:93:3C:CC:21:A3:37:7C:D4:0D:F9:25:BD:C8:1A:51:1A:AA:66:CA:F9:FF:4C:90:DE:AE:D7:AE:BC:CB:1F:36:D9:0F:F1:11:5D:5F:F0:C1:95:E4:CD:95:F6:A1:18:D7:08:D1:97:55:8E:D6:FA:B7:DB:54:48:FD:42:0A:B2:0B:07:3E:DE:19:36:2F:38:F1:3B:E5:A3:33:A2:4E:FA:24:60:08:72:6D:E7:E6:51:7D:28:EA:F0:27:CD:73:F6:A9:85:74:2C:D3:35:D3:D5:5D:38:19:87:2B:D0:BC:8B:7B:73:94:25:46:9E:7F:BD:F9:80:00:E7:D0:8B:B6:FA:54:63:D4:B0:F1:13:DE:1C:F7:E9:0C:26:75:D8:54:94:1C:AA:66:95:9C:A3:1B:32:33:90:AB:87:3F:EB:AD:D9:B2:9B:6C:3B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122704Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 02 November 2024 08:27:11 -0400 (0:00:00.075) 0:00:21.174 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 02 November 2024 08:27:11 -0400 (0:00:00.066) 0:00:21.240 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 02 November 2024 08:27:11 -0400 (0:00:00.065) 0:00:21.305 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 02 November 2024 08:27:11 -0400 (0:00:00.066) 0:00:21.371 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 02 November 2024 08:27:11 -0400 (0:00:00.072) 0:00:21.444 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 02 November 2024 08:27:11 -0400 (0:00:00.063) 0:00:21.507 ***** 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.043970", "end": "2024-11-02 08:27:12.397291", "rc": 0, "start": "2024-11-02 08:27:12.353321" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 02 November 2024 08:27:12 -0400 (0:00:00.596) 0:00:22.103 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 02 November 2024 08:27:12 -0400 (0:00:00.062) 0:00:22.166 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 02 November 2024 08:27:12 -0400 (0:00:00.021) 0:00:22.187 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 02 November 2024 08:27:12 -0400 (0:00:00.059) 0:00:22.247 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 02 November 2024 08:27:12 -0400 (0:00:00.070) 0:00:22.318 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 02 November 2024 08:27:12 -0400 (0:00:00.052) 0:00:22.370 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 02 November 2024 08:27:15 -0400 (0:00:02.876) 0:00:25.247 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550425.2248545, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "81ae797b0e13ff2b3560fcf4c55579f05435a399", "ctime": 1730550425.287855, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718636, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1730550425.2228544, "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": "589256916", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 02 November 2024 08:27:16 -0400 (0:00:00.416) 0:00:25.663 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 02 November 2024 08:27:16 -0400 (0:00:00.040) 0:00:25.704 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 02 November 2024 08:27:16 -0400 (0:00:00.052) 0:00:25.756 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 02 November 2024 08:27:16 -0400 (0:00:00.052) 0:00:25.809 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550425.1828542, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "122424fbaaa82bb4244955fd972f4d2f274a6269", "ctime": 1730550425.287855, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718635, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1730550425.2228544, "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": "2899627695", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 02 November 2024 08:27:16 -0400 (0:00:00.426) 0:00:26.235 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 02 November 2024 08:27:16 -0400 (0:00:00.040) 0:00:26.276 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 02 November 2024 08:27:16 -0400 (0:00:00.045) 0:00:26.322 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "82:66:E3:D4:69:1C:83:91:B1:42:EB:F6:F7:A3:AA:7F:ED:93:D8:57" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4F:2C:21:3E:3C:6E:82:68:19:94:E4:48:1C:58:E0:A9:8E:22:EB:5B:DE:0F:A0:A5:93:E1:F1:20:E4:30:7D:37:11:84:97:32:58:51:BD:E4:9B:1A:17:3B:A4:C0:8D:B2:A6:71:05:5B:05:F0:9C:D8:DC:F0:4A:E3:06:87:C9:79:70:51:99:E4:BA:63:16:3C:7C:5C:E0:65:6A:2D:0F:DF:9A:14:DC:96:79:A2:15:FA:B4:14:3E:B0:6F:18:D2:DC:61:7A:0A:E2:48:6C:CF:24:02:A8:47:52:3A:AA:E7:0F:1D:E1:94:C7:61:36:0E:2D:65:16:32:D2:63:9E:89:CE:9B:99:19:14:EE:AA:8F:95:D0:DE:FA:45:09:34:DA:0E:FC:A6:D2:21:60:94:6B:07:89:C7:04:98:60:1E:B6:92:48:87:59:98:FB:0E:4F:43:C2:F3:AA:66:D7:BD:24:70:D0:08:AF:85:47:26:DE:C0:6C:BB:8B:67:1C:94:9E:84:B9:8E:1A:C7:89:E0:CD:51:10:8D:5F:33:DF:A5:41:6B:67:81:A7:C5:29:77:64:82:B3:EA:BD:EE:B5:89:60:D8:5E:61:0D:D2:1A:FD:9F:BD:81:EB:A5:D4:AC:C3:B4:47:AA:0E:BD:68:B1:69:05:C7:56:BA:79:FB:2C:A0:80:AE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122705Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.450) 0:00:26.772 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "82:66:E3:D4:69:1C:83:91:B1:42:EB:F6:F7:A3:AA:7F:ED:93:D8:57" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4F:2C:21:3E:3C:6E:82:68:19:94:E4:48:1C:58:E0:A9:8E:22:EB:5B:DE:0F:A0:A5:93:E1:F1:20:E4:30:7D:37:11:84:97:32:58:51:BD:E4:9B:1A:17:3B:A4:C0:8D:B2:A6:71:05:5B:05:F0:9C:D8:DC:F0:4A:E3:06:87:C9:79:70:51:99:E4:BA:63:16:3C:7C:5C:E0:65:6A:2D:0F:DF:9A:14:DC:96:79:A2:15:FA:B4:14:3E:B0:6F:18:D2:DC:61:7A:0A:E2:48:6C:CF:24:02:A8:47:52:3A:AA:E7:0F:1D:E1:94:C7:61:36:0E:2D:65:16:32:D2:63:9E:89:CE:9B:99:19:14:EE:AA:8F:95:D0:DE:FA:45:09:34:DA:0E:FC:A6:D2:21:60:94:6B:07:89:C7:04:98:60:1E:B6:92:48:87:59:98:FB:0E:4F:43:C2:F3:AA:66:D7:BD:24:70:D0:08:AF:85:47:26:DE:C0:6C:BB:8B:67:1C:94:9E:84:B9:8E:1A:C7:89:E0:CD:51:10:8D:5F:33:DF:A5:41:6B:67:81:A7:C5:29:77:64:82:B3:EA:BD:EE:B5:89:60:D8:5E:61:0D:D2:1A:FD:9F:BD:81:EB:A5:D4:AC:C3:B4:47:AA:0E:BD:68:B1:69:05:C7:56:BA:79:FB:2C:A0:80:AE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122705Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.045) 0:00:26.818 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.069) 0:00:26.888 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.040) 0:00:26.929 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.041) 0:00:26.970 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.061) 0:00:27.032 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.063) 0:00:27.095 ***** 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.044356", "end": "2024-11-02 08:27:17.831384", "rc": 0, "start": "2024-11-02 08:27:17.787028" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.429) 0:00:27.525 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 02 November 2024 08:27:17 -0400 (0:00:00.064) 0:00:27.590 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 02 November 2024 08:27:18 -0400 (0:00:00.688) 0:00:28.278 ***** included: /tmp/collections-9Rz/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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 02 November 2024 08:27:18 -0400 (0:00:00.033) 0:00:28.312 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 02 November 2024 08:27:18 -0400 (0:00:00.057) 0:00:28.369 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 02 November 2024 08:27:18 -0400 (0:00:00.045) 0:00:28.415 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 02 November 2024 08:27:18 -0400 (0:00:00.066) 0:00:28.481 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 02 November 2024 08:27:18 -0400 (0:00:00.088) 0:00:28.569 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 02 November 2024 08:27:21 -0400 (0:00:02.850) 0:00:31.420 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 02 November 2024 08:27:24 -0400 (0:00:02.880) 0:00:34.301 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 02 November 2024 08:27:25 -0400 (0:00:00.555) 0:00:34.856 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 02 November 2024 08:27:25 -0400 (0:00:00.388) 0:00:35.245 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-11-02 08:27:03 EDT", "ActiveEnterTimestampMonotonic": "281192527", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target systemd-journald.socket system.slice dbus.service network.target dbus.socket basic.target syslog.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-11-02 08:27:03 EDT", "AssertTimestampMonotonic": "281181941", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-11-02 08:27:03 EDT", "ConditionTimestampMonotonic": "281181940", "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": "9464", "ExecMainStartTimestamp": "Sat 2024-11-02 08:27:03 EDT", "ExecMainStartTimestampMonotonic": "281182690", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-11-02 08:27:03 EDT] ; stop_time=[n/a] ; pid=9464 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-11-02 08:27:03 EDT", "InactiveExitTimestampMonotonic": "281182726", "InvocationID": "0681cbdbf31b4dfdaa8091e6e1d1c357", "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": "9464", "MemoryAccounting": "yes", "MemoryCurrent": "3719168", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-11-02 08:27:03 EDT", "StateChangeTimestampMonotonic": "281192527", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-11-02 08:27:03 EDT", "WatchdogTimestampMonotonic": "281192524", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 02 November 2024 08:27:26 -0400 (0:00:00.510) 0:00:35.756 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 02 November 2024 08:27:27 -0400 (0:00:01.638) 0:00:37.394 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 02 November 2024 08:27:27 -0400 (0:00:00.090) 0:00:37.485 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 02 November 2024 08:27:27 -0400 (0:00:00.039) 0:00:37.524 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 02 November 2024 08:27:27 -0400 (0:00:00.058) 0:00:37.583 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 02 November 2024 08:27:28 -0400 (0:00:00.067) 0:00:37.651 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 02 November 2024 08:27:28 -0400 (0:00:00.642) 0:00:38.294 ***** included: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 02 November 2024 08:27:28 -0400 (0:00:00.092) 0:00:38.386 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 02 November 2024 08:27:28 -0400 (0:00:00.018) 0:00:38.404 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 02 November 2024 08:27:28 -0400 (0:00:00.041) 0:00:38.446 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 02 November 2024 08:27:28 -0400 (0:00:00.037) 0:00:38.483 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 02 November 2024 08:27:28 -0400 (0:00:00.037) 0:00:38.521 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 02 November 2024 08:27:31 -0400 (0:00:02.821) 0:00:41.342 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550446.7340145, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2b0fa33094f806688407e74dad35576af46cdc35", "ctime": 1730550446.8820155, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718638, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1730550446.7320144, "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": "1796761727", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 02 November 2024 08:27:32 -0400 (0:00:00.415) 0:00:41.758 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 02 November 2024 08:27:32 -0400 (0:00:00.053) 0:00:41.812 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 02 November 2024 08:27:32 -0400 (0:00:00.061) 0:00:41.873 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 02 November 2024 08:27:32 -0400 (0:00:00.058) 0:00:41.932 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550446.6900141, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b995696e41d51da00f09ec9f5881da16baec53b7", "ctime": 1730550446.8830156, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718637, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1730550446.7320144, "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": "2232621494", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 02 November 2024 08:27:32 -0400 (0:00:00.395) 0:00:42.328 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 02 November 2024 08:27:32 -0400 (0:00:00.056) 0:00:42.384 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 02 November 2024 08:27:32 -0400 (0:00:00.066) 0:00:42.451 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "31:72:A4:A9:40:18:51:65:61:71:22:65:A4:43:BB:0C:CA:69:3E:0B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C2:91:2A:6C:4F:99:EF:33:5F:89:D0:8F:DB:D8:1D:FB:4F:1D:2C:83:FF:59:B6:B4:23:83:B0:5F:F3:0D:44:BB:BB:13:82:5B:71:DF:56:99:F1:27:58:F2:02:A1:50:FE:DD:D6:1C:01:04:99:A1:27:6F:D8:0F:96:D5:E1:65:91:C0:9C:DD:2D:16:28:2B:14:6A:25:B0:94:16:6F:84:BF:62:62:47:56:7D:2C:A9:02:F0:5B:6C:34:CF:45:1C:AD:C3:79:A9:2A:6A:D9:03:F5:47:28:47:3C:E2:D4:43:22:E6:ED:47:86:2F:73:9B:9E:6D:1F:91:29:53:B6:9D:40:D2:32:63:8A:7B:F6:29:8D:AB:0C:A5:8C:D2:EF:16:27:05:1A:D7:90:6D:52:2D:41:53:7A:AC:34:11:41:6E:F5:29:26:52:A2:9B:80:78:B2:D7:91:78:7D:3C:05:A6:C9:00:78:B4:6D:D4:5B:AC:A3:15:2C:9A:66:4B:F0:0C:AA:ED:4F:8E:FF:03:99:85:8E:81:4B:EB:15:AB:03:F7:28:B7:52:DC:79:EA:FD:CA:B8:17:ED:4F:04:BD:73:77:0A:B0:3F:83:17:F3:99:59:1A:6F:AE:56:C0:78:7F:1E:CF:02:07:29:EB:09:28:DA:CB:6C:B8:B6:E4:AF:30:F5:21" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122726Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.470) 0:00:42.922 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "31:72:A4:A9:40:18:51:65:61:71:22:65:A4:43:BB:0C:CA:69:3E:0B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C2:91:2A:6C:4F:99:EF:33:5F:89:D0:8F:DB:D8:1D:FB:4F:1D:2C:83:FF:59:B6:B4:23:83:B0:5F:F3:0D:44:BB:BB:13:82:5B:71:DF:56:99:F1:27:58:F2:02:A1:50:FE:DD:D6:1C:01:04:99:A1:27:6F:D8:0F:96:D5:E1:65:91:C0:9C:DD:2D:16:28:2B:14:6A:25:B0:94:16:6F:84:BF:62:62:47:56:7D:2C:A9:02:F0:5B:6C:34:CF:45:1C:AD:C3:79:A9:2A:6A:D9:03:F5:47:28:47:3C:E2:D4:43:22:E6:ED:47:86:2F:73:9B:9E:6D:1F:91:29:53:B6:9D:40:D2:32:63:8A:7B:F6:29:8D:AB:0C:A5:8C:D2:EF:16:27:05:1A:D7:90:6D:52:2D:41:53:7A:AC:34:11:41:6E:F5:29:26:52:A2:9B:80:78:B2:D7:91:78:7D:3C:05:A6:C9:00:78:B4:6D:D4:5B:AC:A3:15:2C:9A:66:4B:F0:0C:AA:ED:4F:8E:FF:03:99:85:8E:81:4B:EB:15:AB:03:F7:28:B7:52:DC:79:EA:FD:CA:B8:17:ED:4F:04:BD:73:77:0A:B0:3F:83:17:F3:99:59:1A:6F:AE:56:C0:78:7F:1E:CF:02:07:29:EB:09:28:DA:CB:6C:B8:B6:E4:AF:30:F5:21" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122726Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.039) 0:00:42.961 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.039) 0:00:43.001 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.039) 0:00:43.041 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.039) 0:00:43.080 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.046) 0:00:43.127 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.062) 0:00:43.189 ***** 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.047318", "end": "2024-11-02 08:27:33.911051", "rc": 0, "start": "2024-11-02 08:27:33.863733" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.408) 0:00:43.598 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 02 November 2024 08:27:33 -0400 (0:00:00.039) 0:00:43.637 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 02 November 2024 08:27:34 -0400 (0:00:00.013) 0:00:43.651 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 02 November 2024 08:27:34 -0400 (0:00:00.034) 0:00:43.686 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 02 November 2024 08:27:34 -0400 (0:00:00.034) 0:00:43.721 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 02 November 2024 08:27:34 -0400 (0:00:00.034) 0:00:43.755 ***** 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-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 02 November 2024 08:27:36 -0400 (0:00:02.837) 0:00:46.593 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550447.5560205, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4aa6f23b52f1a0efaa3b2cab4545b3fef65aaffa", "ctime": 1730550447.5530205, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718640, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730550447.5530205, "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": "3890078065", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 02 November 2024 08:27:37 -0400 (0:00:00.412) 0:00:47.005 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 02 November 2024 08:27:37 -0400 (0:00:00.039) 0:00:47.045 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 02 November 2024 08:27:37 -0400 (0:00:00.044) 0:00:47.090 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 02 November 2024 08:27:37 -0400 (0:00:00.040) 0:00:47.130 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1730550447.5130203, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8a4d4274b50b2ba009d8a5287d08c09deab892df", "ctime": 1730550447.5530205, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718639, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1730550447.5530205, "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": "2307250724", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 02 November 2024 08:27:37 -0400 (0:00:00.381) 0:00:47.512 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 02 November 2024 08:27:37 -0400 (0:00:00.053) 0:00:47.565 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 02 November 2024 08:27:37 -0400 (0:00:00.063) 0:00:47.628 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "21:08:91:46:35:AD:7C:A5:9B:36:D3:0D:5B:53:A7:48:2E:5F:D4:2A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "42:CE:5F:CB:07:E1:EF:2F:BE:88:95:58:CE:B8:4A:6A:0B:05:65:2C:E8:21:90:4C:5A:C7:72:5F:F1:60:BC:36:12:BE:66:C8:65:8D:06:CE:1F:52:DD:A9:A2:58:01:59:27:36:EA:95:F1:9B:41:AF:82:3A:7E:DF:83:B2:DC:FB:E4:13:E6:4C:E4:13:99:9C:8B:CC:20:F9:4D:46:CD:75:0D:66:64:21:AC:6C:DF:C5:7E:85:21:99:11:85:E4:60:7D:C6:5D:F3:21:EC:97:7C:60:FE:12:88:22:03:97:AF:3A:DC:44:5C:BF:56:B9:60:FD:05:A8:15:C5:93:81:27:1F:FE:16:D6:C0:E4:4F:10:96:10:B2:DC:6E:A9:B9:5F:D8:B7:A5:E8:FB:A2:DA:AA:7D:2D:EB:79:C1:51:EB:F4:8A:6C:69:04:3B:29:E5:BB:CE:8C:92:9F:DB:C9:B5:07:62:F1:1A:60:2E:9F:A7:3C:A3:DA:A6:1A:7C:7C:53:0B:91:42:27:82:32:D8:CC:FB:C5:7A:DC:1E:1A:42:31:D4:89:00:3F:2B:D6:E9:FD:CF:BE:B5:A5:83:04:75:99:DC:21:C5:B0:47:B5:BB:4E:34:8D:63:B6:7B:68:F9:C5:13:B8:A4:87:48:0C:5C:C5:03:A6:A1:2E:CC:67:85:F7:5D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122727Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.455) 0:00:48.083 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "72:0E:6A:57:42:DB:4A:9B:BC:46:4C:DA:0A:24:0F:F7:EA:93:12:F7" }, "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": "21:08:91:46:35:AD:7C:A5:9B:36:D3:0D:5B:53:A7:48:2E:5F:D4:2A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "42:CE:5F:CB:07:E1:EF:2F:BE:88:95:58:CE:B8:4A:6A:0B:05:65:2C:E8:21:90:4C:5A:C7:72:5F:F1:60:BC:36:12:BE:66:C8:65:8D:06:CE:1F:52:DD:A9:A2:58:01:59:27:36:EA:95:F1:9B:41:AF:82:3A:7E:DF:83:B2:DC:FB:E4:13:E6:4C:E4:13:99:9C:8B:CC:20:F9:4D:46:CD:75:0D:66:64:21:AC:6C:DF:C5:7E:85:21:99:11:85:E4:60:7D:C6:5D:F3:21:EC:97:7C:60:FE:12:88:22:03:97:AF:3A:DC:44:5C:BF:56:B9:60:FD:05:A8:15:C5:93:81:27:1F:FE:16:D6:C0:E4:4F:10:96:10:B2:DC:6E:A9:B9:5F:D8:B7:A5:E8:FB:A2:DA:AA:7D:2D:EB:79:C1:51:EB:F4:8A:6C:69:04:3B:29:E5:BB:CE:8C:92:9F:DB:C9:B5:07:62:F1:1A:60:2E:9F:A7:3C:A3:DA:A6:1A:7C:7C:53:0B:91:42:27:82:32:D8:CC:FB:C5:7A:DC:1E:1A:42:31:D4:89:00:3F:2B:D6:E9:FD:CF:BE:B5:A5:83:04:75:99:DC:21:C5:B0:47:B5:BB:4E:34:8D:63:B6:7B:68:F9:C5:13:B8:A4:87:48:0C:5C:C5:03:A6:A1:2E:CC:67:85:F7:5D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251102122703Z", "not_valid_before": "20241102122727Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.037) 0:00:48.120 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.039) 0:00:48.160 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.038) 0:00:48.199 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.038) 0:00:48.238 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.045) 0:00:48.283 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 02 November 2024 08:27:38 -0400 (0:00:00.048) 0:00:48.331 ***** 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.049106", "end": "2024-11-02 08:27:39.052100", "rc": 0, "start": "2024-11-02 08:27:39.002994" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 02 November 2024 08:27:39 -0400 (0:00:00.407) 0:00:48.739 ***** 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 02 November 2024 08:27:39 -0400 (0:00:00.037) 0:00:48.777 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.35s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.10s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 3.03s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.88s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.88s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.85s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.84s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.82s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.11s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.64s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.01s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.91s /tmp/collections-9Rz/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.70s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Gathering Facts --------------------------------------------------------- 0.69s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.69s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.65s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.64s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Parse certificate ------------------------------------------------------- 0.63s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.60s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Ensure user exists ------------------------------------------------------ 0.59s /tmp/collections-9Rz/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5