ansible-playbook [core 2.17.4] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-HNg executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 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 No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /tmp/collections-HNg/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-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 28 September 2024 11:34:59 -0400 (0:00:00.008) 0:00:00.008 **** [WARNING]: Platform linux on host managed-node2 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-node2] TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 28 September 2024 11:35:01 -0400 (0:00:01.563) 0:00:01.572 **** changed: [managed-node2] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 28 September 2024 11:35:02 -0400 (0:00:00.942) 0:00:02.514 **** changed: [managed-node2] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 28 September 2024 11:35:02 -0400 (0:00:00.710) 0:00:03.224 **** ok: [managed-node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 28 September 2024 11:35:03 -0400 (0:00:00.956) 0:00:04.181 **** included: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 28 September 2024 11:35:03 -0400 (0:00:00.027) 0:00:04.208 **** skipping: [managed-node2] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 28 September 2024 11:35:03 -0400 (0:00:00.061) 0:00:04.270 **** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 28 September 2024 11:35:04 -0400 (0:00:00.683) 0:00:04.953 **** ok: [managed-node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 28 September 2024 11:35:04 -0400 (0:00:00.043) 0:00:04.996 **** skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [managed-node2] => (item=Fedora.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed-node2] => (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-node2] => (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-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 28 September 2024 11:35:04 -0400 (0:00:00.061) 0:00:05.057 **** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 28 September 2024 11:35:07 -0400 (0:00:02.493) 0:00:07.551 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 28 September 2024 11:35:09 -0400 (0:00:01.843) 0:00:09.394 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 28 September 2024 11:35:09 -0400 (0:00:00.627) 0:00:10.022 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 28 September 2024 11:35:10 -0400 (0:00:00.475) 0:00:10.497 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-09-28 11:34:50 EDT", "ActiveEnterTimestampMonotonic": "369011681", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target dbus-broker.service network.target systemd-journald.socket system.slice syslog.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-28 11:34:50 EDT", "AssertTimestampMonotonic": "368989913", "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": "499529000", "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-09-28 11:34:50 EDT", "ConditionTimestampMonotonic": "368989909", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "5871", "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": "3791", "ExecMainStartTimestamp": "Sat 2024-09-28 11:34:50 EDT", "ExecMainStartTimestampMonotonic": "368996135", "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-09-28 11:34:50 EDT] ; stop_time=[n/a] ; pid=3791 ; 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-09-28 11:34:50 EDT] ; stop_time=[n/a] ; pid=3791 ; 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-09-28 11:34:50 EDT", "InactiveExitTimestampMonotonic": "368997116", "InvocationID": "a97d50315cff4407b165fa4f5fcd376d", "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": "14752", "LimitNPROCSoft": "14752", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14752", "LimitSIGPENDINGSoft": "14752", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "3791", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "3653632", "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": "sysinit.target dbus.socket 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", "StateChangeTimestamp": "Sat 2024-09-28 11:34:50 EDT", "StateChangeTimestampMonotonic": "369011681", "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": "4425", "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-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 28 September 2024 11:35:11 -0400 (0:00:01.117) 0:00:11.615 **** changed: [managed-node2] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed-node2] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 28 September 2024 11:35:13 -0400 (0:00:02.088) 0:00:13.704 **** skipping: [managed-node2] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 28 September 2024 11:35:13 -0400 (0:00:00.084) 0:00:13.788 **** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 28 September 2024 11:35:13 -0400 (0:00:00.059) 0:00:13.848 **** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 28 September 2024 11:35:13 -0400 (0:00:00.062) 0:00:13.911 **** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 28 September 2024 11:35:13 -0400 (0:00:00.105) 0:00:14.017 **** ok: [managed-node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 28 September 2024 11:35:14 -0400 (0:00:00.947) 0:00:14.964 **** included: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 28 September 2024 11:35:14 -0400 (0:00:00.107) 0:00:15.072 **** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 28 September 2024 11:35:14 -0400 (0:00:00.029) 0:00:15.102 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 28 September 2024 11:35:14 -0400 (0:00:00.033) 0:00:15.135 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 28 September 2024 11:35:14 -0400 (0:00:00.034) 0:00:15.170 **** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 28 September 2024 11:35:14 -0400 (0:00:00.023) 0:00:15.194 **** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 28 September 2024 11:35:16 -0400 (0:00:01.777) 0:00:16.971 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537712.241186, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c515f2f8943554b3cd373b40a13dfd152aa66502", "ctime": 1727537712.3281863, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 376, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1727537712.238186, "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": "417448386", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 28 September 2024 11:35:16 -0400 (0:00:00.359) 0:00:17.331 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 28 September 2024 11:35:17 -0400 (0:00:00.021) 0:00:17.352 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 28 September 2024 11:35:17 -0400 (0:00:00.044) 0:00:17.397 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 28 September 2024 11:35:17 -0400 (0:00:00.041) 0:00:17.438 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537712.1931858, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "df1a69e52de51b2533b5f203bd0275700aca21a0", "ctime": 1727537712.3281863, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 353, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1727537712.238186, "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": "2301799302", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 28 September 2024 11:35:17 -0400 (0:00:00.362) 0:00:17.801 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 28 September 2024 11:35:17 -0400 (0:00:00.020) 0:00:17.822 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 28 September 2024 11:35:17 -0400 (0:00:00.044) 0:00:17.866 **** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "98:7F:52:D9:68:C2:AF:45:F1:5E:30:87:17:4C:A4:A8:59:06:5E:B7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "87:2C:89:1F:A9:53:6F:38:34:9A:45:0B:25:F9:0E:04:7B:28:98:01:F0:61:90:F0:CF:8F:DE:8D:B5:8F:1F:FF:BC:C5:DB:E9:DC:97:0D:46:BF:ED:6D:C8:14:19:65:89:EC:ED:0B:1E:DB:DD:7A:5F:D9:91:83:07:3F:72:23:2E:71:2E:3D:FC:34:E9:10:EB:50:EF:83:10:C8:F0:13:2B:CB:A5:F0:CA:4A:49:32:68:6A:98:57:61:96:B0:23:FA:51:1B:03:7F:A7:75:2D:17:C2:12:A0:DF:96:A4:28:C6:3B:39:9D:0D:E6:22:3B:D1:FB:14:39:36:D3:4D:79:D3:5E:E3:67:27:B8:9D:16:14:F4:69:54:E3:E4:48:6C:D8:2D:B2:F9:7A:A0:FE:1B:11:54:55:F3:57:61:52:9F:14:40:4F:83:1E:70:54:C2:48:74:33:E6:64:38:57:A4:46:D7:CD:7C:1A:F4:9A:8D:BB:9D:92:EA:38:AB:86:74:86:F7:EB:BF:72:D3:5F:AA:F3:36:60:91:73:7B:B6:CF:36:33:65:9D:2D:58:D9:AA:DC:41:4D:62:F4:AD:1C:C1:A3:43:B7:FD:28:BE:53:80:20:9E:0C:E1:6B:7F:70:F4:78:12:3D:41:2F:F0:BC:19:21:2E:83:98:8C:01:7C:69:18" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153512Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 28 September 2024 11:35:18 -0400 (0:00:00.592) 0:00:18.459 **** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "98:7F:52:D9:68:C2:AF:45:F1:5E:30:87:17:4C:A4:A8:59:06:5E:B7" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "87:2C:89:1F:A9:53:6F:38:34:9A:45:0B:25:F9:0E:04:7B:28:98:01:F0:61:90:F0:CF:8F:DE:8D:B5:8F:1F:FF:BC:C5:DB:E9:DC:97:0D:46:BF:ED:6D:C8:14:19:65:89:EC:ED:0B:1E:DB:DD:7A:5F:D9:91:83:07:3F:72:23:2E:71:2E:3D:FC:34:E9:10:EB:50:EF:83:10:C8:F0:13:2B:CB:A5:F0:CA:4A:49:32:68:6A:98:57:61:96:B0:23:FA:51:1B:03:7F:A7:75:2D:17:C2:12:A0:DF:96:A4:28:C6:3B:39:9D:0D:E6:22:3B:D1:FB:14:39:36:D3:4D:79:D3:5E:E3:67:27:B8:9D:16:14:F4:69:54:E3:E4:48:6C:D8:2D:B2:F9:7A:A0:FE:1B:11:54:55:F3:57:61:52:9F:14:40:4F:83:1E:70:54:C2:48:74:33:E6:64:38:57:A4:46:D7:CD:7C:1A:F4:9A:8D:BB:9D:92:EA:38:AB:86:74:86:F7:EB:BF:72:D3:5F:AA:F3:36:60:91:73:7B:B6:CF:36:33:65:9D:2D:58:D9:AA:DC:41:4D:62:F4:AD:1C:C1:A3:43:B7:FD:28:BE:53:80:20:9E:0C:E1:6B:7F:70:F4:78:12:3D:41:2F:F0:BC:19:21:2E:83:98:8C:01:7C:69:18" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153512Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 28 September 2024 11:35:18 -0400 (0:00:00.037) 0:00:18.496 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 28 September 2024 11:35:18 -0400 (0:00:00.071) 0:00:18.567 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 28 September 2024 11:35:18 -0400 (0:00:00.035) 0:00:18.603 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 28 September 2024 11:35:18 -0400 (0:00:00.071) 0:00:18.674 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 28 September 2024 11:35:18 -0400 (0:00:00.080) 0:00:18.755 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 28 September 2024 11:35:18 -0400 (0:00:00.077) 0:00:18.833 **** ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.037969", "end": "2024-09-28 11:35:19.114300", "rc": 0, "start": "2024-09-28 11:35:19.076331" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 28 September 2024 11:35:19 -0400 (0:00:00.679) 0:00:19.512 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 28 September 2024 11:35:19 -0400 (0:00:00.073) 0:00:19.586 **** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 28 September 2024 11:35:19 -0400 (0:00:00.033) 0:00:19.619 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 28 September 2024 11:35:19 -0400 (0:00:00.032) 0:00:19.651 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 28 September 2024 11:35:19 -0400 (0:00:00.033) 0:00:19.684 **** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 28 September 2024 11:35:19 -0400 (0:00:00.024) 0:00:19.709 **** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 28 September 2024 11:35:21 -0400 (0:00:01.781) 0:00:21.490 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537713.2201908, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f6dab173acaaff546420921f588b8b169a4d453f", "ctime": 1727537713.287191, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 1966, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1727537713.2161906, "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": "2182815307", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 28 September 2024 11:35:21 -0400 (0:00:00.361) 0:00:21.852 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 28 September 2024 11:35:21 -0400 (0:00:00.020) 0:00:21.873 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 28 September 2024 11:35:21 -0400 (0:00:00.044) 0:00:21.917 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 28 September 2024 11:35:21 -0400 (0:00:00.041) 0:00:21.958 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537713.1711905, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c31839513399c441aebd254651645b0d8858a1f3", "ctime": 1727537713.287191, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 1947, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1727537713.2161906, "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": "1167235418", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 28 September 2024 11:35:21 -0400 (0:00:00.372) 0:00:22.331 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.033) 0:00:22.365 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.054) 0:00:22.419 **** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "7B:0C:90:A1:30:E2:8D:D8:20:89:FD:AE:FD:FD:90:7A:94:07:D4:40" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C5:52:54:6F:4F:6B:F4:23:D0:F1:0E:1D:A8:65:5A:FE:92:62:05:92:88:31:8F:8E:E0:EC:CB:E6:26:81:0A:38:D1:50:0F:50:4D:E3:FD:16:75:E8:C0:D6:22:9B:59:E8:5A:73:17:4D:10:53:F9:A5:3E:A0:ED:A1:9B:B9:0E:FA:6E:4F:21:7A:20:75:DE:F8:41:FF:0B:4D:56:82:9D:A2:0B:DB:A0:97:24:51:52:B7:08:7E:85:08:55:5F:CD:75:41:9A:C9:02:95:C9:8F:7C:57:27:77:F8:11:36:79:1F:00:3F:E3:EF:51:73:8F:BE:D6:72:8F:78:43:5C:26:86:07:95:64:A0:21:F0:76:01:A1:D2:F1:D2:D3:F4:07:3E:0B:28:97:6D:1F:72:03:3D:BB:F0:6F:DD:9D:EB:FF:F8:31:F3:65:01:2F:B7:DF:A3:80:B7:6A:A4:0C:6C:38:24:D4:37:5D:3E:6C:66:B6:FF:85:C1:3A:F7:3D:E1:CD:45:43:68:99:FF:27:22:61:DE:EE:5D:BD:B4:60:79:FF:5A:35:F7:37:30:56:C6:61:C0:E7:9C:BE:11:EE:04:EA:E6:22:59:20:98:94:52:DC:D8:79:9E:C4:5D:06:5C:AE:A8:A2:15:E0:39:BF:8E:06:DB:93:19:17:DC:D9:60:F8:7B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153513Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.502) 0:00:22.921 **** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "7B:0C:90:A1:30:E2:8D:D8:20:89:FD:AE:FD:FD:90:7A:94:07:D4:40" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C5:52:54:6F:4F:6B:F4:23:D0:F1:0E:1D:A8:65:5A:FE:92:62:05:92:88:31:8F:8E:E0:EC:CB:E6:26:81:0A:38:D1:50:0F:50:4D:E3:FD:16:75:E8:C0:D6:22:9B:59:E8:5A:73:17:4D:10:53:F9:A5:3E:A0:ED:A1:9B:B9:0E:FA:6E:4F:21:7A:20:75:DE:F8:41:FF:0B:4D:56:82:9D:A2:0B:DB:A0:97:24:51:52:B7:08:7E:85:08:55:5F:CD:75:41:9A:C9:02:95:C9:8F:7C:57:27:77:F8:11:36:79:1F:00:3F:E3:EF:51:73:8F:BE:D6:72:8F:78:43:5C:26:86:07:95:64:A0:21:F0:76:01:A1:D2:F1:D2:D3:F4:07:3E:0B:28:97:6D:1F:72:03:3D:BB:F0:6F:DD:9D:EB:FF:F8:31:F3:65:01:2F:B7:DF:A3:80:B7:6A:A4:0C:6C:38:24:D4:37:5D:3E:6C:66:B6:FF:85:C1:3A:F7:3D:E1:CD:45:43:68:99:FF:27:22:61:DE:EE:5D:BD:B4:60:79:FF:5A:35:F7:37:30:56:C6:61:C0:E7:9C:BE:11:EE:04:EA:E6:22:59:20:98:94:52:DC:D8:79:9E:C4:5D:06:5C:AE:A8:A2:15:E0:39:BF:8E:06:DB:93:19:17:DC:D9:60:F8:7B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153513Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.036) 0:00:22.958 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.071) 0:00:23.029 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.035) 0:00:23.065 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.057) 0:00:23.122 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.060) 0:00:23.183 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 28 September 2024 11:35:22 -0400 (0:00:00.072) 0:00:23.256 **** ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.037910", "end": "2024-09-28 11:35:23.279240", "rc": 0, "start": "2024-09-28 11:35:23.241330" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 28 September 2024 11:35:23 -0400 (0:00:00.422) 0:00:23.678 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 28 September 2024 11:35:23 -0400 (0:00:00.083) 0:00:23.761 **** ok: [managed-node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 28 September 2024 11:35:24 -0400 (0:00:00.880) 0:00:24.641 **** included: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 28 September 2024 11:35:24 -0400 (0:00:00.021) 0:00:24.663 **** skipping: [managed-node2] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 28 September 2024 11:35:24 -0400 (0:00:00.038) 0:00:24.701 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 28 September 2024 11:35:24 -0400 (0:00:00.021) 0:00:24.722 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 28 September 2024 11:35:24 -0400 (0:00:00.027) 0:00:24.750 **** skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } ok: [managed-node2] => (item=Fedora.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed-node2] => (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-node2] => (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-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 28 September 2024 11:35:24 -0400 (0:00:00.076) 0:00:24.826 **** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 28 September 2024 11:35:26 -0400 (0:00:01.736) 0:00:26.563 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 28 September 2024 11:35:27 -0400 (0:00:01.748) 0:00:28.311 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 28 September 2024 11:35:28 -0400 (0:00:00.410) 0:00:28.722 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 28 September 2024 11:35:28 -0400 (0:00:00.448) 0:00:29.171 **** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-09-28 11:34:50 EDT", "ActiveEnterTimestampMonotonic": "369011681", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target dbus-broker.service network.target systemd-journald.socket system.slice syslog.target dbus.socket", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-28 11:34:50 EDT", "AssertTimestampMonotonic": "368989913", "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": "922595000", "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-09-28 11:34:50 EDT", "ConditionTimestampMonotonic": "368989909", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "5871", "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": "3791", "ExecMainStartTimestamp": "Sat 2024-09-28 11:34:50 EDT", "ExecMainStartTimestampMonotonic": "368996135", "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-09-28 11:34:50 EDT] ; stop_time=[n/a] ; pid=3791 ; 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-09-28 11:34:50 EDT] ; stop_time=[n/a] ; pid=3791 ; 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-09-28 11:34:50 EDT", "InactiveExitTimestampMonotonic": "368997116", "InvocationID": "a97d50315cff4407b165fa4f5fcd376d", "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": "14752", "LimitNPROCSoft": "14752", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14752", "LimitSIGPENDINGSoft": "14752", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "3791", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4362240", "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": "sysinit.target dbus.socket 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", "StateChangeTimestamp": "Sat 2024-09-28 11:34:50 EDT", "StateChangeTimestampMonotonic": "369011681", "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": "4425", "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-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 28 September 2024 11:35:29 -0400 (0:00:00.601) 0:00:29.772 **** changed: [managed-node2] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed-node2] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 28 September 2024 11:35:31 -0400 (0:00:01.603) 0:00:31.375 **** skipping: [managed-node2] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "false_condition": "certificate_test_mode | d(false)", "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 28 September 2024 11:35:31 -0400 (0:00:00.063) 0:00:31.439 **** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 28 September 2024 11:35:31 -0400 (0:00:00.038) 0:00:31.477 **** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 28 September 2024 11:35:31 -0400 (0:00:00.063) 0:00:31.541 **** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 28 September 2024 11:35:31 -0400 (0:00:00.093) 0:00:31.635 **** ok: [managed-node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 28 September 2024 11:35:32 -0400 (0:00:00.899) 0:00:32.534 **** included: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs_mode.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0620'}) included: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 => (item={'path': '/etc/pki/tls/certs/certid_mode.crt', 'key_path': '/etc/pki/tls/private/certid_mode.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'mode': '0600'}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 28 September 2024 11:35:32 -0400 (0:00:00.062) 0:00:32.596 **** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 28 September 2024 11:35:32 -0400 (0:00:00.019) 0:00:32.616 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 28 September 2024 11:35:32 -0400 (0:00:00.045) 0:00:32.664 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 28 September 2024 11:35:32 -0400 (0:00:00.062) 0:00:32.727 **** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 28 September 2024 11:35:32 -0400 (0:00:00.046) 0:00:32.773 **** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 28 September 2024 11:35:34 -0400 (0:00:01.813) 0:00:34.587 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537730.0932724, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6277dfe6e7c42943cfc75e7d0fe7d9bbf9ccf16a", "ctime": 1727537730.222273, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 1982, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1727537730.0912724, "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": "3189899390", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 28 September 2024 11:35:34 -0400 (0:00:00.392) 0:00:34.980 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 28 September 2024 11:35:34 -0400 (0:00:00.054) 0:00:35.034 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 28 September 2024 11:35:34 -0400 (0:00:00.077) 0:00:35.112 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 28 September 2024 11:35:34 -0400 (0:00:00.072) 0:00:35.184 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537730.0472722, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7aa2eab1dce8af8f72ea7c2f88fcb0272b735415", "ctime": 1727537730.223273, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 1981, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1727537730.0912724, "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": "4060069764", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.410) 0:00:35.595 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.035) 0:00:35.631 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.075) 0:00:35.706 **** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "D9:1C:BC:04:AE:59:EE:D7:DD:27:3A:86:70:43:FE:B0:58:81:E3:A9" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6B:D9:8B:6D:40:E2:BC:19:83:63:0C:61:76:BA:28:F6:53:4A:6E:AD:57:5B:C4:FF:FA:62:80:81:99:1B:B4:73:AD:A5:C3:68:65:48:99:77:B7:F2:8A:CA:23:CE:84:50:CF:B1:9F:FE:C0:BA:9D:DC:01:06:5D:A4:12:AF:1E:11:7B:61:44:C4:5D:49:C1:63:F8:DC:13:0A:17:C4:A7:38:86:1B:D7:6C:23:0C:43:56:BA:50:E1:5C:5A:A5:30:D6:AD:AE:4C:B6:50:F0:BF:FE:69:20:0A:2A:B1:C1:7C:10:EC:C1:47:E8:64:5A:41:02:14:F7:AE:EA:BD:DE:E3:5C:A7:B9:F0:15:AD:FA:32:71:41:89:0C:B0:E1:1B:65:61:54:DA:13:EE:07:11:EB:E7:3D:4A:1A:03:42:C6:03:68:9E:B5:BC:4E:9C:D1:6E:52:23:59:E3:BF:31:C2:3C:99:D7:3F:FA:23:2D:8D:F9:F5:94:68:DA:01:4A:57:3D:92:4E:EF:D4:D5:04:63:08:13:34:45:35:F6:90:52:EC:48:7E:41:70:AA:7A:0D:EA:DD:8A:15:82:7B:74:11:BC:22:F4:3A:6A:5D:14:FA:4C:B6:22:59:A2:FA:CA:CB:66:55:9F:DE:AB:5E:F1:66:86:55:1B:16:90:BE:29:71:18:57" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153530Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.453) 0:00:36.160 **** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "D9:1C:BC:04:AE:59:EE:D7:DD:27:3A:86:70:43:FE:B0:58:81:E3:A9" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6B:D9:8B:6D:40:E2:BC:19:83:63:0C:61:76:BA:28:F6:53:4A:6E:AD:57:5B:C4:FF:FA:62:80:81:99:1B:B4:73:AD:A5:C3:68:65:48:99:77:B7:F2:8A:CA:23:CE:84:50:CF:B1:9F:FE:C0:BA:9D:DC:01:06:5D:A4:12:AF:1E:11:7B:61:44:C4:5D:49:C1:63:F8:DC:13:0A:17:C4:A7:38:86:1B:D7:6C:23:0C:43:56:BA:50:E1:5C:5A:A5:30:D6:AD:AE:4C:B6:50:F0:BF:FE:69:20:0A:2A:B1:C1:7C:10:EC:C1:47:E8:64:5A:41:02:14:F7:AE:EA:BD:DE:E3:5C:A7:B9:F0:15:AD:FA:32:71:41:89:0C:B0:E1:1B:65:61:54:DA:13:EE:07:11:EB:E7:3D:4A:1A:03:42:C6:03:68:9E:B5:BC:4E:9C:D1:6E:52:23:59:E3:BF:31:C2:3C:99:D7:3F:FA:23:2D:8D:F9:F5:94:68:DA:01:4A:57:3D:92:4E:EF:D4:D5:04:63:08:13:34:45:35:F6:90:52:EC:48:7E:41:70:AA:7A:0D:EA:DD:8A:15:82:7B:74:11:BC:22:F4:3A:6A:5D:14:FA:4C:B6:22:59:A2:FA:CA:CB:66:55:9F:DE:AB:5E:F1:66:86:55:1B:16:90:BE:29:71:18:57" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153530Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.025) 0:00:36.185 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.044) 0:00:36.230 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.027) 0:00:36.257 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 28 September 2024 11:35:35 -0400 (0:00:00.051) 0:00:36.309 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.052) 0:00:36.362 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.046) 0:00:36.409 **** ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.040411", "end": "2024-09-28 11:35:36.414199", "rc": 0, "start": "2024-09-28 11:35:36.373788" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.404) 0:00:36.813 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.077) 0:00:36.891 **** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.028) 0:00:36.919 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.029) 0:00:36.949 **** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.028) 0:00:36.977 **** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 28 September 2024 11:35:36 -0400 (0:00:00.017) 0:00:36.995 **** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 28 September 2024 11:35:38 -0400 (0:00:01.756) 0:00:38.751 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537730.8692763, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fd2b4810c13ce5fdbfbb70e43632bd8a4bfada7a", "ctime": 1727537730.8662763, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 1986, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727537730.8662763, "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": "4188324228", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 28 September 2024 11:35:38 -0400 (0:00:00.362) 0:00:39.113 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 28 September 2024 11:35:38 -0400 (0:00:00.021) 0:00:39.135 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 28 September 2024 11:35:38 -0400 (0:00:00.044) 0:00:39.180 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 28 September 2024 11:35:38 -0400 (0:00:00.041) 0:00:39.221 **** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1727537730.8222759, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0808fa5887632b5401f6d6cd35a2fe1c65a4990c", "ctime": 1727537730.8662763, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 1985, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1727537730.8662763, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "4262103931", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.383) 0:00:39.605 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.022) 0:00:39.627 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.044) 0:00:39.672 **** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "93:96:1B:A1:4F:7F:82:C5:33:7F:30:79:F8:05:12:F3:FA:AA:70:B5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "DA:47:30:CB:BC:86:89:47:73:AC:B7:B2:CF:2F:47:93:5A:E5:0D:2D:64:F7:9A:2D:7A:F0:47:C8:42:89:4D:8F:D5:36:44:6D:E3:5F:21:D5:57:91:AC:89:B5:2F:CD:9B:B8:C2:F3:D4:34:7F:66:4E:E5:FF:97:53:4F:4A:D7:82:0D:AF:6D:1F:31:73:F1:7A:E9:16:A3:FE:FA:AC:A4:25:FA:59:F7:B5:0E:F7:AC:59:AA:FD:24:55:51:CB:4C:3A:B9:27:FE:7D:A5:C6:4F:CA:E1:D3:E2:E8:2F:48:77:36:FD:E5:F3:19:CB:F4:9B:06:07:6D:19:E9:19:B4:EB:7D:0E:E4:4C:E1:44:DB:10:63:34:9C:3D:9F:26:DF:DF:A9:5D:A2:5D:9C:5B:C8:FB:7C:DB:95:E0:DA:45:A9:5B:28:A2:E9:28:AB:BA:4B:3F:B0:E8:19:FC:87:0D:40:5D:E8:67:6C:7D:01:E4:A7:31:51:B3:4A:19:A0:04:2A:43:F7:BE:48:7F:25:A0:D7:CD:F9:10:2F:A1:89:7F:34:02:C7:96:7D:F5:C5:C4:BD:11:41:2A:94:D8:0E:62:8E:86:C3:F2:0C:36:4D:2D:25:04:C9:AD:2B:D4:EC:0D:26:AF:2F:FD:58:78:58:2A:FF:78:D6:57:C3:70:ED:DC:EA:BE:74" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153530Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.428) 0:00:40.100 **** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "95:79:1B:0E:05:82:C7:C2:02:8D:D4:1B:58:B0:F9:62:40:5C:D1:79" }, "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": "93:96:1B:A1:4F:7F:82:C5:33:7F:30:79:F8:05:12:F3:FA:AA:70:B5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "DA:47:30:CB:BC:86:89:47:73:AC:B7:B2:CF:2F:47:93:5A:E5:0D:2D:64:F7:9A:2D:7A:F0:47:C8:42:89:4D:8F:D5:36:44:6D:E3:5F:21:D5:57:91:AC:89:B5:2F:CD:9B:B8:C2:F3:D4:34:7F:66:4E:E5:FF:97:53:4F:4A:D7:82:0D:AF:6D:1F:31:73:F1:7A:E9:16:A3:FE:FA:AC:A4:25:FA:59:F7:B5:0E:F7:AC:59:AA:FD:24:55:51:CB:4C:3A:B9:27:FE:7D:A5:C6:4F:CA:E1:D3:E2:E8:2F:48:77:36:FD:E5:F3:19:CB:F4:9B:06:07:6D:19:E9:19:B4:EB:7D:0E:E4:4C:E1:44:DB:10:63:34:9C:3D:9F:26:DF:DF:A9:5D:A2:5D:9C:5B:C8:FB:7C:DB:95:E0:DA:45:A9:5B:28:A2:E9:28:AB:BA:4B:3F:B0:E8:19:FC:87:0D:40:5D:E8:67:6C:7D:01:E4:A7:31:51:B3:4A:19:A0:04:2A:43:F7:BE:48:7F:25:A0:D7:CD:F9:10:2F:A1:89:7F:34:02:C7:96:7D:F5:C5:C4:BD:11:41:2A:94:D8:0E:62:8E:86:C3:F2:0C:36:4D:2D:25:04:C9:AD:2B:D4:EC:0D:26:AF:2F:FD:58:78:58:2A:FF:78:D6:57:C3:70:ED:DC:EA:BE:74" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250928153450Z", "not_valid_before": "20240928153530Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.022) 0:00:40.123 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.042) 0:00:40.166 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.022) 0:00:40.189 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.040) 0:00:40.230 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 28 September 2024 11:35:39 -0400 (0:00:00.062) 0:00:40.292 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 28 September 2024 11:35:40 -0400 (0:00:00.050) 0:00:40.343 **** ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.040509", "end": "2024-09-28 11:35:40.371240", "rc": 0, "start": "2024-09-28 11:35:40.330731" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 28 September 2024 11:35:40 -0400 (0:00:00.416) 0:00:40.760 **** ok: [managed-node2] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* managed-node2 : ok=101 changed=4 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 28 September 2024 11:35:40 -0400 (0:00:00.057) 0:00:40.817 **** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.49s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.09s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.84s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 1.81s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.78s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.78s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 1.76s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 1.75s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.74s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.60s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.56s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.12s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.96s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.95s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Ensure user exists ------------------------------------------------------ 0.94s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.90s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.88s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Ensure group "somegroup" exists ----------------------------------------- 0.71s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.68s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve auto-renew flag ------------------------------------------------ 0.68s /tmp/collections-HNg/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143