ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_fs_attrs.yml *************************************************** 5 plays in /tmp/collections-ITy/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-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 30 November 2024 07:28:22 -0500 (0:00:00.022) 0:00:00.022 ***** ok: [managed-node3] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 30 November 2024 07:28:23 -0500 (0:00:01.021) 0:00:01.044 ***** changed: [managed-node3] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 30 November 2024 07:28:24 -0500 (0:00:00.716) 0:00:01.760 ***** changed: [managed-node3] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 30 November 2024 07:28:24 -0500 (0:00:00.528) 0:00:02.289 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 30 November 2024 07:28:25 -0500 (0:00:00.669) 0:00:02.958 ***** included: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 30 November 2024 07:28:25 -0500 (0:00:00.022) 0:00:02.981 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 30 November 2024 07:28:25 -0500 (0:00:00.041) 0:00:03.022 ***** ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 30 November 2024 07:28:26 -0500 (0:00:00.526) 0:00:03.549 ***** ok: [managed-node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 30 November 2024 07:28:26 -0500 (0:00:00.060) 0:00:03.609 ***** skipping: [managed-node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 30 November 2024 07:28:26 -0500 (0:00:00.064) 0:00:03.674 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 30 November 2024 07:28:29 -0500 (0:00:03.081) 0:00:06.755 ***** changed: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: xmlrpc-c-client-1.51.0-9.el8.x86_64", "Installed: xmlrpc-c-1.51.0-9.el8.x86_64", "Installed: certmonger-0.79.17-2.el8.x86_64" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 30 November 2024 07:28:33 -0500 (0:00:04.408) 0:00:11.164 ***** changed: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 30 November 2024 07:28:34 -0500 (0:00:00.630) 0:00:11.794 ***** changed: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 30 November 2024 07:28:34 -0500 (0:00:00.426) 0:00:12.221 ***** changed: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-journald.socket dbus.service syslog.target sysinit.target network.target dbus.socket basic.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22406", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 30 November 2024 07:28:36 -0500 (0:00:01.447) 0:00:13.669 ***** changed: [managed-node3] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed-node3] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 30 November 2024 07:28:38 -0500 (0:00:02.212) 0:00:15.881 ***** skipping: [managed-node3] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 30 November 2024 07:28:38 -0500 (0:00:00.090) 0:00:15.972 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 30 November 2024 07:28:38 -0500 (0:00:00.052) 0:00:16.025 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 30 November 2024 07:28:38 -0500 (0:00:00.057) 0:00:16.082 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 30 November 2024 07:28:38 -0500 (0:00:00.082) 0:00:16.165 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 30 November 2024 07:28:39 -0500 (0:00:00.803) 0:00:16.969 ***** included: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 30 November 2024 07:28:39 -0500 (0:00:00.123) 0:00:17.092 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 30 November 2024 07:28:39 -0500 (0:00:00.031) 0:00:17.124 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 30 November 2024 07:28:39 -0500 (0:00:00.060) 0:00:17.184 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 30 November 2024 07:28:39 -0500 (0:00:00.062) 0:00:17.247 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 30 November 2024 07:28:39 -0500 (0:00:00.058) 0:00:17.305 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 30 November 2024 07:28:42 -0500 (0:00:02.911) 0:00:20.217 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969717.2252593, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "dfc373f9d0a87f894eb61c45136d2b46ce446ae7", "ctime": 1732969717.3572598, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718634, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1732969717.2222593, "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": "272704781", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 30 November 2024 07:28:43 -0500 (0:00:00.476) 0:00:20.693 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 30 November 2024 07:28:43 -0500 (0:00:00.056) 0:00:20.750 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 30 November 2024 07:28:43 -0500 (0:00:00.078) 0:00:20.828 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 30 November 2024 07:28:43 -0500 (0:00:00.067) 0:00:20.895 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969717.1782591, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1fdf0d32638dd726a3b856c6d37670b5b15d7ccb", "ctime": 1732969717.3582597, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7074497, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1732969717.2222593, "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": "145726896", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 30 November 2024 07:28:43 -0500 (0:00:00.476) 0:00:21.371 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 30 November 2024 07:28:43 -0500 (0:00:00.066) 0:00:21.438 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 30 November 2024 07:28:44 -0500 (0:00:00.102) 0:00:21.540 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "7C:7B:C7:67:3D:13:EC:8F:BD:23:D4:0F:B3:8E:B5:9A:0B:74:50:6A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:4C:DD:51:43:CE:31:7A:7C:26:D0:BA:54:D1:40:EA:B7:65:8B:C3:B6:DA:16:32:20:32:51:F8:33:9C:51:05:EC:52:FA:A7:2E:A8:6E:20:2C:29:E4:D1:13:4D:C7:8B:73:46:74:9D:ED:1E:B7:49:9A:B5:7E:AC:DD:CC:46:5E:D0:39:3E:40:96:06:CA:E2:CA:81:C4:13:D5:AA:D7:C1:03:BF:A0:AB:BA:AC:5B:A8:BB:DF:8B:AD:DB:C0:A5:7D:E2:87:50:BA:E4:89:0E:7B:97:50:72:81:7A:9C:26:C2:5C:92:D7:31:94:46:9D:93:37:6D:6A:7A:0F:AC:C5:89:2A:9C:AB:BC:5F:A6:E7:C9:EB:73:0C:94:FD:4E:6A:DD:96:94:8D:A1:A0:3A:1E:60:73:80:73:6B:C5:7B:BC:DA:37:1D:47:33:4F:51:DC:B0:FE:94:5A:5F:A9:A2:BA:6A:5A:9F:1D:4E:F6:D0:34:EE:8B:5F:22:3B:D3:82:D5:2B:58:34:8C:57:2F:5D:B0:FE:D2:68:4C:CD:E5:86:22:7F:36:3E:B5:75:8B:B6:58:4A:D8:7D:58:A9:7A:CE:94:10:B5:9F:4E:02:2C:A2:DE:3C:7C:0D:F8:D5:C7:33:83:C2:95:E6:1E:D2:21:A0:76:00:B7:5D:D6:37:DD:0E:B2:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122837Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 30 November 2024 07:28:44 -0500 (0:00:00.766) 0:00:22.307 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "7C:7B:C7:67:3D:13:EC:8F:BD:23:D4:0F:B3:8E:B5:9A:0B:74:50:6A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "39:4C:DD:51:43:CE:31:7A:7C:26:D0:BA:54:D1:40:EA:B7:65:8B:C3:B6:DA:16:32:20:32:51:F8:33:9C:51:05:EC:52:FA:A7:2E:A8:6E:20:2C:29:E4:D1:13:4D:C7:8B:73:46:74:9D:ED:1E:B7:49:9A:B5:7E:AC:DD:CC:46:5E:D0:39:3E:40:96:06:CA:E2:CA:81:C4:13:D5:AA:D7:C1:03:BF:A0:AB:BA:AC:5B:A8:BB:DF:8B:AD:DB:C0:A5:7D:E2:87:50:BA:E4:89:0E:7B:97:50:72:81:7A:9C:26:C2:5C:92:D7:31:94:46:9D:93:37:6D:6A:7A:0F:AC:C5:89:2A:9C:AB:BC:5F:A6:E7:C9:EB:73:0C:94:FD:4E:6A:DD:96:94:8D:A1:A0:3A:1E:60:73:80:73:6B:C5:7B:BC:DA:37:1D:47:33:4F:51:DC:B0:FE:94:5A:5F:A9:A2:BA:6A:5A:9F:1D:4E:F6:D0:34:EE:8B:5F:22:3B:D3:82:D5:2B:58:34:8C:57:2F:5D:B0:FE:D2:68:4C:CD:E5:86:22:7F:36:3E:B5:75:8B:B6:58:4A:D8:7D:58:A9:7A:CE:94:10:B5:9F:4E:02:2C:A2:DE:3C:7C:0D:F8:D5:C7:33:83:C2:95:E6:1E:D2:21:A0:76:00:B7:5D:D6:37:DD:0E:B2:6E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122837Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 30 November 2024 07:28:44 -0500 (0:00:00.074) 0:00:22.382 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 30 November 2024 07:28:44 -0500 (0:00:00.081) 0:00:22.463 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.077) 0:00:22.540 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.054) 0:00:22.595 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.052) 0:00:22.648 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.064) 0:00:22.712 ***** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.045116", "end": "2024-11-30 07:28:45.747684", "rc": 0, "start": "2024-11-30 07:28:45.702568" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.578) 0:00:23.291 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.057) 0:00:23.348 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.019) 0:00:23.367 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.045) 0:00:23.413 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 30 November 2024 07:28:45 -0500 (0:00:00.041) 0:00:23.454 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 30 November 2024 07:28:46 -0500 (0:00:00.041) 0:00:23.496 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 30 November 2024 07:28:48 -0500 (0:00:02.958) 0:00:26.454 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969718.1932619, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "062f6bfe236c18267652a52001a5c11db7858c01", "ctime": 1732969718.341262, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718636, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1732969718.1902618, "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": "4211127239", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 30 November 2024 07:28:49 -0500 (0:00:00.433) 0:00:26.887 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 30 November 2024 07:28:49 -0500 (0:00:00.044) 0:00:26.932 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 30 November 2024 07:28:49 -0500 (0:00:00.050) 0:00:26.983 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 30 November 2024 07:28:49 -0500 (0:00:00.050) 0:00:27.033 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969718.1492617, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "334319f6a87e03e3973f14c1235abafb7cb5e170", "ctime": 1732969718.3422623, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718635, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1732969718.1902618, "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": "2307088163", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.468) 0:00:27.501 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.062) 0:00:27.563 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.072) 0:00:27.636 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "48:27:90:E6:A8:31:CB:65:4A:55:2E:C6:A8:DB:C5:16:6E:4A:64:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "9E:7B:E6:3F:9E:FD:91:D6:C9:C5:1E:C9:AF:5E:10:CF:A1:6E:B3:7E:49:AC:58:08:2C:41:52:0C:7A:0F:12:21:2D:CF:52:DA:2A:48:E2:F9:3B:3F:1E:CE:5B:A8:0E:2B:9F:47:57:08:F4:FD:2B:AA:26:53:E5:50:A4:7A:04:52:22:E3:F0:A0:10:19:ED:C6:60:EA:E3:60:3C:A1:F0:CD:E6:FC:B6:A9:8A:84:8A:98:DB:E3:59:35:57:D3:D2:BC:75:95:F5:06:34:00:C2:09:7C:75:08:F8:D3:75:78:49:32:02:47:31:AE:D9:2A:85:AB:A5:D7:6F:8F:6E:C1:20:DC:21:0C:0B:80:C7:BC:FD:33:7F:64:DF:D6:49:95:B7:5B:CD:3C:57:E0:47:AD:D1:EE:B3:4B:6F:85:79:46:F1:05:E9:E2:6A:8D:61:45:89:07:2E:5A:30:4D:24:05:DC:12:2C:13:D8:F1:BB:EE:C8:B9:DF:40:69:24:FB:39:9F:34:29:75:20:DA:90:F0:29:69:9E:2B:D9:CA:09:D6:04:36:04:A6:5E:6F:17:06:92:ED:E6:09:77:AF:04:CA:C9:DA:FD:E7:2F:2A:55:C3:D1:01:81:38:F0:EA:82:37:2F:46:9B:8A:B2:46:B2:80:1C:6E:6B:BA:FD:0E:00:BC:3E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122838Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.523) 0:00:28.159 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "48:27:90:E6:A8:31:CB:65:4A:55:2E:C6:A8:DB:C5:16:6E:4A:64:DC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "9E:7B:E6:3F:9E:FD:91:D6:C9:C5:1E:C9:AF:5E:10:CF:A1:6E:B3:7E:49:AC:58:08:2C:41:52:0C:7A:0F:12:21:2D:CF:52:DA:2A:48:E2:F9:3B:3F:1E:CE:5B:A8:0E:2B:9F:47:57:08:F4:FD:2B:AA:26:53:E5:50:A4:7A:04:52:22:E3:F0:A0:10:19:ED:C6:60:EA:E3:60:3C:A1:F0:CD:E6:FC:B6:A9:8A:84:8A:98:DB:E3:59:35:57:D3:D2:BC:75:95:F5:06:34:00:C2:09:7C:75:08:F8:D3:75:78:49:32:02:47:31:AE:D9:2A:85:AB:A5:D7:6F:8F:6E:C1:20:DC:21:0C:0B:80:C7:BC:FD:33:7F:64:DF:D6:49:95:B7:5B:CD:3C:57:E0:47:AD:D1:EE:B3:4B:6F:85:79:46:F1:05:E9:E2:6A:8D:61:45:89:07:2E:5A:30:4D:24:05:DC:12:2C:13:D8:F1:BB:EE:C8:B9:DF:40:69:24:FB:39:9F:34:29:75:20:DA:90:F0:29:69:9E:2B:D9:CA:09:D6:04:36:04:A6:5E:6F:17:06:92:ED:E6:09:77:AF:04:CA:C9:DA:FD:E7:2F:2A:55:C3:D1:01:81:38:F0:EA:82:37:2F:46:9B:8A:B2:46:B2:80:1C:6E:6B:BA:FD:0E:00:BC:3E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122838Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.044) 0:00:28.204 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.047) 0:00:28.251 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.045) 0:00:28.297 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.076) 0:00:28.374 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 30 November 2024 07:28:50 -0500 (0:00:00.093) 0:00:28.468 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 30 November 2024 07:28:51 -0500 (0:00:00.051) 0:00:28.520 ***** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.045645", "end": "2024-11-30 07:28:51.427109", "rc": 0, "start": "2024-11-30 07:28:51.381464" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 30 November 2024 07:28:51 -0500 (0:00:00.429) 0:00:28.949 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 30 November 2024 07:28:51 -0500 (0:00:00.053) 0:00:29.003 ***** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 30 November 2024 07:28:52 -0500 (0:00:00.627) 0:00:29.630 ***** included: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 30 November 2024 07:28:52 -0500 (0:00:00.024) 0:00:29.654 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 30 November 2024 07:28:52 -0500 (0:00:00.044) 0:00:29.699 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 30 November 2024 07:28:52 -0500 (0:00:00.043) 0:00:29.742 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 30 November 2024 07:28:52 -0500 (0:00:00.042) 0:00:29.785 ***** skipping: [managed-node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 30 November 2024 07:28:52 -0500 (0:00:00.067) 0:00:29.853 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 30 November 2024 07:28:55 -0500 (0:00:02.955) 0:00:32.809 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 30 November 2024 07:28:58 -0500 (0:00:03.011) 0:00:35.820 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 30 November 2024 07:28:58 -0500 (0:00:00.446) 0:00:36.267 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 30 November 2024 07:28:59 -0500 (0:00:00.407) 0:00:36.674 ***** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-11-30 07:28:36 EST", "ActiveEnterTimestampMonotonic": "308050217", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target system.slice systemd-journald.socket dbus.socket dbus.service basic.target network.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-11-30 07:28:36 EST", "AssertTimestampMonotonic": "308038611", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-11-30 07:28:36 EST", "ConditionTimestampMonotonic": "308038610", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9476", "ExecMainStartTimestamp": "Sat 2024-11-30 07:28:36 EST", "ExecMainStartTimestampMonotonic": "308039428", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-11-30 07:28:36 EST] ; stop_time=[n/a] ; pid=9476 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-11-30 07:28:36 EST", "InactiveExitTimestampMonotonic": "308039466", "InvocationID": "f211a786120f4f83ab71862c03723acd", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14004", "LimitNPROCSoft": "14004", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14004", "LimitSIGPENDINGSoft": "14004", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9476", "MemoryAccounting": "yes", "MemoryCurrent": "3719168", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-11-30 07:28:36 EST", "StateChangeTimestampMonotonic": "308050217", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22406", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-11-30 07:28:36 EST", "WatchdogTimestampMonotonic": "308050214", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 30 November 2024 07:28:59 -0500 (0:00:00.534) 0:00:37.209 ***** changed: [managed-node3] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed-node3] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 30 November 2024 07:29:01 -0500 (0:00:01.655) 0:00:38.864 ***** skipping: [managed-node3] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 30 November 2024 07:29:01 -0500 (0:00:00.108) 0:00:38.972 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 30 November 2024 07:29:01 -0500 (0:00:00.059) 0:00:39.032 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 30 November 2024 07:29:01 -0500 (0:00:00.093) 0:00:39.125 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 30 November 2024 07:29:01 -0500 (0:00:00.080) 0:00:39.206 ***** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 30 November 2024 07:29:02 -0500 (0:00:00.715) 0:00:39.921 ***** included: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 30 November 2024 07:29:02 -0500 (0:00:00.118) 0:00:40.040 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 30 November 2024 07:29:02 -0500 (0:00:00.025) 0:00:40.065 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 30 November 2024 07:29:02 -0500 (0:00:00.062) 0:00:40.128 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 30 November 2024 07:29:02 -0500 (0:00:00.061) 0:00:40.189 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 30 November 2024 07:29:02 -0500 (0:00:00.049) 0:00:40.238 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 30 November 2024 07:29:05 -0500 (0:00:02.970) 0:00:43.209 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969740.3033185, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a0fc5a40e8b3bef66b82a878e34649d01b90fe1f", "ctime": 1732969740.3503184, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718638, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1732969740.3013184, "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": "1593720309", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 30 November 2024 07:29:06 -0500 (0:00:00.401) 0:00:43.610 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 30 November 2024 07:29:06 -0500 (0:00:00.048) 0:00:43.658 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 30 November 2024 07:29:06 -0500 (0:00:00.076) 0:00:43.735 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 30 November 2024 07:29:06 -0500 (0:00:00.090) 0:00:43.826 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969740.2593184, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65059764679a9d00cc6adbccd42c05c3faca8653", "ctime": 1732969740.3513186, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718637, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1732969740.3013184, "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": "2614579250", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 30 November 2024 07:29:06 -0500 (0:00:00.416) 0:00:44.243 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 30 November 2024 07:29:06 -0500 (0:00:00.049) 0:00:44.292 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 30 November 2024 07:29:06 -0500 (0:00:00.059) 0:00:44.352 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "1D:87:31:5B:9B:AC:24:E5:3E:7B:01:F1:A8:CE:93:15:EB:65:51:5F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "34:11:58:91:A2:20:10:04:0C:73:CB:F3:F8:E1:1F:09:AE:74:65:98:91:3F:F1:CD:F1:2B:45:70:E3:D6:78:52:19:76:5E:A6:04:42:C2:50:22:1A:19:78:05:E3:D3:D4:9B:5F:3B:24:62:52:23:79:97:21:FE:B2:44:AD:A4:23:6D:8D:CC:E6:A2:19:54:79:3A:38:4F:D7:DD:03:79:F6:F8:88:FF:25:76:B7:B5:E1:08:E2:30:62:23:50:59:1A:FC:F7:49:83:D0:49:F9:99:DC:3F:A1:72:0F:44:0E:81:C4:61:9C:A1:30:85:CF:B1:13:8B:7F:1B:09:DF:0D:DF:CF:02:98:4F:D2:FF:76:6B:60:12:99:6D:4D:4C:74:21:6F:06:98:55:4E:4F:72:68:12:54:82:AA:C5:8B:FA:D7:A6:C0:F1:48:B4:A5:27:12:5A:6D:84:73:BA:65:02:05:B2:02:B5:AB:E8:CC:29:EB:0E:C4:46:A4:04:DA:C6:2A:05:4E:AD:A6:D8:3C:70:17:95:C5:AD:69:99:16:04:1E:90:67:E7:98:16:F9:96:87:41:97:42:1C:FB:A3:59:42:0B:95:48:4D:B3:02:F6:2E:C5:A5:E7:33:BB:A2:96:2F:47:B1:8B:5F:9B:FA:68:51:AF:6F:43:B2:D5:85:4C:B6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122900Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 30 November 2024 07:29:07 -0500 (0:00:00.478) 0:00:44.831 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "1D:87:31:5B:9B:AC:24:E5:3E:7B:01:F1:A8:CE:93:15:EB:65:51:5F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "34:11:58:91:A2:20:10:04:0C:73:CB:F3:F8:E1:1F:09:AE:74:65:98:91:3F:F1:CD:F1:2B:45:70:E3:D6:78:52:19:76:5E:A6:04:42:C2:50:22:1A:19:78:05:E3:D3:D4:9B:5F:3B:24:62:52:23:79:97:21:FE:B2:44:AD:A4:23:6D:8D:CC:E6:A2:19:54:79:3A:38:4F:D7:DD:03:79:F6:F8:88:FF:25:76:B7:B5:E1:08:E2:30:62:23:50:59:1A:FC:F7:49:83:D0:49:F9:99:DC:3F:A1:72:0F:44:0E:81:C4:61:9C:A1:30:85:CF:B1:13:8B:7F:1B:09:DF:0D:DF:CF:02:98:4F:D2:FF:76:6B:60:12:99:6D:4D:4C:74:21:6F:06:98:55:4E:4F:72:68:12:54:82:AA:C5:8B:FA:D7:A6:C0:F1:48:B4:A5:27:12:5A:6D:84:73:BA:65:02:05:B2:02:B5:AB:E8:CC:29:EB:0E:C4:46:A4:04:DA:C6:2A:05:4E:AD:A6:D8:3C:70:17:95:C5:AD:69:99:16:04:1E:90:67:E7:98:16:F9:96:87:41:97:42:1C:FB:A3:59:42:0B:95:48:4D:B3:02:F6:2E:C5:A5:E7:33:BB:A2:96:2F:47:B1:8B:5F:9B:FA:68:51:AF:6F:43:B2:D5:85:4C:B6" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122900Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 30 November 2024 07:29:07 -0500 (0:00:00.062) 0:00:44.893 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 30 November 2024 07:29:07 -0500 (0:00:00.060) 0:00:44.953 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 30 November 2024 07:29:07 -0500 (0:00:00.046) 0:00:44.999 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 30 November 2024 07:29:07 -0500 (0:00:00.046) 0:00:45.046 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 30 November 2024 07:29:07 -0500 (0:00:00.052) 0:00:45.098 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 30 November 2024 07:29:07 -0500 (0:00:00.052) 0:00:45.151 ***** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048584", "end": "2024-11-30 07:29:08.069467", "rc": 0, "start": "2024-11-30 07:29:08.020883" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 30 November 2024 07:29:08 -0500 (0:00:00.457) 0:00:45.608 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 30 November 2024 07:29:08 -0500 (0:00:00.071) 0:00:45.680 ***** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 30 November 2024 07:29:08 -0500 (0:00:00.030) 0:00:45.710 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 30 November 2024 07:29:08 -0500 (0:00:00.051) 0:00:45.762 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 30 November 2024 07:29:08 -0500 (0:00:00.056) 0:00:45.818 ***** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 30 November 2024 07:29:08 -0500 (0:00:00.049) 0:00:45.867 ***** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 30 November 2024 07:29:11 -0500 (0:00:02.911) 0:00:48.779 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969741.1893208, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3b6593d40dc01d003bbd7cd6f1c35c38fa6b3395", "ctime": 1732969741.1873207, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718640, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1732969741.1873207, "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": "1020978027", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 30 November 2024 07:29:11 -0500 (0:00:00.483) 0:00:49.263 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 30 November 2024 07:29:11 -0500 (0:00:00.058) 0:00:49.321 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 30 November 2024 07:29:11 -0500 (0:00:00.055) 0:00:49.376 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 30 November 2024 07:29:11 -0500 (0:00:00.046) 0:00:49.423 ***** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1732969741.1443205, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "cb0a8b1204a04151fc863ae65a4476b7539c9515", "ctime": 1732969741.1863208, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718639, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1732969741.1863208, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "873317810", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 30 November 2024 07:29:12 -0500 (0:00:00.446) 0:00:49.870 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 30 November 2024 07:29:12 -0500 (0:00:00.054) 0:00:49.924 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 30 November 2024 07:29:12 -0500 (0:00:00.050) 0:00:49.975 ***** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "73:52:6F:60:69:D3:CC:85:E5:8B:6A:29:13:B6:53:D3:91:1B:E1:2F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "20:2E:E4:31:22:50:09:7D:5B:CF:A8:D0:43:64:DC:DE:00:BC:05:2C:CB:6B:3D:1F:95:7B:0B:AB:BD:5B:D7:BF:DD:8E:42:D0:77:37:3C:82:35:7A:C1:3F:CF:6D:D5:3F:D2:A3:6C:EF:46:69:9B:29:07:8B:17:2D:2B:82:B4:63:32:C3:96:EA:DC:D1:BD:7A:17:BD:7A:73:8C:25:EF:F4:08:0C:98:B9:61:16:C8:2E:1F:2B:DA:AD:1F:2A:67:A6:D7:C5:2E:FC:D8:1F:40:C7:03:D5:94:69:39:77:C1:EA:9D:FB:DC:D4:A5:49:74:91:7A:A7:93:8C:38:34:97:23:96:82:29:11:D4:1E:BE:ED:4E:8A:65:A6:07:3F:E8:0A:17:34:4F:A8:F9:FA:90:7C:ED:9A:77:C0:88:FC:25:76:FF:B0:DD:49:17:94:ED:79:E9:0B:51:AF:8A:FA:C9:8F:58:B9:07:E8:43:7B:D6:59:CB:EC:A4:AF:1F:4E:89:89:A1:7D:38:B3:46:12:8A:EB:04:52:48:19:88:95:83:BC:9F:DA:FD:AC:B3:13:34:39:FC:CF:B4:94:76:EE:EC:82:56:82:97:57:8F:F2:3B:42:78:47:86:EF:EB:69:17:07:15:29:1A:34:7B:3D:D5:94:FE:20:A5:3F:62:DF:FD:38" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122901Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 30 November 2024 07:29:12 -0500 (0:00:00.494) 0:00:50.469 ***** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2A:49:45:8A:FC:CC:0D:70:5E:AC:E1:85:A9:85:AE:85:F5:AF:B0:9B" }, "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": "73:52:6F:60:69:D3:CC:85:E5:8B:6A:29:13:B6:53:D3:91:1B:E1:2F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "20:2E:E4:31:22:50:09:7D:5B:CF:A8:D0:43:64:DC:DE:00:BC:05:2C:CB:6B:3D:1F:95:7B:0B:AB:BD:5B:D7:BF:DD:8E:42:D0:77:37:3C:82:35:7A:C1:3F:CF:6D:D5:3F:D2:A3:6C:EF:46:69:9B:29:07:8B:17:2D:2B:82:B4:63:32:C3:96:EA:DC:D1:BD:7A:17:BD:7A:73:8C:25:EF:F4:08:0C:98:B9:61:16:C8:2E:1F:2B:DA:AD:1F:2A:67:A6:D7:C5:2E:FC:D8:1F:40:C7:03:D5:94:69:39:77:C1:EA:9D:FB:DC:D4:A5:49:74:91:7A:A7:93:8C:38:34:97:23:96:82:29:11:D4:1E:BE:ED:4E:8A:65:A6:07:3F:E8:0A:17:34:4F:A8:F9:FA:90:7C:ED:9A:77:C0:88:FC:25:76:FF:B0:DD:49:17:94:ED:79:E9:0B:51:AF:8A:FA:C9:8F:58:B9:07:E8:43:7B:D6:59:CB:EC:A4:AF:1F:4E:89:89:A1:7D:38:B3:46:12:8A:EB:04:52:48:19:88:95:83:BC:9F:DA:FD:AC:B3:13:34:39:FC:CF:B4:94:76:EE:EC:82:56:82:97:57:8F:F2:3B:42:78:47:86:EF:EB:69:17:07:15:29:1A:34:7B:3D:D5:94:FE:20:A5:3F:62:DF:FD:38" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251130122836Z", "not_valid_before": "20241130122901Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 30 November 2024 07:29:13 -0500 (0:00:00.084) 0:00:50.554 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 30 November 2024 07:29:13 -0500 (0:00:00.069) 0:00:50.624 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 30 November 2024 07:29:13 -0500 (0:00:00.116) 0:00:50.740 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 30 November 2024 07:29:13 -0500 (0:00:00.080) 0:00:50.821 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 30 November 2024 07:29:13 -0500 (0:00:00.078) 0:00:50.900 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 30 November 2024 07:29:13 -0500 (0:00:00.082) 0:00:50.982 ***** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048796", "end": "2024-11-30 07:29:13.990492", "rc": 0, "start": "2024-11-30 07:29:13.941696" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 30 November 2024 07:29:14 -0500 (0:00:00.545) 0:00:51.528 ***** ok: [managed-node3] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node3 : ok=99 changed=8 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 Saturday 30 November 2024 07:29:14 -0500 (0:00:00.057) 0:00:51.585 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.41s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.08s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.01s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.97s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.96s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.96s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.91s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.91s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.21s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.66s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.45s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 1.02s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Gathering Facts --------------------------------------------------------- 0.80s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Parse certificate ------------------------------------------------------- 0.77s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Ensure user exists ------------------------------------------------------ 0.72s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.72s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.67s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.63s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Gathering Facts --------------------------------------------------------- 0.63s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Retrieve auto-renew flag ------------------------------------------------ 0.58s /tmp/collections-ITy/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143