ansible-playbook [core 2.17.7] config file = /etc/ansible/ansible.cfg 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-rCV executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True Using /etc/ansible/ansible.cfg as config file 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-rCV/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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 14 December 2024 07:28:47 -0500 (0:00:00.007) 0:00:00.007 ***** [WARNING]: Platform linux on host managed-node2 is using the discovered Python interpreter at /usr/bin/python3.9, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node2] TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 14 December 2024 07:28:48 -0500 (0:00:01.091) 0:00:01.099 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 14 December 2024 07:28:49 -0500 (0:00:00.818) 0:00:01.917 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 14 December 2024 07:28:49 -0500 (0:00:00.557) 0:00:02.474 ***** ok: [managed-node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 14 December 2024 07:28:50 -0500 (0:00:00.785) 0:00:03.260 ***** included: /tmp/collections-rCV/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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 14 December 2024 07:28:50 -0500 (0:00:00.033) 0:00:03.293 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 14 December 2024 07:28:50 -0500 (0:00:00.055) 0:00:03.349 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 14 December 2024 07:28:51 -0500 (0:00:00.574) 0:00:03.923 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 14 December 2024 07:28:51 -0500 (0:00:00.039) 0:00:03.962 ***** 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" } ok: [managed-node2] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node2] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 14 December 2024 07:28:51 -0500 (0:00:00.064) 0:00:04.027 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 14 December 2024 07:28:52 -0500 (0:00:01.576) 0:00:05.603 ***** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 14 December 2024 07:28:54 -0500 (0:00:01.392) 0:00:06.996 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 14 December 2024 07:28:54 -0500 (0:00:00.522) 0:00:07.518 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 14 December 2024 07:28:55 -0500 (0:00:00.461) 0:00:07.980 ***** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-12-14 07:28:39 EST", "ActiveEnterTimestampMonotonic": "298357712", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus.socket basic.target syslog.target dbus-broker.service system.slice network.target systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-12-14 07:28:39 EST", "AssertTimestampMonotonic": "298342196", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "561647000", "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 cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-12-14 07:28:39 EST", "ConditionTimestampMonotonic": "298342191", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4262", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7948", "ExecMainStartTimestamp": "Sat 2024-12-14 07:28:39 EST", "ExecMainStartTimestampMonotonic": "298349898", "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-12-14 07:28:39 EST] ; stop_time=[n/a] ; pid=7948 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-12-14 07:28:39 EST] ; stop_time=[n/a] ; pid=7948 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-12-14 07:28:39 EST", "InactiveExitTimestampMonotonic": "298350202", "InvocationID": "fb2b970036e64ff1b58fa77363d22e68", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13962", "LimitNPROCSoft": "13962", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13962", "LimitSIGPENDINGSoft": "13962", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7948", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "3932160", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-12-14 07:28:39 EST", "StateChangeTimestampMonotonic": "298357712", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22340", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 14 December 2024 07:28:56 -0500 (0:00:00.954) 0:00:08.935 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 14 December 2024 07:28:57 -0500 (0:00:01.662) 0:00:10.598 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 14 December 2024 07:28:57 -0500 (0:00:00.079) 0:00:10.677 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 14 December 2024 07:28:57 -0500 (0:00:00.037) 0:00:10.715 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.044) 0:00:10.759 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.053) 0:00:10.813 ***** ok: [managed-node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.769) 0:00:11.583 ***** included: /tmp/collections-rCV/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-rCV/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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.055) 0:00:11.638 ***** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.022) 0:00:11.663 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.029) 0:00:11.693 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.028) 0:00:11.721 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 December 2024 07:28:58 -0500 (0:00:00.029) 0:00:11.751 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 December 2024 07:29:00 -0500 (0:00:01.370) 0:00:13.121 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179336.8790014, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "300482b5efafc10becdd050dea838abc3455a937", "ctime": 1734179336.9960005, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 8905956, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1734179336.8770015, "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": "3491153011", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 December 2024 07:29:00 -0500 (0:00:00.365) 0:00:13.486 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 December 2024 07:29:00 -0500 (0:00:00.019) 0:00:13.506 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 December 2024 07:29:00 -0500 (0:00:00.044) 0:00:13.550 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 December 2024 07:29:00 -0500 (0:00:00.050) 0:00:13.601 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179336.8300018, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c5f70476ee15783e6e012c12ef6e690784fff8b2", "ctime": 1734179336.9960005, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4533510, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1734179336.8770015, "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": "429075462", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.389) 0:00:13.990 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.020) 0:00:14.010 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.039) 0:00:14.049 ***** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "FA:B7:8B:52:3C:75:24:C6:4A:C7:88:DD:40:8F:78:47:63:26:3E:9D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "91:6A:28:BF:F3:AE:B8:CE:F4:C2:91:A7:04:04:5F:E7:EF:21:54:C6:65:C5:72:70:15:F2:2F:8F:13:C8:3C:E5:37:FC:7C:8A:26:DB:97:02:E0:79:26:C6:AA:D3:3A:FA:3B:70:69:15:2D:23:28:71:26:BE:97:68:E4:7D:A3:02:71:27:3D:AB:E7:C4:28:B0:53:9B:AF:30:7D:9E:8B:56:64:C3:AE:2E:11:61:BF:4C:6D:E0:E4:6E:71:6D:99:4D:9B:25:25:EB:0F:04:38:9B:64:31:AE:2E:D0:49:07:47:D6:54:1F:25:B4:33:AC:E4:A5:9B:F7:5F:69:53:07:40:EA:99:D0:9F:EF:65:48:5A:B3:D0:FC:52:4C:47:22:23:67:DB:A7:51:2A:AE:F5:70:6C:56:8B:22:55:F3:2F:A7:D9:7E:02:CF:4D:9B:5F:71:F6:10:4E:10:4C:8B:17:D4:75:D9:08:7D:4F:8C:0A:8C:90:AE:AE:62:2E:A1:7D:C3:BC:B7:55:72:0B:5E:39:B8:9C:71:57:29:5B:41:98:CC:2E:28:8E:10:31:A6:E1:13:1A:02:C4:5F:42:7A:A7:59:67:95:25:40:81:60:0C:A1:4E:E1:2B:DD:54:8A:4E:A2:FB:C4:87:FB:6F:F3:99:DE:59:CA:56:BF:8D:71:D5:0D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122856Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.492) 0:00:14.542 ***** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "FA:B7:8B:52:3C:75:24:C6:4A:C7:88:DD:40:8F:78:47:63:26:3E:9D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "91:6A:28:BF:F3:AE:B8:CE:F4:C2:91:A7:04:04:5F:E7:EF:21:54:C6:65:C5:72:70:15:F2:2F:8F:13:C8:3C:E5:37:FC:7C:8A:26:DB:97:02:E0:79:26:C6:AA:D3:3A:FA:3B:70:69:15:2D:23:28:71:26:BE:97:68:E4:7D:A3:02:71:27:3D:AB:E7:C4:28:B0:53:9B:AF:30:7D:9E:8B:56:64:C3:AE:2E:11:61:BF:4C:6D:E0:E4:6E:71:6D:99:4D:9B:25:25:EB:0F:04:38:9B:64:31:AE:2E:D0:49:07:47:D6:54:1F:25:B4:33:AC:E4:A5:9B:F7:5F:69:53:07:40:EA:99:D0:9F:EF:65:48:5A:B3:D0:FC:52:4C:47:22:23:67:DB:A7:51:2A:AE:F5:70:6C:56:8B:22:55:F3:2F:A7:D9:7E:02:CF:4D:9B:5F:71:F6:10:4E:10:4C:8B:17:D4:75:D9:08:7D:4F:8C:0A:8C:90:AE:AE:62:2E:A1:7D:C3:BC:B7:55:72:0B:5E:39:B8:9C:71:57:29:5B:41:98:CC:2E:28:8E:10:31:A6:E1:13:1A:02:C4:5F:42:7A:A7:59:67:95:25:40:81:60:0C:A1:4E:E1:2B:DD:54:8A:4E:A2:FB:C4:87:FB:6F:F3:99:DE:59:CA:56:BF:8D:71:D5:0D" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122856Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.019) 0:00:14.561 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.039) 0:00:14.600 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.020) 0:00:14.621 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.038) 0:00:14.660 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.043) 0:00:14.703 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 December 2024 07:29:01 -0500 (0:00:00.042) 0:00:14.745 ***** 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.039268", "end": "2024-12-14 07:29:02.448431", "rc": 0, "start": "2024-12-14 07:29:02.409163" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 December 2024 07:29:02 -0500 (0:00:00.513) 0:00:15.259 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 December 2024 07:29:02 -0500 (0:00:00.040) 0:00:15.299 ***** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 December 2024 07:29:02 -0500 (0:00:00.015) 0:00:15.315 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 December 2024 07:29:02 -0500 (0:00:00.017) 0:00:15.332 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 December 2024 07:29:02 -0500 (0:00:00.017) 0:00:15.350 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 December 2024 07:29:02 -0500 (0:00:00.013) 0:00:15.364 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 December 2024 07:29:04 -0500 (0:00:01.392) 0:00:16.757 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179337.638996, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "235d57f233f98713b544d74b1987bdaf67032c96", "ctime": 1734179337.772995, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 8854174, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1734179337.636996, "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": "539885526", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 December 2024 07:29:04 -0500 (0:00:00.391) 0:00:17.148 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 December 2024 07:29:04 -0500 (0:00:00.019) 0:00:17.167 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 December 2024 07:29:04 -0500 (0:00:00.041) 0:00:17.209 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 December 2024 07:29:04 -0500 (0:00:00.039) 0:00:17.248 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179337.5909963, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2c237a35d653de36ca80fc42c891955fdafd262d", "ctime": 1734179337.772995, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 4739448, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1734179337.636996, "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": "260902891", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 December 2024 07:29:04 -0500 (0:00:00.392) 0:00:17.640 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 December 2024 07:29:04 -0500 (0:00:00.029) 0:00:17.670 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 December 2024 07:29:04 -0500 (0:00:00.050) 0:00:17.720 ***** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "CE:02:70:B9:A4:E7:D9:9B:DC:C5:41:37:C3:42:D1:A9:B2:CE:36:2E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4D:51:C2:D5:CE:3F:DE:D1:CE:C9:F9:27:0E:89:75:C0:1A:A1:AA:D5:C2:F9:08:6E:23:F9:AB:0C:6C:7D:F5:62:00:7C:5C:50:AB:B2:12:78:B7:1F:83:54:EC:6C:28:73:0B:5A:52:78:44:25:87:10:82:AC:68:72:2E:23:4D:67:8B:31:1E:E9:B6:82:BE:4C:7D:A6:F1:B4:0A:CF:98:80:F5:EB:1A:21:42:32:E8:B5:F5:38:7A:82:E1:34:B8:45:FB:61:A4:E8:9D:BE:40:71:A3:6F:78:01:F1:7A:C8:0F:69:7A:48:5E:A7:7F:EE:86:33:97:9F:13:D0:36:03:97:5C:CF:C3:DA:B8:74:FF:FD:ED:24:F5:D3:62:56:AB:99:BA:E3:2D:FB:09:D6:00:AD:69:55:FB:DF:19:B5:CB:5F:D7:72:D1:67:51:9E:96:62:DF:60:9B:67:A7:1B:4A:68:F2:28:7B:02:DE:15:25:8B:26:67:EF:87:94:B7:C7:61:D2:F6:A1:CD:E2:5A:3F:00:88:25:1C:3B:4E:AB:C7:A1:6D:F9:58:50:9A:42:05:7F:1C:90:C8:0B:2B:AA:A8:E7:4C:6A:B9:C2:00:B7:50:E8:4D:54:C9:B9:01:88:24:9A:B1:2D:DA:06:90:CA:64:EC:7B:4E:03:C8:A6:25:6B:BA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122857Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.403) 0:00:18.123 ***** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "CE:02:70:B9:A4:E7:D9:9B:DC:C5:41:37:C3:42:D1:A9:B2:CE:36:2E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4D:51:C2:D5:CE:3F:DE:D1:CE:C9:F9:27:0E:89:75:C0:1A:A1:AA:D5:C2:F9:08:6E:23:F9:AB:0C:6C:7D:F5:62:00:7C:5C:50:AB:B2:12:78:B7:1F:83:54:EC:6C:28:73:0B:5A:52:78:44:25:87:10:82:AC:68:72:2E:23:4D:67:8B:31:1E:E9:B6:82:BE:4C:7D:A6:F1:B4:0A:CF:98:80:F5:EB:1A:21:42:32:E8:B5:F5:38:7A:82:E1:34:B8:45:FB:61:A4:E8:9D:BE:40:71:A3:6F:78:01:F1:7A:C8:0F:69:7A:48:5E:A7:7F:EE:86:33:97:9F:13:D0:36:03:97:5C:CF:C3:DA:B8:74:FF:FD:ED:24:F5:D3:62:56:AB:99:BA:E3:2D:FB:09:D6:00:AD:69:55:FB:DF:19:B5:CB:5F:D7:72:D1:67:51:9E:96:62:DF:60:9B:67:A7:1B:4A:68:F2:28:7B:02:DE:15:25:8B:26:67:EF:87:94:B7:C7:61:D2:F6:A1:CD:E2:5A:3F:00:88:25:1C:3B:4E:AB:C7:A1:6D:F9:58:50:9A:42:05:7F:1C:90:C8:0B:2B:AA:A8:E7:4C:6A:B9:C2:00:B7:50:E8:4D:54:C9:B9:01:88:24:9A:B1:2D:DA:06:90:CA:64:EC:7B:4E:03:C8:A6:25:6B:BA" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122857Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.018) 0:00:18.142 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.040) 0:00:18.183 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.020) 0:00:18.203 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.038) 0:00:18.242 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.042) 0:00:18.285 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.042) 0:00:18.327 ***** 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.039453", "end": "2024-12-14 07:29:05.919488", "rc": 0, "start": "2024-12-14 07:29:05.880035" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 December 2024 07:29:05 -0500 (0:00:00.394) 0:00:18.722 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 14 December 2024 07:29:06 -0500 (0:00:00.042) 0:00:18.765 ***** ok: [managed-node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 14 December 2024 07:29:06 -0500 (0:00:00.754) 0:00:19.519 ***** included: /tmp/collections-rCV/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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 14 December 2024 07:29:06 -0500 (0:00:00.024) 0:00:19.543 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 14 December 2024 07:29:06 -0500 (0:00:00.045) 0:00:19.589 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 14 December 2024 07:29:06 -0500 (0:00:00.019) 0:00:19.609 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 14 December 2024 07:29:06 -0500 (0:00:00.019) 0:00:19.629 ***** 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" } ok: [managed-node2] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node2] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 14 December 2024 07:29:06 -0500 (0:00:00.041) 0:00:19.670 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 14 December 2024 07:29:08 -0500 (0:00:01.350) 0:00:21.021 ***** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 14 December 2024 07:29:09 -0500 (0:00:01.423) 0:00:22.444 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 14 December 2024 07:29:10 -0500 (0:00:00.454) 0:00:22.898 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 14 December 2024 07:29:10 -0500 (0:00:00.440) 0:00:23.339 ***** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-12-14 07:28:39 EST", "ActiveEnterTimestampMonotonic": "298357712", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus.socket basic.target syslog.target dbus-broker.service system.slice network.target systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-12-14 07:28:39 EST", "AssertTimestampMonotonic": "298342196", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "900751000", "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 cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-12-14 07:28:39 EST", "ConditionTimestampMonotonic": "298342191", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4262", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7948", "ExecMainStartTimestamp": "Sat 2024-12-14 07:28:39 EST", "ExecMainStartTimestampMonotonic": "298349898", "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-12-14 07:28:39 EST] ; stop_time=[n/a] ; pid=7948 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-12-14 07:28:39 EST] ; stop_time=[n/a] ; pid=7948 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-12-14 07:28:39 EST", "InactiveExitTimestampMonotonic": "298350202", "InvocationID": "fb2b970036e64ff1b58fa77363d22e68", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13962", "LimitNPROCSoft": "13962", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13962", "LimitSIGPENDINGSoft": "13962", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7948", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4612096", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-12-14 07:28:39 EST", "StateChangeTimestampMonotonic": "298357712", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22340", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 14 December 2024 07:29:11 -0500 (0:00:00.538) 0:00:23.878 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 14 December 2024 07:29:12 -0500 (0:00:01.557) 0:00:25.435 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 14 December 2024 07:29:12 -0500 (0:00:00.055) 0:00:25.491 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 14 December 2024 07:29:12 -0500 (0:00:00.035) 0:00:25.526 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 14 December 2024 07:29:12 -0500 (0:00:00.035) 0:00:25.561 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 14 December 2024 07:29:12 -0500 (0:00:00.045) 0:00:25.607 ***** ok: [managed-node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.769) 0:00:26.376 ***** included: /tmp/collections-rCV/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-rCV/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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.053) 0:00:26.430 ***** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.016) 0:00:26.446 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.019) 0:00:26.466 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.020) 0:00:26.486 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.014) 0:00:26.500 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 December 2024 07:29:15 -0500 (0:00:01.343) 0:00:27.843 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179351.7778935, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "69bf5c1711893fdea689f285840ae0226e30f2f6", "ctime": 1734179351.877893, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 8905958, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1734179351.7748935, "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": "3444621432", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 December 2024 07:29:15 -0500 (0:00:00.365) 0:00:28.208 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 December 2024 07:29:15 -0500 (0:00:00.020) 0:00:28.229 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 December 2024 07:29:15 -0500 (0:00:00.055) 0:00:28.285 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 December 2024 07:29:15 -0500 (0:00:00.040) 0:00:28.325 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179351.727894, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b19ab7ee1630bc5d059ca9c5dd8251e2a1082212", "ctime": 1734179351.877893, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 5324745, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1734179351.7748935, "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": "1983711539", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 December 2024 07:29:15 -0500 (0:00:00.380) 0:00:28.705 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 December 2024 07:29:15 -0500 (0:00:00.020) 0:00:28.726 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.040) 0:00:28.766 ***** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "C0:9B:E8:A1:A6:68:AC:47:E4:0D:62:45:C8:3B:F2:3F:0C:6D:69:C2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "00:20:1B:A9:92:05:A0:E6:4F:7C:86:75:C5:1B:E3:97:F4:63:10:31:6A:A1:24:93:6A:85:54:D8:B6:8C:D6:06:09:9F:AD:F6:C3:EC:6B:FF:AF:74:3D:59:96:60:28:90:20:C8:C9:5C:97:7F:80:3A:D8:E2:16:BF:71:17:59:92:BF:74:24:83:E9:28:05:66:57:06:46:CC:64:07:F0:24:FB:B9:C3:0E:30:7B:58:D1:4F:76:4C:42:3B:B7:21:04:37:D9:1E:6D:D0:5F:21:0B:E7:30:50:7F:26:5B:0C:AE:47:07:3E:E0:4C:5C:D8:15:0C:74:29:30:C3:D7:42:F0:73:0F:99:48:10:D7:BE:B5:9E:FD:14:04:5C:E4:7F:2A:87:08:4E:90:09:A9:6F:E2:D4:5A:88:E6:FE:F9:29:D9:D9:D4:29:AF:EE:4C:CA:B8:F6:8C:15:6D:B3:20:59:4A:26:4F:C5:C9:AA:EE:55:29:FE:C2:61:13:48:A8:47:AA:F2:A5:CA:0A:A2:C2:8D:78:36:80:0A:CC:34:A8:53:BB:FE:0D:12:AF:B3:DD:9C:49:D3:E5:2B:A7:B0:B0:07:85:98:FB:1D:60:EB:09:A4:FD:BB:B8:68:77:54:09:2C:AD:01:33:53:51:04:93:31:5F:37:8A:96:99:C6:17:20:3C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122911Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.418) 0:00:29.184 ***** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "C0:9B:E8:A1:A6:68:AC:47:E4:0D:62:45:C8:3B:F2:3F:0C:6D:69:C2" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "00:20:1B:A9:92:05:A0:E6:4F:7C:86:75:C5:1B:E3:97:F4:63:10:31:6A:A1:24:93:6A:85:54:D8:B6:8C:D6:06:09:9F:AD:F6:C3:EC:6B:FF:AF:74:3D:59:96:60:28:90:20:C8:C9:5C:97:7F:80:3A:D8:E2:16:BF:71:17:59:92:BF:74:24:83:E9:28:05:66:57:06:46:CC:64:07:F0:24:FB:B9:C3:0E:30:7B:58:D1:4F:76:4C:42:3B:B7:21:04:37:D9:1E:6D:D0:5F:21:0B:E7:30:50:7F:26:5B:0C:AE:47:07:3E:E0:4C:5C:D8:15:0C:74:29:30:C3:D7:42:F0:73:0F:99:48:10:D7:BE:B5:9E:FD:14:04:5C:E4:7F:2A:87:08:4E:90:09:A9:6F:E2:D4:5A:88:E6:FE:F9:29:D9:D9:D4:29:AF:EE:4C:CA:B8:F6:8C:15:6D:B3:20:59:4A:26:4F:C5:C9:AA:EE:55:29:FE:C2:61:13:48:A8:47:AA:F2:A5:CA:0A:A2:C2:8D:78:36:80:0A:CC:34:A8:53:BB:FE:0D:12:AF:B3:DD:9C:49:D3:E5:2B:A7:B0:B0:07:85:98:FB:1D:60:EB:09:A4:FD:BB:B8:68:77:54:09:2C:AD:01:33:53:51:04:93:31:5F:37:8A:96:99:C6:17:20:3C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122911Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.019) 0:00:29.204 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.041) 0:00:29.245 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.019) 0:00:29.265 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.051) 0:00:29.316 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.045) 0:00:29.362 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.045) 0:00:29.407 ***** 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.041558", "end": "2024-12-14 07:29:17.008163", "rc": 0, "start": "2024-12-14 07:29:16.966605" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.408) 0:00:29.815 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.041) 0:00:29.857 ***** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.015) 0:00:29.872 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.018) 0:00:29.891 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.019) 0:00:29.911 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.014) 0:00:29.925 ***** 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-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 December 2024 07:29:18 -0500 (0:00:01.348) 0:00:31.274 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179352.5398881, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ba8014ca92ec797d4d828e28d6da033f9cca2ff3", "ctime": 1734179352.537888, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8905976, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734179352.537888, "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": "1186626749", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 December 2024 07:29:18 -0500 (0:00:00.395) 0:00:31.669 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 December 2024 07:29:18 -0500 (0:00:00.029) 0:00:31.699 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 December 2024 07:29:18 -0500 (0:00:00.044) 0:00:31.744 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.046) 0:00:31.790 ***** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1734179352.4908884, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "785163304b24d3512edf3603177338957d96ab89", "ctime": 1734179352.537888, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 5325462, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1734179352.537888, "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": "3777945456", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.376) 0:00:32.167 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.029) 0:00:32.196 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.044) 0:00:32.240 ***** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "A2:B9:F1:A2:BD:05:1F:6E:D3:23:7F:ED:C0:BE:65:E9:6B:82:34:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "86:31:CA:E5:D0:C5:BC:8B:5E:FB:42:C4:F5:6E:3F:0A:BE:B1:41:97:46:9D:4E:98:D8:D7:A1:8E:56:5C:C2:A6:7E:7F:D9:6F:2F:2A:C1:58:0E:0E:02:BC:8E:7D:43:AD:12:86:BA:E5:6A:09:2C:13:F9:90:3C:B2:C8:A7:2A:B4:68:E7:1F:AC:A8:A4:A2:41:A1:0D:1E:D2:F4:D5:74:C9:20:63:62:1E:0A:00:E1:1A:4C:2D:47:8D:24:9C:70:22:F4:F2:1E:02:A1:72:BC:47:DB:29:44:91:DE:AA:2E:19:7A:E4:9B:7A:47:78:DB:F3:D1:D1:86:1E:9F:C0:9F:8D:19:85:7C:8A:28:C1:79:7F:A3:89:3F:6A:1D:18:28:6D:82:93:14:CC:40:83:E3:38:D9:9F:7D:B2:FC:63:69:D3:45:39:F5:2F:55:13:62:51:56:55:65:F2:82:8B:A5:EE:E2:7F:C8:B8:1F:2F:BB:B9:1B:63:C6:B4:77:45:66:B8:41:C7:0C:85:C7:CB:66:D7:30:F0:31:7C:6F:82:14:C6:8A:22:24:30:06:7A:00:92:55:B6:0F:18:F6:53:2D:09:6C:B3:68:A4:F6:3B:A1:45:6B:40:68:E9:7F:0A:5B:C6:D4:00:F3:E7:3C:7E:46:D1:E7:E0:E1:B9:F3:28:83:CC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122912Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.407) 0:00:32.648 ***** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A8:EE:19:99:B6:6F:4B:27:46:38:D0:59:69:6E:84:DE:D4:A5:A5:13" }, "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": "A2:B9:F1:A2:BD:05:1F:6E:D3:23:7F:ED:C0:BE:65:E9:6B:82:34:08" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "86:31:CA:E5:D0:C5:BC:8B:5E:FB:42:C4:F5:6E:3F:0A:BE:B1:41:97:46:9D:4E:98:D8:D7:A1:8E:56:5C:C2:A6:7E:7F:D9:6F:2F:2A:C1:58:0E:0E:02:BC:8E:7D:43:AD:12:86:BA:E5:6A:09:2C:13:F9:90:3C:B2:C8:A7:2A:B4:68:E7:1F:AC:A8:A4:A2:41:A1:0D:1E:D2:F4:D5:74:C9:20:63:62:1E:0A:00:E1:1A:4C:2D:47:8D:24:9C:70:22:F4:F2:1E:02:A1:72:BC:47:DB:29:44:91:DE:AA:2E:19:7A:E4:9B:7A:47:78:DB:F3:D1:D1:86:1E:9F:C0:9F:8D:19:85:7C:8A:28:C1:79:7F:A3:89:3F:6A:1D:18:28:6D:82:93:14:CC:40:83:E3:38:D9:9F:7D:B2:FC:63:69:D3:45:39:F5:2F:55:13:62:51:56:55:65:F2:82:8B:A5:EE:E2:7F:C8:B8:1F:2F:BB:B9:1B:63:C6:B4:77:45:66:B8:41:C7:0C:85:C7:CB:66:D7:30:F0:31:7C:6F:82:14:C6:8A:22:24:30:06:7A:00:92:55:B6:0F:18:F6:53:2D:09:6C:B3:68:A4:F6:3B:A1:45:6B:40:68:E9:7F:0A:5B:C6:D4:00:F3:E7:3C:7E:46:D1:E7:E0:E1:B9:F3:28:83:CC" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251214122839Z", "not_valid_before": "20241214122912Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.021) 0:00:32.669 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.043) 0:00:32.713 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.020) 0:00:32.734 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.041) 0:00:32.775 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.046) 0:00:32.821 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.045) 0:00:32.867 ***** 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.042254", "end": "2024-12-14 07:29:20.459793", "rc": 0, "start": "2024-12-14 07:29:20.417539" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.399) 0:00:33.266 ***** ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node2 : ok=101 changed=4 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Saturday 14 December 2024 07:29:20 -0500 (0:00:00.037) 0:00:33.304 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.66s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.58s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.56s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.42s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.39s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 1.39s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.37s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.35s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.35s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.34s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Gathering Facts --------------------------------------------------------- 1.09s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.95s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure user exists ------------------------------------------------------ 0.82s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.79s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.77s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.77s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.75s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.57s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Ensure group "somegroup" exists ----------------------------------------- 0.56s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.54s /tmp/collections-rCV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90