[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.3] 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-z6s executable location = /usr/local/bin/ansible-playbook python version = 3.12.5 (main, Aug 7 2024, 00:00:00) [GCC 13.3.1 20240522 (Red Hat 13.3.1-1)] (/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-z6s/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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 31 August 2024 08:25:53 -0400 (0:00:00.008) 0:00:00.008 ******* [WARNING]: Platform linux on host managed_node3 is using the discovered Python interpreter at /usr/bin/python3.12, 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_node3] TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 31 August 2024 08:25:55 -0400 (0:00:01.565) 0:00:01.574 ******* changed: [managed_node3] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 31 August 2024 08:25:55 -0400 (0:00:00.760) 0:00:02.334 ******* changed: [managed_node3] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 31 August 2024 08:25:56 -0400 (0:00:00.652) 0:00:02.987 ******* ok: [managed_node3] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 31 August 2024 08:25:57 -0400 (0:00:00.938) 0:00:03.926 ******* included: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 31 August 2024 08:25:57 -0400 (0:00:00.021) 0:00:03.947 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 31 August 2024 08:25:57 -0400 (0:00:00.037) 0:00:03.985 ******* ok: [managed_node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 31 August 2024 08:25:58 -0400 (0:00:00.522) 0:00:04.507 ******* ok: [managed_node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 31 August 2024 08:25:58 -0400 (0:00:00.025) 0:00:04.532 ******* skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [managed_node3] => (item=Fedora.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 31 August 2024 08:25:58 -0400 (0:00:00.042) 0:00:04.575 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 31 August 2024 08:26:00 -0400 (0:00:01.833) 0:00:06.409 ******* changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: dbus-tools-1:1.14.10-1.fc39.x86_64", "Installed: python3-packaging-23.1-4.fc39.noarch", "Installed: certmonger-0.79.18-2.fc39.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 31 August 2024 08:26:04 -0400 (0:00:04.316) 0:00:10.726 ******* changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 31 August 2024 08:26:04 -0400 (0:00:00.566) 0:00:11.292 ******* changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 31 August 2024 08:26:05 -0400 (0:00:00.550) 0:00:11.843 ******* changed: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target syslog.target sysinit.target dbus-broker.service network.target system.slice systemd-journald.socket dbus.socket", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.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": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "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", "InactiveExitTimestampMonotonic": "0", "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": "14741", "LimitNPROCSoft": "14741", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14741", "LimitSIGPENDINGSoft": "14741", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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 sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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]", "StartupMemoryHigh": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4422", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 31 August 2024 08:26:07 -0400 (0:00:01.588) 0:00:13.432 ******* changed: [managed_node3] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed_node3] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 31 August 2024 08:26:08 -0400 (0:00:01.916) 0:00:15.349 ******* skipping: [managed_node3] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "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_node3] => (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_node3] => (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_node3] => (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_node3] => (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_node3] => (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_node3] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 31 August 2024 08:26:09 -0400 (0:00:00.064) 0:00:15.413 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 31 August 2024 08:26:09 -0400 (0:00:00.034) 0:00:15.448 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 31 August 2024 08:26:09 -0400 (0:00:00.037) 0:00:15.485 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 31 August 2024 08:26:09 -0400 (0:00:00.060) 0:00:15.545 ******* ok: [managed_node3] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 31 August 2024 08:26:10 -0400 (0:00:00.958) 0:00:16.504 ******* included: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 => (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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 => (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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:26:10 -0400 (0:00:00.103) 0:00:16.607 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:26:10 -0400 (0:00:00.029) 0:00:16.637 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:26:10 -0400 (0:00:00.033) 0:00:16.671 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:26:10 -0400 (0:00:00.035) 0:00:16.707 ******* skipping: [managed_node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:26:10 -0400 (0:00:00.025) 0:00:16.733 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:26:12 -0400 (0:00:01.761) 0:00:18.495 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107167.999217, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6e2c97fea086f83de438da48dd1b7bc194971b09", "ctime": 1725107168.0962172, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203577, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107167.994217, "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": "1474865475", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:26:13 -0400 (0:00:01.022) 0:00:19.517 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:26:13 -0400 (0:00:00.021) 0:00:19.539 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:26:13 -0400 (0:00:00.043) 0:00:19.583 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:26:13 -0400 (0:00:00.040) 0:00:19.623 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107167.9492168, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "91e6957cf958b4274f5e3510977cce2c71dcfc42", "ctime": 1725107168.097217, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203576, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107167.994217, "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": "1534351823", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:26:13 -0400 (0:00:00.366) 0:00:19.990 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:26:13 -0400 (0:00:00.020) 0:00:20.010 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:26:13 -0400 (0:00:00.043) 0:00:20.054 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "64:2B:4F:CA:66:59:E1:5C:E8:6C:DF:31:C2:A4:7E:75:3E:93:F9:79" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "66:70:86:B7:84:E5:84:FE:25:FC:AF:77:00:67:9B:C1:86:9B:D9:D3:CA:96:5E:0F:55:29:D2:24:C2:39:6F:94:E9:D6:71:93:F0:EB:8F:2D:44:AF:B2:7A:97:25:23:E9:6D:03:EE:D2:EF:B4:47:C8:EA:C1:FB:D1:4E:F8:FB:39:B2:7F:D4:B3:FC:1F:02:00:10:A9:99:F8:9F:0C:D6:A4:BC:81:43:D6:3F:D7:9D:7A:4F:CC:F9:C2:3F:0C:A7:D6:12:9F:77:B4:4D:C7:84:35:B9:F0:99:BE:DF:C5:39:F1:3D:65:85:31:9D:E3:5B:06:4A:C5:BA:B1:08:0A:F5:5D:A7:13:B3:C7:80:EE:1E:C3:F7:14:B0:31:BD:58:2D:CB:3F:A6:00:AE:D9:6C:F7:EE:45:98:DF:1C:69:37:12:E4:72:8C:A3:EC:F9:58:9D:A8:8E:49:6E:AE:1D:8D:38:74:B8:F5:45:FD:85:5B:09:BD:F2:36:27:33:F6:6B:EF:D4:AA:6F:A4:E8:3D:19:17:73:63:1F:4E:01:13:D6:96:1B:A6:9B:89:5D:A7:AC:53:DE:95:CA:0D:C6:5E:95:78:D1:FC:DA:25:C5:C4:DF:12:CC:E2:16:34:C5:43:D4:95:EC:57:5A:68:58:83:FB:01:32:F1:F7:71:B2:A0:A3:DC:60" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122607Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:26:14 -0400 (0:00:00.600) 0:00:20.655 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "64:2B:4F:CA:66:59:E1:5C:E8:6C:DF:31:C2:A4:7E:75:3E:93:F9:79" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "66:70:86:B7:84:E5:84:FE:25:FC:AF:77:00:67:9B:C1:86:9B:D9:D3:CA:96:5E:0F:55:29:D2:24:C2:39:6F:94:E9:D6:71:93:F0:EB:8F:2D:44:AF:B2:7A:97:25:23:E9:6D:03:EE:D2:EF:B4:47:C8:EA:C1:FB:D1:4E:F8:FB:39:B2:7F:D4:B3:FC:1F:02:00:10:A9:99:F8:9F:0C:D6:A4:BC:81:43:D6:3F:D7:9D:7A:4F:CC:F9:C2:3F:0C:A7:D6:12:9F:77:B4:4D:C7:84:35:B9:F0:99:BE:DF:C5:39:F1:3D:65:85:31:9D:E3:5B:06:4A:C5:BA:B1:08:0A:F5:5D:A7:13:B3:C7:80:EE:1E:C3:F7:14:B0:31:BD:58:2D:CB:3F:A6:00:AE:D9:6C:F7:EE:45:98:DF:1C:69:37:12:E4:72:8C:A3:EC:F9:58:9D:A8:8E:49:6E:AE:1D:8D:38:74:B8:F5:45:FD:85:5B:09:BD:F2:36:27:33:F6:6B:EF:D4:AA:6F:A4:E8:3D:19:17:73:63:1F:4E:01:13:D6:96:1B:A6:9B:89:5D:A7:AC:53:DE:95:CA:0D:C6:5E:95:78:D1:FC:DA:25:C5:C4:DF:12:CC:E2:16:34:C5:43:D4:95:EC:57:5A:68:58:83:FB:01:32:F1:F7:71:B2:A0:A3:DC:60" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122607Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:26:14 -0400 (0:00:00.021) 0:00:20.676 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:26:14 -0400 (0:00:00.041) 0:00:20.718 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:26:14 -0400 (0:00:00.021) 0:00:20.739 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:26:14 -0400 (0:00:00.042) 0:00:20.781 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:26:14 -0400 (0:00:00.047) 0:00:20.828 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:26:14 -0400 (0:00:00.056) 0:00:20.885 ******* ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.036111", "end": "2024-08-31 08:26:15.017837", "rc": 0, "start": "2024-08-31 08:26:14.981726" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:26:15 -0400 (0:00:00.578) 0:00:21.463 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:26:15 -0400 (0:00:00.061) 0:00:21.525 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:26:15 -0400 (0:00:00.033) 0:00:21.558 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:26:15 -0400 (0:00:00.031) 0:00:21.590 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:26:15 -0400 (0:00:00.032) 0:00:21.622 ******* skipping: [managed_node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:26:15 -0400 (0:00:00.022) 0:00:21.645 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:26:16 -0400 (0:00:01.685) 0:00:23.330 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107168.754218, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d0baf6c445a8d2c6bf6b0d3dd61535b5d6070f9f", "ctime": 1725107168.8852181, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203579, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107168.750218, "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": "1789309287", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:26:17 -0400 (0:00:00.367) 0:00:23.698 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:26:17 -0400 (0:00:00.021) 0:00:23.719 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:26:17 -0400 (0:00:00.061) 0:00:23.781 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:26:17 -0400 (0:00:00.069) 0:00:23.850 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107168.700218, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7c8bf1dc968a6748da71e3b64c69b760bf5387cd", "ctime": 1725107168.886218, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 203578, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725107168.750218, "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": "106838508", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:26:17 -0400 (0:00:00.384) 0:00:24.235 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:26:17 -0400 (0:00:00.022) 0:00:24.257 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:26:17 -0400 (0:00:00.046) 0:00:24.304 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "F9:1A:28:AD:E9:EB:66:5E:87:3F:B0:4B:97:B7:E4:BC:41:58:76:9F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "65:D3:84:85:1B:7F:C4:96:C0:2B:BD:D9:9D:85:CF:98:28:81:92:49:3A:1E:32:08:42:03:09:A5:D8:B1:4D:64:4A:FC:B7:00:66:40:6A:A1:C2:BC:D0:EF:95:D6:50:4E:F4:FF:02:62:6E:1E:0E:FE:A0:99:72:2A:F4:2E:A5:CC:B8:B7:41:46:01:1F:D8:88:2B:F9:4A:70:1F:72:12:E4:1C:56:D0:73:98:56:E4:8E:38:C7:09:98:09:55:8D:74:33:15:7A:D8:9B:0F:71:22:C3:19:B0:B0:F6:32:FE:A1:8C:40:4C:AF:80:56:16:5C:FD:DD:5E:9B:94:E3:5B:11:07:BC:AA:C4:81:29:DD:C3:E3:0E:FD:BF:AA:36:0D:14:37:B3:15:AF:71:D2:11:3D:F8:A3:F3:BF:FC:EB:AC:A2:61:41:DE:FE:44:F1:FC:26:EF:41:A2:0F:33:1A:52:A7:67:34:00:C7:E0:25:8C:5A:3E:B8:A7:C0:72:EB:B1:D4:A4:BD:24:03:68:6E:06:23:F7:5A:52:96:5B:5E:D3:F3:68:7D:C9:66:51:1A:CD:63:B5:8A:5B:98:39:38:53:20:D3:F0:37:8B:9F:ED:6A:92:BA:D4:7F:6D:B6:81:7B:4E:9C:BA:46:59:0E:F4:BE:FD:36:79:40:2A:CC:B7:4B:53" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122608Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:26:18 -0400 (0:00:00.433) 0:00:24.738 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "F9:1A:28:AD:E9:EB:66:5E:87:3F:B0:4B:97:B7:E4:BC:41:58:76:9F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "65:D3:84:85:1B:7F:C4:96:C0:2B:BD:D9:9D:85:CF:98:28:81:92:49:3A:1E:32:08:42:03:09:A5:D8:B1:4D:64:4A:FC:B7:00:66:40:6A:A1:C2:BC:D0:EF:95:D6:50:4E:F4:FF:02:62:6E:1E:0E:FE:A0:99:72:2A:F4:2E:A5:CC:B8:B7:41:46:01:1F:D8:88:2B:F9:4A:70:1F:72:12:E4:1C:56:D0:73:98:56:E4:8E:38:C7:09:98:09:55:8D:74:33:15:7A:D8:9B:0F:71:22:C3:19:B0:B0:F6:32:FE:A1:8C:40:4C:AF:80:56:16:5C:FD:DD:5E:9B:94:E3:5B:11:07:BC:AA:C4:81:29:DD:C3:E3:0E:FD:BF:AA:36:0D:14:37:B3:15:AF:71:D2:11:3D:F8:A3:F3:BF:FC:EB:AC:A2:61:41:DE:FE:44:F1:FC:26:EF:41:A2:0F:33:1A:52:A7:67:34:00:C7:E0:25:8C:5A:3E:B8:A7:C0:72:EB:B1:D4:A4:BD:24:03:68:6E:06:23:F7:5A:52:96:5B:5E:D3:F3:68:7D:C9:66:51:1A:CD:63:B5:8A:5B:98:39:38:53:20:D3:F0:37:8B:9F:ED:6A:92:BA:D4:7F:6D:B6:81:7B:4E:9C:BA:46:59:0E:F4:BE:FD:36:79:40:2A:CC:B7:4B:53" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122608Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:26:18 -0400 (0:00:00.033) 0:00:24.771 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:26:18 -0400 (0:00:00.049) 0:00:24.820 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:26:18 -0400 (0:00:00.035) 0:00:24.856 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:26:18 -0400 (0:00:00.069) 0:00:24.926 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:26:18 -0400 (0:00:00.077) 0:00:25.004 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:26:18 -0400 (0:00:00.140) 0:00:25.144 ******* ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.035916", "end": "2024-08-31 08:26:19.103234", "rc": 0, "start": "2024-08-31 08:26:19.067318" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:26:19 -0400 (0:00:00.403) 0:00:25.548 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 31 August 2024 08:26:19 -0400 (0:00:00.077) 0:00:25.625 ******* ok: [managed_node3] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 31 August 2024 08:26:20 -0400 (0:00:00.907) 0:00:26.532 ******* included: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 31 August 2024 08:26:20 -0400 (0:00:00.020) 0:00:26.553 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 31 August 2024 08:26:20 -0400 (0:00:00.038) 0:00:26.591 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 31 August 2024 08:26:20 -0400 (0:00:00.021) 0:00:26.612 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 31 August 2024 08:26:20 -0400 (0:00:00.019) 0:00:26.632 ******* skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [managed_node3] => (item=Fedora.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=Fedora_39.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "Fedora_39.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 31 August 2024 08:26:20 -0400 (0:00:00.043) 0:00:26.675 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 31 August 2024 08:26:22 -0400 (0:00:01.721) 0:00:28.396 ******* ok: [managed_node3] => (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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 31 August 2024 08:26:23 -0400 (0:00:01.763) 0:00:30.160 ******* ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 31 August 2024 08:26:24 -0400 (0:00:00.596) 0:00:30.756 ******* ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 31 August 2024 08:26:24 -0400 (0:00:00.473) 0:00:31.229 ******* ok: [managed_node3] => (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-08-31 08:26:06 EDT", "ActiveEnterTimestampMonotonic": "296308481", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice syslog.target sysinit.target systemd-journald.socket network.target dbus-broker.service basic.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-31 08:26:06 EDT", "AssertTimestampMonotonic": "296269693", "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": "627175000", "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-08-31 08:26:06 EDT", "ConditionTimestampMonotonic": "296269689", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "5090", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DefaultStartupMemoryLow": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DropInPaths": "/usr/lib/systemd/system/service.d/10-timeout-abort.conf", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "4379", "ExecMainStartTimestamp": "Sat 2024-08-31 08:26:06 EDT", "ExecMainStartTimestampMonotonic": "296281630", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-31 08:26:06 EDT] ; stop_time=[n/a] ; pid=4379 ; 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-08-31 08:26:06 EDT] ; stop_time=[n/a] ; pid=4379 ; code=(null) ; status=0/0 }", "ExitType": "main", "ExtensionImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FileDescriptorStorePreserve": "restart", "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-08-31 08:26:06 EDT", "InactiveExitTimestampMonotonic": "296282042", "InvocationID": "22bf84d7dce0415f8da1166859e51e11", "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": "14741", "LimitNPROCSoft": "14741", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14741", "LimitSIGPENDINGSoft": "14741", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "4379", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4308992", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryKSM": "no", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemoryPressureThresholdUSec": "200ms", "MemoryPressureWatch": "auto", "MemorySwapMax": "infinity", "MemoryZSwapMax": "infinity", "MountAPIVFS": "no", "MountImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartMaxDelayUSec": "infinity", "RestartMode": "normal", "RestartSteps": "0", "RestartUSec": "100ms", "RestartUSecNext": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RootEphemeral": "no", "RootImagePolicy": "root=verity+signed+encrypted+unprotected+absent:usr=verity+signed+encrypted+unprotected+absent:home=encrypted+unprotected+absent:srv=encrypted+unprotected+absent:tmp=encrypted+unprotected+absent:var=encrypted+unprotected+absent", "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]", "StartupMemoryHigh": "18446744073709551615", "StartupMemoryLow": "0", "StartupMemoryMax": "18446744073709551615", "StartupMemorySwapMax": "18446744073709551615", "StartupMemoryZSwapMax": "18446744073709551615", "StateChangeTimestamp": "Sat 2024-08-31 08:26:06 EDT", "StateChangeTimestampMonotonic": "296308481", "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": "4422", "TimeoutAbortUSec": "45s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "45s", "TimeoutStopFailureMode": "abort", "TimeoutStopUSec": "45s", "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 31 August 2024 08:26:25 -0400 (0:00:00.625) 0:00:31.855 ******* changed: [managed_node3] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed_node3] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 31 August 2024 08:26:27 -0400 (0:00:01.638) 0:00:33.494 ******* skipping: [managed_node3] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "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_node3] => (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_node3] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "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_node3] => (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_node3] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "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_node3] => (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_node3] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 31 August 2024 08:26:27 -0400 (0:00:00.103) 0:00:33.598 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 31 August 2024 08:26:27 -0400 (0:00:00.056) 0:00:33.654 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 31 August 2024 08:26:27 -0400 (0:00:00.065) 0:00:33.719 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 31 August 2024 08:26:27 -0400 (0:00:00.102) 0:00:33.822 ******* ok: [managed_node3] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 31 August 2024 08:26:28 -0400 (0:00:00.909) 0:00:34.732 ******* included: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 => (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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 => (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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:26:28 -0400 (0:00:00.091) 0:00:34.824 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:26:28 -0400 (0:00:00.028) 0:00:34.852 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:26:28 -0400 (0:00:00.038) 0:00:34.890 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:26:28 -0400 (0:00:00.029) 0:00:34.919 ******* skipping: [managed_node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:26:28 -0400 (0:00:00.016) 0:00:34.936 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:26:30 -0400 (0:00:01.726) 0:00:36.663 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107186.149242, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2dea4e2d31014afbb08074b09be8502ea5854af4", "ctime": 1725107186.2562423, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203581, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1725107186.144242, "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": "3757396468", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:26:30 -0400 (0:00:00.366) 0:00:37.030 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:26:30 -0400 (0:00:00.021) 0:00:37.051 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:26:30 -0400 (0:00:00.044) 0:00:37.095 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:26:30 -0400 (0:00:00.042) 0:00:37.138 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107186.099242, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0ba871df0ef376d917f60a5bb77231f8f256c2c6", "ctime": 1725107186.2562423, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 203580, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1725107186.144242, "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": "2970147151", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.373) 0:00:37.512 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.029) 0:00:37.542 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.072) 0:00:37.614 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "1C:CD:AD:88:26:A9:8F:DE:BB:49:CA:FB:B7:37:DC:F6:A3:2B:BB:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:42:5A:0D:5F:45:EC:48:69:79:3D:EE:4D:47:5A:95:66:62:A5:44:2C:42:0B:C6:6E:EB:89:97:21:EF:C7:E1:E4:92:70:66:90:BD:82:D7:7E:04:F6:A0:83:E8:C2:41:63:16:6B:FB:4B:24:88:AB:3F:63:80:1A:B5:5F:07:A7:05:04:A6:C7:84:22:86:64:93:AC:FB:46:59:29:FC:B3:F4:F0:EA:68:EF:63:43:68:CE:9A:FC:83:47:68:43:90:93:F8:4C:E6:10:BF:E8:E4:AA:09:12:4B:78:D6:15:99:A3:62:AD:72:87:BC:E2:D6:7A:DF:CC:71:67:51:47:37:4C:37:67:6A:2B:D8:9F:18:F1:6D:63:92:2C:EB:15:32:92:92:9E:B9:17:25:B2:B2:B5:81:9B:29:78:A6:47:62:C9:C2:90:83:C0:41:EE:D1:89:95:3E:5B:5C:70:BB:59:E5:FF:B0:A6:1F:DF:3C:B8:9F:B7:3F:EC:CA:BC:6F:A4:8B:30:E5:A1:9E:E9:62:D8:39:7B:1A:8A:D0:95:88:2D:94:2D:5B:E0:A8:6A:0E:C0:8F:E5:2C:5E:FC:EF:A7:05:7D:A7:C3:F6:26:90:35:C9:FF:69:AF:F4:2B:77:FD:BA:8F:B7:B9:D3:65:23:1E:31:79:99:51:42:92:BC:FE:92" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122626Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.423) 0:00:38.038 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "1C:CD:AD:88:26:A9:8F:DE:BB:49:CA:FB:B7:37:DC:F6:A3:2B:BB:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:42:5A:0D:5F:45:EC:48:69:79:3D:EE:4D:47:5A:95:66:62:A5:44:2C:42:0B:C6:6E:EB:89:97:21:EF:C7:E1:E4:92:70:66:90:BD:82:D7:7E:04:F6:A0:83:E8:C2:41:63:16:6B:FB:4B:24:88:AB:3F:63:80:1A:B5:5F:07:A7:05:04:A6:C7:84:22:86:64:93:AC:FB:46:59:29:FC:B3:F4:F0:EA:68:EF:63:43:68:CE:9A:FC:83:47:68:43:90:93:F8:4C:E6:10:BF:E8:E4:AA:09:12:4B:78:D6:15:99:A3:62:AD:72:87:BC:E2:D6:7A:DF:CC:71:67:51:47:37:4C:37:67:6A:2B:D8:9F:18:F1:6D:63:92:2C:EB:15:32:92:92:9E:B9:17:25:B2:B2:B5:81:9B:29:78:A6:47:62:C9:C2:90:83:C0:41:EE:D1:89:95:3E:5B:5C:70:BB:59:E5:FF:B0:A6:1F:DF:3C:B8:9F:B7:3F:EC:CA:BC:6F:A4:8B:30:E5:A1:9E:E9:62:D8:39:7B:1A:8A:D0:95:88:2D:94:2D:5B:E0:A8:6A:0E:C0:8F:E5:2C:5E:FC:EF:A7:05:7D:A7:C3:F6:26:90:35:C9:FF:69:AF:F4:2B:77:FD:BA:8F:B7:B9:D3:65:23:1E:31:79:99:51:42:92:BC:FE:92" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122626Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.022) 0:00:38.061 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.047) 0:00:38.108 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.029) 0:00:38.138 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.046) 0:00:38.185 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.048) 0:00:38.233 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:26:31 -0400 (0:00:00.046) 0:00:38.280 ******* ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.037656", "end": "2024-08-31 08:26:32.261667", "rc": 0, "start": "2024-08-31 08:26:32.224011" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:26:32 -0400 (0:00:00.425) 0:00:38.705 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:26:32 -0400 (0:00:00.045) 0:00:38.751 ******* ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:26:32 -0400 (0:00:00.016) 0:00:38.767 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:26:32 -0400 (0:00:00.024) 0:00:38.792 ******* skipping: [managed_node3] => { "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-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:26:32 -0400 (0:00:00.019) 0:00:38.812 ******* skipping: [managed_node3] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:26:32 -0400 (0:00:00.016) 0:00:38.828 ******* ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:26:34 -0400 (0:00:01.705) 0:00:40.534 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107186.888243, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b3212442b98081a4b77719e0fd1d38592882b2d7", "ctime": 1725107186.884243, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203583, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1725107186.884243, "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": "3616624350", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:26:34 -0400 (0:00:00.385) 0:00:40.920 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:26:34 -0400 (0:00:00.020) 0:00:40.941 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:26:34 -0400 (0:00:00.044) 0:00:40.985 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:26:34 -0400 (0:00:00.042) 0:00:41.028 ******* ok: [managed_node3] => { "changed": false, "stat": { "atime": 1725107186.839243, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "dbd7afbd6e4ad38154f88401923e8d12b9782e99", "ctime": 1725107186.884243, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 203582, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1725107186.884243, "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": "2168803088", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.378) 0:00:41.406 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.038) 0:00:41.445 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.070) 0:00:41.515 ******* ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "F8:CA:20:6A:A0:86:91:B3:32:4D:36:E1:E8:4B:D5:26:62:9B:D2:DF" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "71:B9:86:31:E0:2D:B6:39:BF:F5:4B:98:B5:DA:3E:E6:DA:B8:6E:2A:F6:A9:8D:81:3C:A2:6B:05:10:EA:57:90:D5:34:1A:81:40:58:B9:D6:C0:49:AD:DF:7C:8A:35:5B:21:A4:F1:90:0D:9E:5F:2B:16:66:2D:0C:86:D4:2C:55:23:82:3A:97:74:DF:63:14:B5:1A:83:C9:91:7A:63:FA:0E:5D:AF:2B:78:B4:EC:C0:E6:5D:48:87:C6:E3:B2:08:72:18:7A:71:6D:71:1D:CD:95:6B:B2:ED:16:84:4E:95:EC:68:A6:3C:E1:77:20:D7:EF:A7:7F:DE:B3:6C:6F:3B:F2:84:E8:59:1A:0A:F0:D4:71:BE:2E:5E:DE:8C:35:F9:E5:B3:A4:83:B3:94:C5:D2:88:7D:DB:4A:3B:CE:0F:BF:60:EB:04:04:B0:C4:39:BD:23:71:7B:CA:49:50:D1:CA:23:DB:C6:59:D2:EC:4C:50:6B:35:D4:26:41:D9:67:62:45:88:7F:63:02:5D:A6:21:E9:C7:03:F5:86:A9:75:9F:D4:58:6F:D4:00:B4:C6:57:9A:20:B6:8D:5E:BA:9B:06:1F:60:D1:7D:9C:2D:F4:9B:BE:85:5A:0D:38:A4:B8:E9:DE:18:A6:A1:DE:6C:4F:F1:F8:16:83:86:EB:CE:98:44" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122626Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.434) 0:00:41.950 ******* ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "66:6F:BB:54:E4:B8:A3:B5:20:F9:80:48:A8:01:4F:0E:6C:36:E5:CE" }, "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": "F8:CA:20:6A:A0:86:91:B3:32:4D:36:E1:E8:4B:D5:26:62:9B:D2:DF" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "71:B9:86:31:E0:2D:B6:39:BF:F5:4B:98:B5:DA:3E:E6:DA:B8:6E:2A:F6:A9:8D:81:3C:A2:6B:05:10:EA:57:90:D5:34:1A:81:40:58:B9:D6:C0:49:AD:DF:7C:8A:35:5B:21:A4:F1:90:0D:9E:5F:2B:16:66:2D:0C:86:D4:2C:55:23:82:3A:97:74:DF:63:14:B5:1A:83:C9:91:7A:63:FA:0E:5D:AF:2B:78:B4:EC:C0:E6:5D:48:87:C6:E3:B2:08:72:18:7A:71:6D:71:1D:CD:95:6B:B2:ED:16:84:4E:95:EC:68:A6:3C:E1:77:20:D7:EF:A7:7F:DE:B3:6C:6F:3B:F2:84:E8:59:1A:0A:F0:D4:71:BE:2E:5E:DE:8C:35:F9:E5:B3:A4:83:B3:94:C5:D2:88:7D:DB:4A:3B:CE:0F:BF:60:EB:04:04:B0:C4:39:BD:23:71:7B:CA:49:50:D1:CA:23:DB:C6:59:D2:EC:4C:50:6B:35:D4:26:41:D9:67:62:45:88:7F:63:02:5D:A6:21:E9:C7:03:F5:86:A9:75:9F:D4:58:6F:D4:00:B4:C6:57:9A:20:B6:8D:5E:BA:9B:06:1F:60:D1:7D:9C:2D:F4:9B:BE:85:5A:0D:38:A4:B8:E9:DE:18:A6:A1:DE:6C:4F:F1:F8:16:83:86:EB:CE:98:44" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122607Z", "not_valid_before": "20240831122626Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.025) 0:00:41.975 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.066) 0:00:42.042 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.038) 0:00:42.080 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.055) 0:00:42.136 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.064) 0:00:42.201 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:26:35 -0400 (0:00:00.075) 0:00:42.276 ******* ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.038583", "end": "2024-08-31 08:26:36.244459", "rc": 0, "start": "2024-08-31 08:26:36.205876" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:26:36 -0400 (0:00:00.413) 0:00:42.690 ******* ok: [managed_node3] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed_node3 : ok=101 changed=8 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 31 August 2024 08:26:36 -0400 (0:00:00.056) 0:00:42.746 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.32s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.92s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.83s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.76s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 1.76s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.73s /tmp/collections-z6s/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.72s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 1.71s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.69s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.64s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.59s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 1.57s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Retrieve certificate file stats ----------------------------------------- 1.02s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Gathering Facts --------------------------------------------------------- 0.96s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.94s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.91s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.91s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Ensure user exists ------------------------------------------------------ 0.76s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Ensure group "somegroup" exists ----------------------------------------- 0.65s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.63s /tmp/collections-z6s/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90