[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.16.10] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-3D5 executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /tmp/collections-3D5/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-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 31 August 2024 08:25:14 -0400 (0:00:00.009) 0:00:00.009 ******* ok: [managed_node2] TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 31 August 2024 08:25:15 -0400 (0:00:01.001) 0:00:01.010 ******* changed: [managed_node2] => { "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-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 31 August 2024 08:25:16 -0400 (0:00:00.692) 0:00:01.702 ******* changed: [managed_node2] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 31 August 2024 08:25:16 -0400 (0:00:00.461) 0:00:02.164 ******* ok: [managed_node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 31 August 2024 08:25:17 -0400 (0:00:00.772) 0:00:02.936 ******* included: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 31 August 2024 08:25:17 -0400 (0:00:00.017) 0:00:02.954 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 31 August 2024 08:25:17 -0400 (0:00:00.032) 0:00:02.986 ******* ok: [managed_node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 31 August 2024 08:25:17 -0400 (0:00:00.405) 0:00:03.391 ******* ok: [managed_node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 31 August 2024 08:25:17 -0400 (0:00:00.021) 0:00:03.413 ******* skipping: [managed_node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 31 August 2024 08:25:17 -0400 (0:00:00.036) 0:00:03.450 ******* ok: [managed_node2] => { "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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 31 August 2024 08:25:20 -0400 (0:00:02.855) 0:00:06.305 ******* ok: [managed_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 31 August 2024 08:25:23 -0400 (0:00:02.755) 0:00:09.060 ******* ok: [managed_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 31 August 2024 08:25:23 -0400 (0:00:00.557) 0:00:09.618 ******* ok: [managed_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 31 August 2024 08:25:24 -0400 (0:00:00.412) 0:00:10.031 ******* ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-31 08:25:06 EDT", "ActiveEnterTimestampMonotonic": "225414190", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target system.slice basic.target dbus.socket systemd-journald.socket network.target sysinit.target dbus.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-31 08:25:06 EDT", "AssertTimestampMonotonic": "225403043", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-31 08:25:06 EDT", "ConditionTimestampMonotonic": "225403042", "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": "8853", "ExecMainStartTimestamp": "Sat 2024-08-31 08:25:06 EDT", "ExecMainStartTimestampMonotonic": "225403798", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-31 08:25:06 EDT] ; stop_time=[n/a] ; pid=8853 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-31 08:25:06 EDT", "InactiveExitTimestampMonotonic": "225403836", "InvocationID": "7ef50a15c05d45d1bb31b0af99ab743d", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8853", "MemoryAccounting": "yes", "MemoryCurrent": "3084288", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-08-31 08:25:06 EDT", "StateChangeTimestampMonotonic": "225414190", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22406", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-31 08:25:06 EDT", "WatchdogTimestampMonotonic": "225414188", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 31 August 2024 08:25:25 -0400 (0:00:00.866) 0:00:10.897 ******* changed: [managed_node2] => (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_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 31 August 2024 08:25:26 -0400 (0:00:01.390) 0:00:12.288 ******* skipping: [managed_node2] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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_node2] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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_node2] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(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_node2] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 31 August 2024 08:25:26 -0400 (0:00:00.051) 0:00:12.339 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 31 August 2024 08:25:26 -0400 (0:00:00.029) 0:00:12.369 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 31 August 2024 08:25:26 -0400 (0:00:00.031) 0:00:12.400 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 31 August 2024 08:25:26 -0400 (0:00:00.048) 0:00:12.449 ******* ok: [managed_node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 31 August 2024 08:25:27 -0400 (0:00:00.718) 0:00:13.167 ******* included: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:25:27 -0400 (0:00:00.045) 0:00:13.212 ******* ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:25:27 -0400 (0:00:00.012) 0:00:13.225 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:25:27 -0400 (0:00:00.014) 0:00:13.239 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:25:27 -0400 (0:00:00.015) 0:00:13.255 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:25:27 -0400 (0:00:00.011) 0:00:13.266 ******* ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:25:30 -0400 (0:00:02.737) 0:00:16.004 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107125.9004772, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "479da1c29000c639cd255e37ade6295353557ef6", "ctime": 1725107125.9364772, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718655, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107125.8974771, "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": "17466563", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:25:30 -0400 (0:00:00.364) 0:00:16.369 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:25:30 -0400 (0:00:00.029) 0:00:16.398 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:25:30 -0400 (0:00:00.057) 0:00:16.456 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:25:30 -0400 (0:00:00.051) 0:00:16.508 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107125.856477, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3cc74a465fb8a5573e696cd5c88620caafab1221", "ctime": 1725107125.9364772, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718654, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107125.8974771, "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": "2375735225", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.328) 0:00:16.836 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.016) 0:00:16.853 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.035) 0:00:16.888 ******* ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "7D:62:14:1B:38:6F:6D:1A:2C:EF:D9:6F:E8:0E:E4:4E:00:72:B9:55" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:25:0B:37:CF:2D:3B:DF:A9:7A:29:48:CC:1D:0F:F1:B7:F0:28:EE:F5:C7:2C:BC:4D:C4:4E:87:0A:19:3B:A5:2A:36:80:41:C3:01:D4:DB:03:83:A8:36:AA:41:42:CB:4F:4B:AE:72:27:7C:B4:39:52:01:89:6C:BB:64:6D:6B:7D:DD:9E:1C:38:01:26:09:11:B3:8C:52:2A:2B:4F:1B:14:45:56:EE:B3:87:3E:33:6C:C0:D5:43:B8:FD:F0:C5:AA:78:F0:A5:D7:C0:D9:2D:AA:CE:69:5B:43:CA:60:E1:BB:D0:6B:4E:82:6A:85:AA:52:0A:4F:81:87:A1:76:C7:AA:6F:FD:A6:A5:8A:CF:C1:6B:03:CA:10:98:54:53:87:22:AD:EE:53:B7:2A:4B:FA:F5:A7:D1:3B:C9:B8:E7:BA:87:D4:D5:C7:22:2A:E0:60:41:9A:CA:CF:EB:33:30:FA:BB:FF:BC:AC:52:0A:12:F6:B0:DA:FF:7F:C6:42:24:71:0F:3C:15:A9:93:0F:47:3A:D2:AC:DF:D1:5C:12:12:62:BE:1B:E8:B6:14:EF:69:52:ED:6F:8E:90:06:D8:AF:62:55:80:83:E9:CF:3B:2F:D6:2A:7D:48:DF:BB:F9:AB:82:36:5F:17:65:03:70:44:5F:1B:65:0F:49:42:31:42:1E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122525Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.474) 0:00:17.363 ******* ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "7D:62:14:1B:38:6F:6D:1A:2C:EF:D9:6F:E8:0E:E4:4E:00:72:B9:55" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:25:0B:37:CF:2D:3B:DF:A9:7A:29:48:CC:1D:0F:F1:B7:F0:28:EE:F5:C7:2C:BC:4D:C4:4E:87:0A:19:3B:A5:2A:36:80:41:C3:01:D4:DB:03:83:A8:36:AA:41:42:CB:4F:4B:AE:72:27:7C:B4:39:52:01:89:6C:BB:64:6D:6B:7D:DD:9E:1C:38:01:26:09:11:B3:8C:52:2A:2B:4F:1B:14:45:56:EE:B3:87:3E:33:6C:C0:D5:43:B8:FD:F0:C5:AA:78:F0:A5:D7:C0:D9:2D:AA:CE:69:5B:43:CA:60:E1:BB:D0:6B:4E:82:6A:85:AA:52:0A:4F:81:87:A1:76:C7:AA:6F:FD:A6:A5:8A:CF:C1:6B:03:CA:10:98:54:53:87:22:AD:EE:53:B7:2A:4B:FA:F5:A7:D1:3B:C9:B8:E7:BA:87:D4:D5:C7:22:2A:E0:60:41:9A:CA:CF:EB:33:30:FA:BB:FF:BC:AC:52:0A:12:F6:B0:DA:FF:7F:C6:42:24:71:0F:3C:15:A9:93:0F:47:3A:D2:AC:DF:D1:5C:12:12:62:BE:1B:E8:B6:14:EF:69:52:ED:6F:8E:90:06:D8:AF:62:55:80:83:E9:CF:3B:2F:D6:2A:7D:48:DF:BB:F9:AB:82:36:5F:17:65:03:70:44:5F:1B:65:0F:49:42:31:42:1E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122525Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.020) 0:00:17.383 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.037) 0:00:17.420 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.024) 0:00:17.445 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.049) 0:00:17.494 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.054) 0:00:17.549 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:25:31 -0400 (0:00:00.043) 0:00:17.592 ******* ok: [managed_node2] => { "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.045025", "end": "2024-08-31 08:25:32.318917", "rc": 0, "start": "2024-08-31 08:25:32.273892" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:25:32 -0400 (0:00:00.461) 0:00:18.054 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:25:32 -0400 (0:00:00.051) 0:00:18.105 ******* ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:25:32 -0400 (0:00:00.015) 0:00:18.121 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:25:32 -0400 (0:00:00.015) 0:00:18.136 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:25:32 -0400 (0:00:00.020) 0:00:18.157 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:25:32 -0400 (0:00:00.013) 0:00:18.170 ******* ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:25:35 -0400 (0:00:02.747) 0:00:20.917 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107126.5124793, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3edca6f0a0d4391c71857a3df95a60275352c6a6", "ctime": 1725107126.5504794, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894529, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107126.5104792, "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": "515460816", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:25:35 -0400 (0:00:00.324) 0:00:21.242 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:25:35 -0400 (0:00:00.017) 0:00:21.259 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:25:35 -0400 (0:00:00.036) 0:00:21.296 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:25:35 -0400 (0:00:00.035) 0:00:21.331 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107126.4714792, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a163963cf2973498c98054ea504699f477e5f394", "ctime": 1725107126.5504794, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6894528, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107126.5104792, "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": "969829998", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:25:35 -0400 (0:00:00.320) 0:00:21.652 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:25:35 -0400 (0:00:00.016) 0:00:21.669 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.035) 0:00:21.705 ******* ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "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": "6D:D9:04:35:34:9C:E0:C6:A6:23:6D:8E:C6:C5:C2:11:D2:A0:AC:A0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "06:DF:6C:F3:0F:63:B8:14:0D:45:91:5E:22:21:71:19:D7:B2:71:C1:62:59:DC:75:A3:62:31:93:1E:93:2B:6D:6B:70:25:34:EB:DF:96:18:47:0B:B4:90:7C:EB:89:8C:50:D8:C3:70:55:37:3A:91:4A:FB:BD:E7:2D:FF:8B:A0:8B:1D:41:A8:04:B2:2B:03:C8:97:88:51:D2:34:1A:75:84:7E:A7:A3:79:5B:D4:8B:F6:CF:D2:F2:58:14:7E:97:50:E2:39:AE:4E:B8:7D:C2:ED:AE:F7:5B:56:2A:DD:11:3A:FD:82:3B:84:65:C6:AE:A5:80:12:D4:9C:E7:12:85:F1:A7:06:E9:04:E1:53:FA:C1:57:1E:04:CE:68:B6:3C:24:32:43:36:7A:19:FD:E0:07:EF:27:17:B9:C6:AB:B5:0D:8D:61:09:A8:88:C4:6D:B0:C8:A0:68:B3:BC:9B:22:8F:73:86:FF:1D:AE:54:6C:3C:6F:F0:3D:B8:2E:48:C9:B1:11:2F:61:3E:1E:C2:80:1E:54:EA:56:5A:29:51:AD:BA:07:71:43:7F:D1:81:66:C4:99:A0:85:95:0D:B1:C3:82:D6:1D:6A:B0:B5:E0:23:24:D2:94:AD:05:87:C9:9F:E7:3E:A5:6D:E0:B5:79:5A:10:06:27:A2:9B:3B:5C:13" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122526Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.376) 0:00:22.081 ******* ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "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": "6D:D9:04:35:34:9C:E0:C6:A6:23:6D:8E:C6:C5:C2:11:D2:A0:AC:A0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "06:DF:6C:F3:0F:63:B8:14:0D:45:91:5E:22:21:71:19:D7:B2:71:C1:62:59:DC:75:A3:62:31:93:1E:93:2B:6D:6B:70:25:34:EB:DF:96:18:47:0B:B4:90:7C:EB:89:8C:50:D8:C3:70:55:37:3A:91:4A:FB:BD:E7:2D:FF:8B:A0:8B:1D:41:A8:04:B2:2B:03:C8:97:88:51:D2:34:1A:75:84:7E:A7:A3:79:5B:D4:8B:F6:CF:D2:F2:58:14:7E:97:50:E2:39:AE:4E:B8:7D:C2:ED:AE:F7:5B:56:2A:DD:11:3A:FD:82:3B:84:65:C6:AE:A5:80:12:D4:9C:E7:12:85:F1:A7:06:E9:04:E1:53:FA:C1:57:1E:04:CE:68:B6:3C:24:32:43:36:7A:19:FD:E0:07:EF:27:17:B9:C6:AB:B5:0D:8D:61:09:A8:88:C4:6D:B0:C8:A0:68:B3:BC:9B:22:8F:73:86:FF:1D:AE:54:6C:3C:6F:F0:3D:B8:2E:48:C9:B1:11:2F:61:3E:1E:C2:80:1E:54:EA:56:5A:29:51:AD:BA:07:71:43:7F:D1:81:66:C4:99:A0:85:95:0D:B1:C3:82:D6:1D:6A:B0:B5:E0:23:24:D2:94:AD:05:87:C9:9F:E7:3E:A5:6D:E0:B5:79:5A:10:06:27:A2:9B:3B:5C:13" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122526Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.016) 0:00:22.098 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.034) 0:00:22.132 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.015) 0:00:22.148 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.032) 0:00:22.181 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.036) 0:00:22.217 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.035) 0:00:22.252 ******* ok: [managed_node2] => { "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.044406", "end": "2024-08-31 08:25:36.881093", "rc": 0, "start": "2024-08-31 08:25:36.836687" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.355) 0:00:22.607 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.048) 0:00:22.655 ******* ok: [managed_node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 31 August 2024 08:25:37 -0400 (0:00:00.721) 0:00:23.377 ******* included: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 31 August 2024 08:25:37 -0400 (0:00:00.018) 0:00:23.395 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 31 August 2024 08:25:37 -0400 (0:00:00.032) 0:00:23.427 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 31 August 2024 08:25:37 -0400 (0:00:00.016) 0:00:23.444 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 31 August 2024 08:25:37 -0400 (0:00:00.015) 0:00:23.460 ******* skipping: [managed_node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 31 August 2024 08:25:37 -0400 (0:00:00.028) 0:00:23.488 ******* ok: [managed_node2] => { "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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 31 August 2024 08:25:40 -0400 (0:00:02.752) 0:00:26.241 ******* ok: [managed_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 31 August 2024 08:25:43 -0400 (0:00:02.729) 0:00:28.970 ******* ok: [managed_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 31 August 2024 08:25:43 -0400 (0:00:00.361) 0:00:29.332 ******* ok: [managed_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 31 August 2024 08:25:44 -0400 (0:00:00.368) 0:00:29.701 ******* ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-31 08:25:06 EDT", "ActiveEnterTimestampMonotonic": "225414190", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target system.slice basic.target dbus.socket systemd-journald.socket network.target sysinit.target dbus.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-31 08:25:06 EDT", "AssertTimestampMonotonic": "225403043", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-31 08:25:06 EDT", "ConditionTimestampMonotonic": "225403042", "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": "8853", "ExecMainStartTimestamp": "Sat 2024-08-31 08:25:06 EDT", "ExecMainStartTimestampMonotonic": "225403798", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-31 08:25:06 EDT] ; stop_time=[n/a] ; pid=8853 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-31 08:25:06 EDT", "InactiveExitTimestampMonotonic": "225403836", "InvocationID": "7ef50a15c05d45d1bb31b0af99ab743d", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8853", "MemoryAccounting": "yes", "MemoryCurrent": "3809280", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-08-31 08:25:06 EDT", "StateChangeTimestampMonotonic": "225414190", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22406", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-31 08:25:06 EDT", "WatchdogTimestampMonotonic": "225414188", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 31 August 2024 08:25:44 -0400 (0:00:00.512) 0:00:30.214 ******* changed: [managed_node2] => (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_node2] => (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-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 31 August 2024 08:25:45 -0400 (0:00:01.399) 0:00:31.613 ******* skipping: [managed_node2] => (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, "false_condition": "certificate_test_mode | d(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_node2] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (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, "false_condition": "certificate_test_mode | d(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_node2] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (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, "false_condition": "certificate_test_mode | d(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_node2] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.073) 0:00:31.687 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.044) 0:00:31.731 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.046) 0:00:31.777 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.076) 0:00:31.854 ******* ok: [managed_node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.741) 0:00:32.596 ******* included: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs_mode.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0620'}) included: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 => (item={'path': '/etc/pki/tls/certs/certid_mode.crt', 'key_path': '/etc/pki/tls/private/certid_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'mode': '0600'}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.043) 0:00:32.639 ******* ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.012) 0:00:32.652 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.016) 0:00:32.668 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:25:46 -0400 (0:00:00.015) 0:00:32.683 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:25:47 -0400 (0:00:00.011) 0:00:32.695 ******* ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:25:49 -0400 (0:00:02.730) 0:00:35.425 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107145.1395457, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c947aad01dc9b684e46de75975bc36b38f416967", "ctime": 1725107145.259546, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894531, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1725107145.1365457, "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": "3986185093", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.326) 0:00:35.752 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.016) 0:00:35.769 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.037) 0:00:35.806 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.034) 0:00:35.840 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107145.0975454, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "71ad330d08a76ad388b25f41e59b735e3842fece", "ctime": 1725107145.259546, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6894530, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1725107145.1365457, "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": "822013664", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.320) 0:00:36.161 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.020) 0:00:36.181 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.047) 0:00:36.229 ******* ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "BB:D9:C2:61:9B:33:83:DC:E8:CE:51:48:74:71:BC:9F:65:86:D7:86" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:75:A3:0E:FB:B2:45:35:52:2C:7C:49:1A:55:0C:8D:E0:48:80:BB:08:A9:25:0D:42:4F:77:BC:91:15:57:89:7F:CC:CB:B4:00:0E:99:24:E7:B4:6E:67:14:7D:6B:85:CA:00:1F:A0:44:84:F2:F5:72:8B:EC:F0:CE:DE:57:5F:66:95:CC:55:BD:41:6B:9B:91:A3:AF:09:D6:A4:CF:2B:3E:74:11:C6:38:1D:FF:CB:EB:22:C4:FF:D1:EE:03:F4:44:7A:56:02:0C:48:83:AA:E4:99:AF:F2:8F:73:DC:5D:B9:14:46:43:92:60:A1:AE:B2:1F:FC:2C:A5:B9:B9:D6:28:E2:8D:59:1F:FC:D5:FA:C8:4D:78:7F:9B:3A:7C:BD:2B:F0:6E:0C:3A:10:BB:23:FB:A7:67:EC:4A:AF:66:F4:7D:7B:20:86:2B:F6:12:94:BB:4B:B0:F7:E8:14:E7:22:78:E2:C2:11:49:E0:3C:80:B1:7F:D9:58:02:8C:59:71:C9:FC:22:D9:F8:FD:B2:DC:70:A1:76:80:7F:40:21:5F:D7:B5:24:F2:80:CD:20:DD:4F:B5:00:80:30:CB:35:8A:EF:24:CE:4D:28:70:9D:5A:A5:ED:07:AF:72:67:B4:E5:F1:98:46:B6:3B:18:6C:DA:BC:36:0A:1B:2B:CF:09:82" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122545Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.379) 0:00:36.608 ******* ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "BB:D9:C2:61:9B:33:83:DC:E8:CE:51:48:74:71:BC:9F:65:86:D7:86" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:75:A3:0E:FB:B2:45:35:52:2C:7C:49:1A:55:0C:8D:E0:48:80:BB:08:A9:25:0D:42:4F:77:BC:91:15:57:89:7F:CC:CB:B4:00:0E:99:24:E7:B4:6E:67:14:7D:6B:85:CA:00:1F:A0:44:84:F2:F5:72:8B:EC:F0:CE:DE:57:5F:66:95:CC:55:BD:41:6B:9B:91:A3:AF:09:D6:A4:CF:2B:3E:74:11:C6:38:1D:FF:CB:EB:22:C4:FF:D1:EE:03:F4:44:7A:56:02:0C:48:83:AA:E4:99:AF:F2:8F:73:DC:5D:B9:14:46:43:92:60:A1:AE:B2:1F:FC:2C:A5:B9:B9:D6:28:E2:8D:59:1F:FC:D5:FA:C8:4D:78:7F:9B:3A:7C:BD:2B:F0:6E:0C:3A:10:BB:23:FB:A7:67:EC:4A:AF:66:F4:7D:7B:20:86:2B:F6:12:94:BB:4B:B0:F7:E8:14:E7:22:78:E2:C2:11:49:E0:3C:80:B1:7F:D9:58:02:8C:59:71:C9:FC:22:D9:F8:FD:B2:DC:70:A1:76:80:7F:40:21:5F:D7:B5:24:F2:80:CD:20:DD:4F:B5:00:80:30:CB:35:8A:EF:24:CE:4D:28:70:9D:5A:A5:ED:07:AF:72:67:B4:E5:F1:98:46:B6:3B:18:6C:DA:BC:36:0A:1B:2B:CF:09:82" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122545Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.022) 0:00:36.631 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:25:50 -0400 (0:00:00.037) 0:00:36.668 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.017) 0:00:36.686 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.033) 0:00:36.719 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.036) 0:00:36.756 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.035) 0:00:36.791 ******* ok: [managed_node2] => { "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.047995", "end": "2024-08-31 08:25:51.423956", "rc": 0, "start": "2024-08-31 08:25:51.375961" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.359) 0:00:37.151 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.035) 0:00:37.186 ******* ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.012) 0:00:37.199 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.016) 0:00:37.215 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.015) 0:00:37.230 ******* skipping: [managed_node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:25:51 -0400 (0:00:00.011) 0:00:37.242 ******* ok: [managed_node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:25:54 -0400 (0:00:02.731) 0:00:39.974 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107145.826548, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c0a1d8c32535238b548d759e68a4131124eb425e", "ctime": 1725107145.824548, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894533, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1725107145.824548, "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": "2220631653", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:25:54 -0400 (0:00:00.326) 0:00:40.300 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:25:54 -0400 (0:00:00.018) 0:00:40.318 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:25:54 -0400 (0:00:00.036) 0:00:40.355 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:25:54 -0400 (0:00:00.033) 0:00:40.388 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107145.786548, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fb4aeac73f9cb34dd7df560f57495025b8d332e3", "ctime": 1725107145.824548, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894532, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1725107145.824548, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "962047329", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.333) 0:00:40.722 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.032) 0:00:40.755 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.061) 0:00:40.816 ******* ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "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": "AD:4F:0A:9A:DB:AB:E5:31:7A:D1:A0:84:1D:79:CF:C5:F2:71:D5:D0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "09:49:CC:20:59:25:2C:32:52:C2:84:C2:A4:53:4E:F0:63:8A:94:44:79:11:9F:8B:36:79:04:CA:3F:38:54:86:5E:27:C2:AA:0B:1D:A9:51:2E:ED:6D:FA:72:59:4B:EC:A3:FD:54:19:E7:FE:3A:D0:69:6B:FC:09:55:0B:12:BD:4A:96:49:C2:52:52:28:FE:7C:74:EA:DF:8B:05:63:FC:72:6B:EE:4F:4A:39:1F:99:E3:8C:AE:8A:00:25:2B:E5:89:CC:09:3A:66:8F:04:7E:50:38:52:50:A9:A6:86:B8:2E:02:25:A4:E1:F7:31:A8:9B:F9:49:19:BB:25:57:53:35:D4:53:19:3E:1D:6F:DD:FC:77:AC:60:FE:0D:EA:6B:6D:D9:95:39:8C:0B:59:71:8A:EE:CD:12:55:3A:23:1F:E0:2A:F1:C9:30:7A:23:B3:29:27:33:D6:60:F5:BD:C5:4C:DD:74:DD:00:1D:42:B4:AC:1B:30:D9:64:25:C2:7E:9A:AE:84:E8:84:66:0B:55:82:C8:C3:24:F7:89:03:C4:75:73:B0:83:0A:D1:8F:B0:14:DB:5E:34:6A:DF:11:23:3C:69:85:35:1C:05:30:0C:15:D4:AC:C6:8C:98:95:22:1F:27:6B:7D:27:5F:5F:4E:3B:36:B6:F5:66:FF:4E:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122545Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.399) 0:00:41.216 ******* ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:87:B2:DA:E7:E2:5B:16:C5:78:26:EE:9A:A9:3F:AC:60:73:D2:70" }, "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": "AD:4F:0A:9A:DB:AB:E5:31:7A:D1:A0:84:1D:79:CF:C5:F2:71:D5:D0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "09:49:CC:20:59:25:2C:32:52:C2:84:C2:A4:53:4E:F0:63:8A:94:44:79:11:9F:8B:36:79:04:CA:3F:38:54:86:5E:27:C2:AA:0B:1D:A9:51:2E:ED:6D:FA:72:59:4B:EC:A3:FD:54:19:E7:FE:3A:D0:69:6B:FC:09:55:0B:12:BD:4A:96:49:C2:52:52:28:FE:7C:74:EA:DF:8B:05:63:FC:72:6B:EE:4F:4A:39:1F:99:E3:8C:AE:8A:00:25:2B:E5:89:CC:09:3A:66:8F:04:7E:50:38:52:50:A9:A6:86:B8:2E:02:25:A4:E1:F7:31:A8:9B:F9:49:19:BB:25:57:53:35:D4:53:19:3E:1D:6F:DD:FC:77:AC:60:FE:0D:EA:6B:6D:D9:95:39:8C:0B:59:71:8A:EE:CD:12:55:3A:23:1F:E0:2A:F1:C9:30:7A:23:B3:29:27:33:D6:60:F5:BD:C5:4C:DD:74:DD:00:1D:42:B4:AC:1B:30:D9:64:25:C2:7E:9A:AE:84:E8:84:66:0B:55:82:C8:C3:24:F7:89:03:C4:75:73:B0:83:0A:D1:8F:B0:14:DB:5E:34:6A:DF:11:23:3C:69:85:35:1C:05:30:0C:15:D4:AC:C6:8C:98:95:22:1F:27:6B:7D:27:5F:5F:4E:3B:36:B6:F5:66:FF:4E:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122506Z", "not_valid_before": "20240831122545Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.020) 0:00:41.236 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.049) 0:00:41.286 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.029) 0:00:41.315 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.046) 0:00:41.362 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.040) 0:00:41.402 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.053) 0:00:41.456 ******* ok: [managed_node2] => { "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.047600", "end": "2024-08-31 08:25:56.105609", "rc": 0, "start": "2024-08-31 08:25:56.058009" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:25:56 -0400 (0:00:00.375) 0:00:41.831 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed_node2 : ok=99 changed=4 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 Saturday 31 August 2024 08:25:56 -0400 (0:00:00.043) 0:00:41.875 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.86s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.76s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.75s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.75s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.74s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.73s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.73s /tmp/collections-3D5/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.73s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.40s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.39s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.00s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.87s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.77s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.74s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.72s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.72s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Ensure user exists ------------------------------------------------------ 0.69s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.56s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.51s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Parse certificate ------------------------------------------------------- 0.47s /tmp/collections-3D5/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86