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-vvW/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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 12 October 2024 13:25:59 -0400 (0:00:00.019) 0:00:00.019 ****** ok: [managed-node3] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 12 October 2024 13:26:00 -0400 (0:00:00.871) 0:00:00.891 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 12 October 2024 13:26:00 -0400 (0:00:00.584) 0:00:01.475 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 12 October 2024 13:26:01 -0400 (0:00:00.542) 0:00:02.018 ****** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 12 October 2024 13:26:01 -0400 (0:00:00.629) 0:00:02.648 ****** included: /tmp/collections-vvW/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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 12 October 2024 13:26:01 -0400 (0:00:00.023) 0:00:02.671 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 12 October 2024 13:26:01 -0400 (0:00:00.049) 0:00:02.720 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 12 October 2024 13:26:02 -0400 (0:00:00.474) 0:00:03.195 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 12 October 2024 13:26:02 -0400 (0:00:00.044) 0:00:03.239 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 12 October 2024 13:26:02 -0400 (0:00:00.083) 0:00:03.323 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 12 October 2024 13:26:05 -0400 (0:00:02.963) 0:00:06.287 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 12 October 2024 13:26:09 -0400 (0:00:04.338) 0:00:10.625 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 12 October 2024 13:26:10 -0400 (0:00:00.642) 0:00:11.267 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 12 October 2024 13:26:11 -0400 (0:00:00.524) 0:00:11.792 ****** 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": "system.slice basic.target network.target syslog.target systemd-journald.socket dbus.socket sysinit.target dbus.service", "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": "sysinit.target dbus.socket 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]", "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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 12 October 2024 13:26:12 -0400 (0:00:01.034) 0:00:12.826 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 12 October 2024 13:26:13 -0400 (0:00:01.798) 0:00:14.625 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 12 October 2024 13:26:13 -0400 (0:00:00.085) 0:00:14.711 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.053) 0:00:14.764 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.051) 0:00:14.816 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.045) 0:00:14.862 ****** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.662) 0:00:15.525 ****** included: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.108) 0:00:15.633 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.014) 0:00:15.647 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.038) 0:00:15.686 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 12 October 2024 13:26:14 -0400 (0:00:00.041) 0:00:15.727 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 12 October 2024 13:26:15 -0400 (0:00:00.037) 0:00:15.765 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 12 October 2024 13:26:17 -0400 (0:00:02.851) 0:00:18.616 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753972.9456525, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "002c3737eea3488cad8a05132c37a5d0aa94a7ff", "ctime": 1728753973.042653, "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": 1728753972.9426525, "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": "1440993947", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 12 October 2024 13:26:18 -0400 (0:00:00.573) 0:00:19.189 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 12 October 2024 13:26:18 -0400 (0:00:00.077) 0:00:19.267 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 12 October 2024 13:26:18 -0400 (0:00:00.089) 0:00:19.356 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 12 October 2024 13:26:18 -0400 (0:00:00.072) 0:00:19.428 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753972.898652, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c00e8c5c82959f668f1e4c048404f477ac45f1e6", "ctime": 1728753973.043653, "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": 1728753972.9426525, "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": "2036297279", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 12 October 2024 13:26:19 -0400 (0:00:00.436) 0:00:19.865 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 12 October 2024 13:26:19 -0400 (0:00:00.055) 0:00:19.920 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 12 October 2024 13:26:19 -0400 (0:00:00.065) 0:00:19.986 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "42:A6:AE:06:C4:F6:84:97:4D:82:4E:70:13:5C:EE:E3:30:71:57:34" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5A:EA:9C:A4:26:81:78:B4:5B:35:01:78:E7:CA:84:A1:22:1A:40:33:1B:9D:0C:2E:F1:F3:F8:A4:2E:70:9B:B5:F3:AC:6E:FC:A0:2C:D5:4F:5D:97:C3:56:B3:DE:80:96:7B:21:8F:1D:A8:F8:6B:8F:77:55:B5:75:24:C3:69:AA:9A:4A:3C:0D:1E:2D:5D:F6:F0:FA:87:7E:FC:08:EC:99:4C:22:F5:EC:B7:DE:B6:88:9A:98:95:31:DF:71:B1:12:59:99:B7:82:60:28:09:65:11:5A:09:1E:6F:62:9C:B2:16:E1:A9:04:B2:96:C4:A9:E9:17:97:FC:C0:C3:CF:C3:C3:D8:DC:DA:7E:78:A5:93:AC:E8:F9:A8:EF:0E:BB:48:30:C9:FD:B6:C5:B3:29:72:0D:6C:47:F1:3E:07:C4:1D:FD:91:95:29:32:98:A2:C9:07:FB:90:EC:41:78:E5:CF:F5:78:29:BF:94:79:47:A6:EF:8A:94:E8:BD:93:18:E9:8A:69:6B:AA:E8:3E:8D:03:9F:C1:B8:49:63:35:49:8C:34:05:C9:CF:B4:CD:12:D6:29:28:EB:60:E2:2E:CC:64:79:10:1B:1E:C9:0B:40:B8:57:A9:7B:0B:8D:C9:3B:17:3A:F2:E0:5E:7C:FF:19:9F:CA:84:54:06:5B:8F:80:53" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172612Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 12 October 2024 13:26:20 -0400 (0:00:00.880) 0:00:20.866 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "42:A6:AE:06:C4:F6:84:97:4D:82:4E:70:13:5C:EE:E3:30:71:57:34" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5A:EA:9C:A4:26:81:78:B4:5B:35:01:78:E7:CA:84:A1:22:1A:40:33:1B:9D:0C:2E:F1:F3:F8:A4:2E:70:9B:B5:F3:AC:6E:FC:A0:2C:D5:4F:5D:97:C3:56:B3:DE:80:96:7B:21:8F:1D:A8:F8:6B:8F:77:55:B5:75:24:C3:69:AA:9A:4A:3C:0D:1E:2D:5D:F6:F0:FA:87:7E:FC:08:EC:99:4C:22:F5:EC:B7:DE:B6:88:9A:98:95:31:DF:71:B1:12:59:99:B7:82:60:28:09:65:11:5A:09:1E:6F:62:9C:B2:16:E1:A9:04:B2:96:C4:A9:E9:17:97:FC:C0:C3:CF:C3:C3:D8:DC:DA:7E:78:A5:93:AC:E8:F9:A8:EF:0E:BB:48:30:C9:FD:B6:C5:B3:29:72:0D:6C:47:F1:3E:07:C4:1D:FD:91:95:29:32:98:A2:C9:07:FB:90:EC:41:78:E5:CF:F5:78:29:BF:94:79:47:A6:EF:8A:94:E8:BD:93:18:E9:8A:69:6B:AA:E8:3E:8D:03:9F:C1:B8:49:63:35:49:8C:34:05:C9:CF:B4:CD:12:D6:29:28:EB:60:E2:2E:CC:64:79:10:1B:1E:C9:0B:40:B8:57:A9:7B:0B:8D:C9:3B:17:3A:F2:E0:5E:7C:FF:19:9F:CA:84:54:06:5B:8F:80:53" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172612Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 12 October 2024 13:26:20 -0400 (0:00:00.110) 0:00:20.977 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 12 October 2024 13:26:20 -0400 (0:00:00.149) 0:00:21.127 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 12 October 2024 13:26:20 -0400 (0:00:00.082) 0:00:21.209 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 12 October 2024 13:26:20 -0400 (0:00:00.064) 0:00:21.274 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 12 October 2024 13:26:20 -0400 (0:00:00.076) 0:00:21.350 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 12 October 2024 13:26:20 -0400 (0:00:00.176) 0:00:21.526 ****** 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.043707", "end": "2024-10-12 13:26:21.343104", "rc": 0, "start": "2024-10-12 13:26:21.299397" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 12 October 2024 13:26:21 -0400 (0:00:00.597) 0:00:22.124 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 12 October 2024 13:26:21 -0400 (0:00:00.044) 0:00:22.168 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 12 October 2024 13:26:21 -0400 (0:00:00.021) 0:00:22.190 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 12 October 2024 13:26:21 -0400 (0:00:00.051) 0:00:22.241 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 12 October 2024 13:26:21 -0400 (0:00:00.046) 0:00:22.287 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 12 October 2024 13:26:21 -0400 (0:00:00.047) 0:00:22.335 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 12 October 2024 13:26:24 -0400 (0:00:02.805) 0:00:25.140 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753973.6956568, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1ea98052129ecd7f68bf26cf7254f02c735cecef", "ctime": 1728753973.8226576, "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": 1728753973.6926568, "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": "1556538722", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 12 October 2024 13:26:24 -0400 (0:00:00.357) 0:00:25.498 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 12 October 2024 13:26:24 -0400 (0:00:00.038) 0:00:25.536 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 12 October 2024 13:26:24 -0400 (0:00:00.042) 0:00:25.579 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 12 October 2024 13:26:24 -0400 (0:00:00.041) 0:00:25.620 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753973.6516566, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a2471fdb331d0962fd9618392125bf32d531ca10", "ctime": 1728753973.8236575, "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": 1728753973.6926568, "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": "1235831622", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.360) 0:00:25.981 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.038) 0:00:26.019 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.054) 0:00:26.074 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "31:2C:AC:A2:A3:FD:53:73:FD:52:9F:72:8E:B2:CA:D8:8D:08:30:A8" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "71:16:B1:36:47:BC:6C:B7:39:E5:52:CD:CE:6C:BF:00:6F:40:5B:DC:79:FF:C2:F2:EE:88:9A:72:29:D8:96:82:06:52:AB:07:D9:91:77:FA:4A:8D:8D:2E:A8:3F:9A:BB:28:D3:44:DF:22:E0:4F:F0:22:C7:19:58:FC:43:1E:5C:27:9C:92:88:3B:81:A5:A4:DB:A6:B9:28:EF:94:87:2D:37:C1:8B:FF:6D:12:BA:03:D3:9F:A2:1C:C2:68:6B:75:EB:AB:BC:A3:1C:89:3A:4A:EA:1F:B6:02:8E:B1:B1:E9:5C:0E:27:9B:79:6A:E5:85:6C:D6:90:7E:B8:41:BC:35:C4:F9:B6:DE:8A:46:F6:28:E1:A2:1C:9A:0D:80:5B:AD:DE:EA:4D:FE:53:63:8A:17:D3:7E:AC:C2:2D:6B:89:A5:C2:E4:92:B1:CE:E8:35:06:52:91:C0:E0:12:47:53:EB:83:E7:D7:80:20:7A:2E:1E:16:DB:02:93:05:02:81:0E:48:63:02:3E:F1:61:86:7D:E8:F9:A7:11:2C:65:4D:63:75:7F:1F:37:DA:1F:AC:3B:0E:E0:CA:50:52:EC:C0:F9:77:2D:56:A1:5E:D3:09:40:41:EE:76:39:C5:7F:2F:AC:23:AB:04:A0:99:A3:A3:8E:A7:CC:FB:7A:E1:38:51:7E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172613Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.440) 0:00:26.514 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "31:2C:AC:A2:A3:FD:53:73:FD:52:9F:72:8E:B2:CA:D8:8D:08:30:A8" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "71:16:B1:36:47:BC:6C:B7:39:E5:52:CD:CE:6C:BF:00:6F:40:5B:DC:79:FF:C2:F2:EE:88:9A:72:29:D8:96:82:06:52:AB:07:D9:91:77:FA:4A:8D:8D:2E:A8:3F:9A:BB:28:D3:44:DF:22:E0:4F:F0:22:C7:19:58:FC:43:1E:5C:27:9C:92:88:3B:81:A5:A4:DB:A6:B9:28:EF:94:87:2D:37:C1:8B:FF:6D:12:BA:03:D3:9F:A2:1C:C2:68:6B:75:EB:AB:BC:A3:1C:89:3A:4A:EA:1F:B6:02:8E:B1:B1:E9:5C:0E:27:9B:79:6A:E5:85:6C:D6:90:7E:B8:41:BC:35:C4:F9:B6:DE:8A:46:F6:28:E1:A2:1C:9A:0D:80:5B:AD:DE:EA:4D:FE:53:63:8A:17:D3:7E:AC:C2:2D:6B:89:A5:C2:E4:92:B1:CE:E8:35:06:52:91:C0:E0:12:47:53:EB:83:E7:D7:80:20:7A:2E:1E:16:DB:02:93:05:02:81:0E:48:63:02:3E:F1:61:86:7D:E8:F9:A7:11:2C:65:4D:63:75:7F:1F:37:DA:1F:AC:3B:0E:E0:CA:50:52:EC:C0:F9:77:2D:56:A1:5E:D3:09:40:41:EE:76:39:C5:7F:2F:AC:23:AB:04:A0:99:A3:A3:8E:A7:CC:FB:7A:E1:38:51:7E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172613Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.045) 0:00:26.559 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.052) 0:00:26.612 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.045) 0:00:26.658 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 12 October 2024 13:26:25 -0400 (0:00:00.041) 0:00:26.700 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 12 October 2024 13:26:26 -0400 (0:00:00.043) 0:00:26.743 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 12 October 2024 13:26:26 -0400 (0:00:00.042) 0:00:26.785 ****** 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.043462", "end": "2024-10-12 13:26:26.397699", "rc": 0, "start": "2024-10-12 13:26:26.354237" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 12 October 2024 13:26:26 -0400 (0:00:00.393) 0:00:27.179 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 12 October 2024 13:26:26 -0400 (0:00:00.045) 0:00:27.225 ****** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 12 October 2024 13:26:27 -0400 (0:00:00.609) 0:00:27.835 ****** included: /tmp/collections-vvW/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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 12 October 2024 13:26:27 -0400 (0:00:00.022) 0:00:27.858 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 12 October 2024 13:26:27 -0400 (0:00:00.040) 0:00:27.898 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 12 October 2024 13:26:27 -0400 (0:00:00.035) 0:00:27.933 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 12 October 2024 13:26:27 -0400 (0:00:00.038) 0:00:27.971 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 12 October 2024 13:26:27 -0400 (0:00:00.056) 0:00:28.028 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 12 October 2024 13:26:30 -0400 (0:00:02.777) 0:00:30.805 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 12 October 2024 13:26:32 -0400 (0:00:02.792) 0:00:33.598 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 12 October 2024 13:26:33 -0400 (0:00:00.409) 0:00:34.007 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 12 October 2024 13:26:33 -0400 (0:00:00.389) 0:00:34.397 ****** 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-10-12 13:26:11 EDT", "ActiveEnterTimestampMonotonic": "349995631", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service syslog.target network.target system.slice sysinit.target basic.target dbus.socket systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-10-12 13:26:11 EDT", "AssertTimestampMonotonic": "349984251", "Before": "shutdown.target multi-user.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-10-12 13:26:11 EDT", "ConditionTimestampMonotonic": "349984249", "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": "9436", "ExecMainStartTimestamp": "Sat 2024-10-12 13:26:11 EDT", "ExecMainStartTimestampMonotonic": "349985172", "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-10-12 13:26:11 EDT] ; stop_time=[n/a] ; pid=9436 ; 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-10-12 13:26:11 EDT", "InactiveExitTimestampMonotonic": "349985232", "InvocationID": "4ac0823655ec4f3ab48fa20052f73c9e", "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": "9436", "MemoryAccounting": "yes", "MemoryCurrent": "3731456", "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": "sysinit.target dbus.socket 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-10-12 13:26:11 EDT", "StateChangeTimestampMonotonic": "349995631", "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-10-12 13:26:11 EDT", "WatchdogTimestampMonotonic": "349995628", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 12 October 2024 13:26:34 -0400 (0:00:00.516) 0:00:34.914 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 12 October 2024 13:26:35 -0400 (0:00:01.390) 0:00:36.305 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 12 October 2024 13:26:35 -0400 (0:00:00.066) 0:00:36.371 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 12 October 2024 13:26:35 -0400 (0:00:00.039) 0:00:36.411 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 12 October 2024 13:26:35 -0400 (0:00:00.040) 0:00:36.452 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 12 October 2024 13:26:35 -0400 (0:00:00.041) 0:00:36.493 ****** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 12 October 2024 13:26:36 -0400 (0:00:00.601) 0:00:37.095 ****** included: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 included: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 12 October 2024 13:26:36 -0400 (0:00:00.103) 0:00:37.199 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 12 October 2024 13:26:36 -0400 (0:00:00.052) 0:00:37.251 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 12 October 2024 13:26:36 -0400 (0:00:00.097) 0:00:37.348 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 12 October 2024 13:26:36 -0400 (0:00:00.084) 0:00:37.433 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 12 October 2024 13:26:36 -0400 (0:00:00.059) 0:00:37.493 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 12 October 2024 13:26:39 -0400 (0:00:02.883) 0:00:40.376 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753994.75178, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "de5358123097908f430f3bb1a69cb96bc5f11305", "ctime": 1728753994.7797801, "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": 1728753994.74978, "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": "2579832518", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.358) 0:00:40.735 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.038) 0:00:40.774 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.054) 0:00:40.829 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.040) 0:00:40.869 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753994.71078, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f39725c9ec32997b1699053dd36e7efd4489b298", "ctime": 1728753994.7807803, "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": 1728753994.74978, "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": "780803904", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.360) 0:00:41.229 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.040) 0:00:41.270 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.043) 0:00:41.314 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "67:E1:A7:86:07:B5:98:19:A1:18:94:9A:E3:3A:D7:6E:73:97:52:86" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C2:71:1E:12:A5:64:F3:14:D3:8E:24:D8:72:79:10:E6:28:5E:43:9B:DB:09:02:5D:39:35:8F:29:3D:04:7A:E3:B6:E3:D4:44:C6:D0:CB:94:99:F4:C7:34:11:46:FC:47:2D:93:6E:91:02:BD:D7:7F:9D:46:FC:E5:38:24:99:D0:9B:27:BE:A2:6A:EE:7A:D4:E0:4D:C4:4C:B6:10:AD:FE:2D:11:95:9F:D9:4D:F3:11:E0:5A:AC:68:D2:92:B0:4A:55:AB:90:35:25:75:53:13:9B:F1:66:9B:F4:E9:EB:AF:AF:1C:63:0E:E6:BB:41:05:8D:20:09:13:0C:81:6B:AC:73:9A:45:ED:E5:D4:6C:F8:F5:3A:DB:11:C0:02:E7:24:8E:E5:E6:2F:0B:D3:B3:95:D7:56:B8:41:81:5B:18:1D:D7:58:B8:02:12:5F:10:57:2E:7B:4A:C4:3B:AD:A9:88:09:6A:9D:22:68:EB:BD:D1:3D:F8:CE:39:8D:44:F8:B7:A5:F8:56:84:3B:71:32:D8:D3:57:58:48:04:08:EE:E0:77:CE:5A:47:9F:3C:B0:9F:25:DD:BB:34:2F:BA:10:B0:3D:94:16:42:5B:9D:F1:A1:5D:3F:C1:F3:50:E7:FF:F1:A1:02:68:A5:24:5E:4F:37:13:25:B5:35:47:D2:CF:2B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172634Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 12 October 2024 13:26:40 -0400 (0:00:00.414) 0:00:41.728 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "67:E1:A7:86:07:B5:98:19:A1:18:94:9A:E3:3A:D7:6E:73:97:52:86" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C2:71:1E:12:A5:64:F3:14:D3:8E:24:D8:72:79:10:E6:28:5E:43:9B:DB:09:02:5D:39:35:8F:29:3D:04:7A:E3:B6:E3:D4:44:C6:D0:CB:94:99:F4:C7:34:11:46:FC:47:2D:93:6E:91:02:BD:D7:7F:9D:46:FC:E5:38:24:99:D0:9B:27:BE:A2:6A:EE:7A:D4:E0:4D:C4:4C:B6:10:AD:FE:2D:11:95:9F:D9:4D:F3:11:E0:5A:AC:68:D2:92:B0:4A:55:AB:90:35:25:75:53:13:9B:F1:66:9B:F4:E9:EB:AF:AF:1C:63:0E:E6:BB:41:05:8D:20:09:13:0C:81:6B:AC:73:9A:45:ED:E5:D4:6C:F8:F5:3A:DB:11:C0:02:E7:24:8E:E5:E6:2F:0B:D3:B3:95:D7:56:B8:41:81:5B:18:1D:D7:58:B8:02:12:5F:10:57:2E:7B:4A:C4:3B:AD:A9:88:09:6A:9D:22:68:EB:BD:D1:3D:F8:CE:39:8D:44:F8:B7:A5:F8:56:84:3B:71:32:D8:D3:57:58:48:04:08:EE:E0:77:CE:5A:47:9F:3C:B0:9F:25:DD:BB:34:2F:BA:10:B0:3D:94:16:42:5B:9D:F1:A1:5D:3F:C1:F3:50:E7:FF:F1:A1:02:68:A5:24:5E:4F:37:13:25:B5:35:47:D2:CF:2B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172634Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.038) 0:00:41.766 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.040) 0:00:41.806 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.051) 0:00:41.858 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.041) 0:00:41.899 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.045) 0:00:41.945 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.047) 0:00:41.992 ****** 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.046878", "end": "2024-10-12 13:26:41.611911", "rc": 0, "start": "2024-10-12 13:26:41.565033" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.435) 0:00:42.427 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.061) 0:00:42.488 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.027) 0:00:42.516 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.046) 0:00:42.562 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.046) 0:00:42.609 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 12 October 2024 13:26:41 -0400 (0:00:00.040) 0:00:42.650 ****** 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-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 12 October 2024 13:26:44 -0400 (0:00:02.738) 0:00:45.389 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753995.3777838, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f1a4cf90f21be85b26db9799b09846783a547d49", "ctime": 1728753995.3747838, "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": 1728753995.3747838, "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": "1051324338", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 12 October 2024 13:26:45 -0400 (0:00:00.462) 0:00:45.851 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 12 October 2024 13:26:45 -0400 (0:00:00.037) 0:00:45.889 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 12 October 2024 13:26:45 -0400 (0:00:00.042) 0:00:45.931 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 12 October 2024 13:26:45 -0400 (0:00:00.083) 0:00:46.015 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1728753995.3357835, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f9633de8a5e548e9a052059baefe83ff85411672", "ctime": 1728753995.3747838, "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": 1728753995.3747838, "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": "961269446", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 12 October 2024 13:26:45 -0400 (0:00:00.449) 0:00:46.465 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 12 October 2024 13:26:45 -0400 (0:00:00.074) 0:00:46.539 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 12 October 2024 13:26:45 -0400 (0:00:00.064) 0:00:46.604 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "78:56:C1:C1:4C:C9:FD:B1:C3:FF:FE:87:9D:05:68:8A:09:83:14:93" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A4:35:16:E2:C4:B1:B0:A4:59:61:76:F1:17:87:F0:4B:5D:2C:4D:3E:09:F5:AF:3B:5E:A4:09:B8:2B:7B:7F:D6:97:36:1A:89:EC:5C:1B:62:16:EB:F8:BE:7E:29:B9:60:E0:E1:A3:22:E5:12:0C:8B:31:35:9A:3E:D8:F7:DE:68:77:8C:18:B9:C2:BC:FD:C4:FD:61:B9:27:1F:4F:4A:A4:C8:8B:F7:DB:44:D1:EF:D3:1B:C2:0C:14:81:CA:7A:F1:F7:A4:5E:4B:B1:A8:D8:C3:DC:C3:19:0F:18:F2:4E:DE:73:7C:D5:0F:96:2D:4D:52:D7:E6:FA:4D:5A:69:07:C8:A6:BB:81:F3:48:42:AB:CB:12:08:0B:05:3F:00:2D:B5:FD:0B:6A:36:E0:AC:9A:46:CE:E7:FE:57:9B:49:07:50:1A:93:27:8F:8B:F8:4C:D0:5F:0C:C6:2B:48:BF:D1:9B:B3:7E:B4:B3:14:C6:30:35:C3:75:4C:2D:7B:19:92:ED:9F:05:FA:74:9B:B3:4D:26:1B:65:D4:63:C7:43:67:71:E4:D2:E0:0F:B5:94:7E:13:C6:42:AE:5D:CC:CF:95:5F:2D:F2:7E:71:D0:F4:EB:AF:0F:77:B6:38:FA:93:49:D3:4E:AE:15:F4:93:DA:7F:51:53:85:C4:CA:C5:BE:CC:31" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172635Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 12 October 2024 13:26:46 -0400 (0:00:00.504) 0:00:47.108 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "91:ED:98:4B:99:DD:4E:52:0E:6A:89:2A:6B:0D:69:E4:E9:23:18:BF" }, "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": "78:56:C1:C1:4C:C9:FD:B1:C3:FF:FE:87:9D:05:68:8A:09:83:14:93" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A4:35:16:E2:C4:B1:B0:A4:59:61:76:F1:17:87:F0:4B:5D:2C:4D:3E:09:F5:AF:3B:5E:A4:09:B8:2B:7B:7F:D6:97:36:1A:89:EC:5C:1B:62:16:EB:F8:BE:7E:29:B9:60:E0:E1:A3:22:E5:12:0C:8B:31:35:9A:3E:D8:F7:DE:68:77:8C:18:B9:C2:BC:FD:C4:FD:61:B9:27:1F:4F:4A:A4:C8:8B:F7:DB:44:D1:EF:D3:1B:C2:0C:14:81:CA:7A:F1:F7:A4:5E:4B:B1:A8:D8:C3:DC:C3:19:0F:18:F2:4E:DE:73:7C:D5:0F:96:2D:4D:52:D7:E6:FA:4D:5A:69:07:C8:A6:BB:81:F3:48:42:AB:CB:12:08:0B:05:3F:00:2D:B5:FD:0B:6A:36:E0:AC:9A:46:CE:E7:FE:57:9B:49:07:50:1A:93:27:8F:8B:F8:4C:D0:5F:0C:C6:2B:48:BF:D1:9B:B3:7E:B4:B3:14:C6:30:35:C3:75:4C:2D:7B:19:92:ED:9F:05:FA:74:9B:B3:4D:26:1B:65:D4:63:C7:43:67:71:E4:D2:E0:0F:B5:94:7E:13:C6:42:AE:5D:CC:CF:95:5F:2D:F2:7E:71:D0:F4:EB:AF:0F:77:B6:38:FA:93:49:D3:4E:AE:15:F4:93:DA:7F:51:53:85:C4:CA:C5:BE:CC:31" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20251012172612Z", "not_valid_before": "20241012172635Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 12 October 2024 13:26:46 -0400 (0:00:00.039) 0:00:47.147 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 12 October 2024 13:26:46 -0400 (0:00:00.041) 0:00:47.189 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 12 October 2024 13:26:46 -0400 (0:00:00.040) 0:00:47.230 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 12 October 2024 13:26:46 -0400 (0:00:00.044) 0:00:47.274 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 12 October 2024 13:26:46 -0400 (0:00:00.062) 0:00:47.336 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 12 October 2024 13:26:46 -0400 (0:00:00.083) 0:00:47.419 ****** 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.046742", "end": "2024-10-12 13:26:47.141955", "rc": 0, "start": "2024-10-12 13:26:47.095213" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 12 October 2024 13:26:47 -0400 (0:00:00.503) 0:00:47.923 ****** 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 12 October 2024 13:26:47 -0400 (0:00:00.037) 0:00:47.961 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.34s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.96s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.88s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.85s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.81s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 2.79s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.78s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.74s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.80s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.39s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.03s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Parse certificate ------------------------------------------------------- 0.88s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Gathering Facts --------------------------------------------------------- 0.87s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Gathering Facts --------------------------------------------------------- 0.66s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.64s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Gathering Facts --------------------------------------------------------- 0.63s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.61s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.60s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Retrieve auto-renew flag ------------------------------------------------ 0.60s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Ensure user exists ------------------------------------------------------ 0.58s /tmp/collections-vvW/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5