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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 03 August 2024 08:24:00 -0400 (0:00:00.017) 0:00:00.017 ******* ok: [managed_node1] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 03 August 2024 08:24:01 -0400 (0:00:00.892) 0:00:00.910 ******* changed: [managed_node1] => { "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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 03 August 2024 08:24:02 -0400 (0:00:00.708) 0:00:01.618 ******* changed: [managed_node1] => { "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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 03 August 2024 08:24:02 -0400 (0:00:00.466) 0:00:02.084 ******* ok: [managed_node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 03 August 2024 08:24:03 -0400 (0:00:00.647) 0:00:02.732 ******* included: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node1 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 08:24:03 -0400 (0:00:00.018) 0:00:02.750 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 03 August 2024 08:24:03 -0400 (0:00:00.033) 0:00:02.784 ******* ok: [managed_node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 03 August 2024 08:24:03 -0400 (0:00:00.431) 0:00:03.216 ******* ok: [managed_node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 03 August 2024 08:24:03 -0400 (0:00:00.036) 0:00:03.253 ******* skipping: [managed_node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 03 August 2024 08:24:03 -0400 (0:00:00.051) 0:00:03.304 ******* ok: [managed_node1] => { "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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 03 August 2024 08:24:06 -0400 (0:00:02.583) 0:00:05.887 ******* ok: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 03 August 2024 08:24:08 -0400 (0:00:02.463) 0:00:08.350 ******* ok: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 03 August 2024 08:24:09 -0400 (0:00:00.481) 0:00:08.832 ******* ok: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 03 August 2024 08:24:09 -0400 (0:00:00.383) 0:00:09.216 ******* ok: [managed_node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-03 08:23:29 EDT", "ActiveEnterTimestampMonotonic": "210717055", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice syslog.target sysinit.target dbus.socket dbus.service systemd-journald.socket network.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-03 08:23:29 EDT", "AssertTimestampMonotonic": "210704916", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-03 08:23:29 EDT", "ConditionTimestampMonotonic": "210704914", "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": "9167", "ExecMainStartTimestamp": "Sat 2024-08-03 08:23:29 EDT", "ExecMainStartTimestampMonotonic": "210705903", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-03 08:23:29 EDT] ; stop_time=[n/a] ; pid=9167 ; 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-08-03 08:23:29 EDT", "InactiveExitTimestampMonotonic": "210705960", "InvocationID": "fea51a0c171e4252b27a3ae0c7d2cadc", "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": "9167", "MemoryAccounting": "yes", "MemoryCurrent": "3719168", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "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-08-03 08:23:29 EDT", "StateChangeTimestampMonotonic": "210717055", "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-08-03 08:23:29 EDT", "WatchdogTimestampMonotonic": "210717052", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 03 August 2024 08:24:10 -0400 (0:00:00.717) 0:00:09.933 ******* changed: [managed_node1] => (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_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 03 August 2024 08:24:12 -0400 (0:00:01.813) 0:00:11.747 ******* skipping: [managed_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 03 August 2024 08:24:12 -0400 (0:00:00.061) 0:00:11.809 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 03 August 2024 08:24:12 -0400 (0:00:00.039) 0:00:11.848 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 03 August 2024 08:24:12 -0400 (0:00:00.035) 0:00:11.883 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 03 August 2024 08:24:12 -0400 (0:00:00.038) 0:00:11.922 ******* ok: [managed_node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 03 August 2024 08:24:13 -0400 (0:00:00.623) 0:00:12.546 ******* included: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 included: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 08:24:13 -0400 (0:00:00.062) 0:00:12.609 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 08:24:13 -0400 (0:00:00.013) 0:00:12.622 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 08:24:13 -0400 (0:00:00.032) 0:00:12.654 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 08:24:13 -0400 (0:00:00.032) 0:00:12.687 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 08:24:13 -0400 (0:00:00.032) 0:00:12.719 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 08:24:15 -0400 (0:00:02.469) 0:00:15.189 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687851.2319274, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5d9aefcd39e7fb485bfe3527af91769d76172147", "ctime": 1722687851.3279274, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "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": 1722687851.2289274, "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": "739168742", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 08:24:16 -0400 (0:00:00.381) 0:00:15.571 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 08:24:16 -0400 (0:00:00.036) 0:00:15.607 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 08:24:16 -0400 (0:00:00.040) 0:00:15.648 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 08:24:16 -0400 (0:00:00.037) 0:00:15.685 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687851.1869273, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5abece9eb7dd83e3c2a8bf30ff2f7c63a367f7a3", "ctime": 1722687851.3289275, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "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": 1722687851.2289274, "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": "1569758489", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 08:24:16 -0400 (0:00:00.377) 0:00:16.063 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 08:24:16 -0400 (0:00:00.037) 0:00:16.101 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 08:24:16 -0400 (0:00:00.041) 0:00:16.142 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "A8:6D:41:5A:98:AB:D9:81:48:61:33:56:49:49:4D:6A:53:66:5A:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AB:F3:F3:AF:B2:51:7C:4C:54:F0:3A:D5:E9:57:DC:0F:E5:D3:77:82:E9:09:4B:ED:50:F4:60:ED:F8:D4:BA:FD:29:E1:BB:02:90:B4:F3:07:5C:A1:F1:F1:6D:16:9B:7A:86:34:83:24:BF:DC:88:FF:29:F0:BA:3F:B0:D3:80:71:9C:CF:DB:31:77:CF:E7:04:FF:C8:E9:02:40:CF:C7:D4:DF:8A:2F:54:79:79:88:73:58:46:DD:16:3B:33:20:A9:E6:49:68:37:29:16:AD:AE:FB:4D:62:48:CC:1E:5F:2D:53:4E:8D:E4:E8:FA:5F:9C:88:1F:A1:EB:FF:71:29:C6:E8:47:5E:A6:B2:EB:22:9A:20:E3:24:84:84:AA:3D:DE:F9:38:F1:B4:1B:B5:BC:9B:97:16:3F:1C:91:DA:16:ED:48:B4:0E:80:6C:05:E3:5E:97:67:BC:DD:37:BE:17:9C:1C:94:95:BC:5B:38:EF:A2:27:8B:51:8A:C8:7F:FC:9D:5D:A5:54:68:5E:2C:23:BC:AF:63:BC:EC:32:B2:C5:31:B1:41:35:94:90:5F:35:66:C1:4E:F6:6F:E5:F0:9E:AB:53:E5:05:5A:C1:0E:35:59:28:32:3D:32:D8:76:8A:6B:25:99:20:1B:EB:E8:54:29:52:17:40:9A:D5:D4:8E:78" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122411Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 08:24:17 -0400 (0:00:00.531) 0:00:16.674 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "A8:6D:41:5A:98:AB:D9:81:48:61:33:56:49:49:4D:6A:53:66:5A:4A" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AB:F3:F3:AF:B2:51:7C:4C:54:F0:3A:D5:E9:57:DC:0F:E5:D3:77:82:E9:09:4B:ED:50:F4:60:ED:F8:D4:BA:FD:29:E1:BB:02:90:B4:F3:07:5C:A1:F1:F1:6D:16:9B:7A:86:34:83:24:BF:DC:88:FF:29:F0:BA:3F:B0:D3:80:71:9C:CF:DB:31:77:CF:E7:04:FF:C8:E9:02:40:CF:C7:D4:DF:8A:2F:54:79:79:88:73:58:46:DD:16:3B:33:20:A9:E6:49:68:37:29:16:AD:AE:FB:4D:62:48:CC:1E:5F:2D:53:4E:8D:E4:E8:FA:5F:9C:88:1F:A1:EB:FF:71:29:C6:E8:47:5E:A6:B2:EB:22:9A:20:E3:24:84:84:AA:3D:DE:F9:38:F1:B4:1B:B5:BC:9B:97:16:3F:1C:91:DA:16:ED:48:B4:0E:80:6C:05:E3:5E:97:67:BC:DD:37:BE:17:9C:1C:94:95:BC:5B:38:EF:A2:27:8B:51:8A:C8:7F:FC:9D:5D:A5:54:68:5E:2C:23:BC:AF:63:BC:EC:32:B2:C5:31:B1:41:35:94:90:5F:35:66:C1:4E:F6:6F:E5:F0:9E:AB:53:E5:05:5A:C1:0E:35:59:28:32:3D:32:D8:76:8A:6B:25:99:20:1B:EB:E8:54:29:52:17:40:9A:D5:D4:8E:78" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122411Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 08:24:17 -0400 (0:00:00.036) 0:00:16.710 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 08:24:17 -0400 (0:00:00.037) 0:00:16.748 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 08:24:17 -0400 (0:00:00.038) 0:00:16.786 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 08:24:17 -0400 (0:00:00.036) 0:00:16.823 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 08:24:17 -0400 (0:00:00.042) 0:00:16.865 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 08:24:17 -0400 (0:00:00.041) 0:00:16.907 ******* ok: [managed_node1] => { "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.047912", "end": "2024-08-03 08:24:17.953747", "rc": 0, "start": "2024-08-03 08:24:17.905835" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 08:24:18 -0400 (0:00:00.508) 0:00:17.416 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 08:24:18 -0400 (0:00:00.038) 0:00:17.454 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 08:24:18 -0400 (0:00:00.013) 0:00:17.468 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 08:24:18 -0400 (0:00:00.033) 0:00:17.502 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 08:24:18 -0400 (0:00:00.033) 0:00:17.535 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 08:24:18 -0400 (0:00:00.033) 0:00:17.569 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 08:24:20 -0400 (0:00:02.465) 0:00:20.034 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687852.1579278, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "05e6fb5af289fe00b3ab750efbe082787edc6d7b", "ctime": 1722687852.270928, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718638, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722687852.1549277, "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": "1127782122", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 08:24:21 -0400 (0:00:00.406) 0:00:20.441 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 08:24:21 -0400 (0:00:00.037) 0:00:20.479 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 08:24:21 -0400 (0:00:00.039) 0:00:20.519 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 08:24:21 -0400 (0:00:00.037) 0:00:20.556 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687852.1129277, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a249f52ae8f976d5dab555b3926f6b781189d6f5", "ctime": 1722687852.270928, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 7718637, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1722687852.1539278, "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": "1164816260", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 08:24:21 -0400 (0:00:00.375) 0:00:20.931 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 08:24:21 -0400 (0:00:00.036) 0:00:20.968 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 08:24:21 -0400 (0:00:00.040) 0:00:21.008 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "63:3B:E1:36:1E:94:B1:91:29:73:30:73:C3:4C:5F:DE:DE:06:69:60" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A1:1D:C4:E3:E6:59:09:59:05:0D:09:C4:6D:30:5C:8A:8E:6C:45:7D:33:BC:27:C9:E9:0E:06:00:07:73:82:2D:CC:05:2E:BD:71:80:16:9D:C6:90:E0:EA:A8:5D:0A:3E:94:AE:86:EB:D2:6B:2F:46:85:76:20:A0:B2:79:03:2B:0A:D6:99:75:D0:40:6C:E5:9F:8F:E3:5E:B9:98:3C:3D:8E:29:E7:BA:C6:54:9C:5B:BF:85:3D:FA:02:CF:CD:F9:EC:54:6E:B2:69:8A:EE:44:4A:B4:34:09:86:11:77:99:C0:29:9F:07:EA:29:B5:1D:3F:81:56:E1:09:7E:BC:7F:33:69:0E:94:14:CE:DC:EB:8E:81:43:1C:84:70:42:42:AD:1B:BB:E2:89:93:F2:C1:F4:BE:0A:4F:7D:9F:BB:BF:9F:B1:35:A7:01:E9:F2:05:52:61:0E:E7:7C:8A:7A:57:B2:C3:AC:B0:3F:66:BD:69:E2:7C:E9:69:C5:FA:FD:C1:8D:9B:EB:23:4A:93:F0:90:FA:17:00:4E:24:5F:99:79:4F:15:91:5B:F5:D7:E3:25:E6:A9:C5:5E:D2:62:FE:52:18:68:99:7F:67:78:D5:33:17:A1:35:31:58:48:F9:79:BC:06:54:1B:6D:76:F1:69:23:14:8F:23:D3:D3:1C:16" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122412Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.436) 0:00:21.445 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "63:3B:E1:36:1E:94:B1:91:29:73:30:73:C3:4C:5F:DE:DE:06:69:60" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A1:1D:C4:E3:E6:59:09:59:05:0D:09:C4:6D:30:5C:8A:8E:6C:45:7D:33:BC:27:C9:E9:0E:06:00:07:73:82:2D:CC:05:2E:BD:71:80:16:9D:C6:90:E0:EA:A8:5D:0A:3E:94:AE:86:EB:D2:6B:2F:46:85:76:20:A0:B2:79:03:2B:0A:D6:99:75:D0:40:6C:E5:9F:8F:E3:5E:B9:98:3C:3D:8E:29:E7:BA:C6:54:9C:5B:BF:85:3D:FA:02:CF:CD:F9:EC:54:6E:B2:69:8A:EE:44:4A:B4:34:09:86:11:77:99:C0:29:9F:07:EA:29:B5:1D:3F:81:56:E1:09:7E:BC:7F:33:69:0E:94:14:CE:DC:EB:8E:81:43:1C:84:70:42:42:AD:1B:BB:E2:89:93:F2:C1:F4:BE:0A:4F:7D:9F:BB:BF:9F:B1:35:A7:01:E9:F2:05:52:61:0E:E7:7C:8A:7A:57:B2:C3:AC:B0:3F:66:BD:69:E2:7C:E9:69:C5:FA:FD:C1:8D:9B:EB:23:4A:93:F0:90:FA:17:00:4E:24:5F:99:79:4F:15:91:5B:F5:D7:E3:25:E6:A9:C5:5E:D2:62:FE:52:18:68:99:7F:67:78:D5:33:17:A1:35:31:58:48:F9:79:BC:06:54:1B:6D:76:F1:69:23:14:8F:23:D3:D3:1C:16" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122412Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.036) 0:00:21.481 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.039) 0:00:21.521 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.037) 0:00:21.559 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.038) 0:00:21.597 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.043) 0:00:21.640 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.042) 0:00:21.682 ******* ok: [managed_node1] => { "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.047799", "end": "2024-08-03 08:24:22.634757", "rc": 0, "start": "2024-08-03 08:24:22.586958" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.414) 0:00:22.097 ******* ok: [managed_node1] => { "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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 03 August 2024 08:24:22 -0400 (0:00:00.043) 0:00:22.141 ******* ok: [managed_node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 03 August 2024 08:24:23 -0400 (0:00:00.635) 0:00:22.776 ******* included: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node1 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 03 August 2024 08:24:23 -0400 (0:00:00.018) 0:00:22.794 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 03 August 2024 08:24:23 -0400 (0:00:00.036) 0:00:22.830 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 03 August 2024 08:24:23 -0400 (0:00:00.034) 0:00:22.865 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 03 August 2024 08:24:23 -0400 (0:00:00.034) 0:00:22.900 ******* skipping: [managed_node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 03 August 2024 08:24:23 -0400 (0:00:00.052) 0:00:22.952 ******* ok: [managed_node1] => { "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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 03 August 2024 08:24:26 -0400 (0:00:02.466) 0:00:25.419 ******* ok: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 03 August 2024 08:24:28 -0400 (0:00:02.469) 0:00:27.888 ******* ok: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 03 August 2024 08:24:28 -0400 (0:00:00.389) 0:00:28.278 ******* ok: [managed_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 03 August 2024 08:24:29 -0400 (0:00:00.387) 0:00:28.666 ******* ok: [managed_node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-03 08:23:29 EDT", "ActiveEnterTimestampMonotonic": "210717055", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice syslog.target sysinit.target dbus.socket dbus.service systemd-journald.socket network.target basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-03 08:23:29 EDT", "AssertTimestampMonotonic": "210704916", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-08-03 08:23:29 EDT", "ConditionTimestampMonotonic": "210704914", "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": "9167", "ExecMainStartTimestamp": "Sat 2024-08-03 08:23:29 EDT", "ExecMainStartTimestampMonotonic": "210705903", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-03 08:23:29 EDT] ; stop_time=[n/a] ; pid=9167 ; 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-08-03 08:23:29 EDT", "InactiveExitTimestampMonotonic": "210705960", "InvocationID": "fea51a0c171e4252b27a3ae0c7d2cadc", "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": "9167", "MemoryAccounting": "yes", "MemoryCurrent": "3862528", "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-08-03 08:23:29 EDT", "StateChangeTimestampMonotonic": "210717055", "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-08-03 08:23:29 EDT", "WatchdogTimestampMonotonic": "210717052", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 03 August 2024 08:24:29 -0400 (0:00:00.511) 0:00:29.177 ******* changed: [managed_node1] => (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_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 03 August 2024 08:24:31 -0400 (0:00:01.518) 0:00:30.696 ******* skipping: [managed_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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_node1] => (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/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 03 August 2024 08:24:31 -0400 (0:00:00.057) 0:00:30.753 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 03 August 2024 08:24:31 -0400 (0:00:00.034) 0:00:30.787 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 03 August 2024 08:24:31 -0400 (0:00:00.035) 0:00:30.822 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 03 August 2024 08:24:31 -0400 (0:00:00.039) 0:00:30.862 ******* ok: [managed_node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 03 August 2024 08:24:32 -0400 (0:00:00.642) 0:00:31.504 ******* included: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 included: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 08:24:32 -0400 (0:00:00.062) 0:00:31.567 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 08:24:32 -0400 (0:00:00.014) 0:00:31.581 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 08:24:32 -0400 (0:00:00.034) 0:00:31.615 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 08:24:32 -0400 (0:00:00.035) 0:00:31.650 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 08:24:32 -0400 (0:00:00.034) 0:00:31.685 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 08:24:34 -0400 (0:00:02.467) 0:00:34.153 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687870.3429346, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b24bb73819d9bd034453925d2e377a94dcd676e1", "ctime": 1722687870.4879346, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718640, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722687870.3399346, "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": "3853572191", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 08:24:35 -0400 (0:00:00.377) 0:00:34.530 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 08:24:35 -0400 (0:00:00.037) 0:00:34.568 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 08:24:35 -0400 (0:00:00.040) 0:00:34.609 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 08:24:35 -0400 (0:00:00.038) 0:00:34.647 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687870.2979345, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b185124d50b06df56350e8cddb9364475a95205e", "ctime": 1722687870.4889348, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 7718639, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1722687870.3399346, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "3339679384", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 08:24:35 -0400 (0:00:00.380) 0:00:35.027 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 08:24:35 -0400 (0:00:00.036) 0:00:35.063 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 08:24:35 -0400 (0:00:00.039) 0:00:35.102 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "50:8A:B3:D5:44:BE:F8:8F:7C:60:E0:1F:31:C3:16:B8:7A:FE:56:42" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "58:C1:F1:CF:FB:78:08:5A:7E:01:3F:D5:2C:C5:5E:BB:69:D4:D9:32:C0:00:90:CC:3B:7F:C0:6F:95:93:6E:DF:B0:35:9F:2E:72:EC:0B:CF:69:EF:23:E0:FC:5E:BE:EC:7C:85:D4:05:B4:9A:C5:EE:B3:8A:3D:C2:BE:12:C0:8F:1D:6E:ED:10:3A:55:30:3F:BC:2E:40:CE:4B:49:3D:EB:92:D4:C5:82:11:59:71:05:C0:4C:E4:C9:45:6B:15:2C:E3:67:47:81:0A:CA:D8:26:D6:E6:39:17:01:8B:F2:BA:1E:92:08:C1:C3:4E:17:03:EC:98:81:DA:AE:B5:76:9E:63:E9:6C:33:E7:16:24:02:4D:DA:DD:A6:A5:0A:7A:08:52:49:B9:D7:2D:A2:1B:08:9E:C4:81:0C:E4:2B:F0:B2:05:01:44:30:41:60:E8:10:BE:80:D1:99:CD:61:82:10:57:44:CC:47:39:EC:90:CF:01:D4:D9:B9:5A:77:8A:DD:7C:9A:49:C7:61:EB:28:40:0C:C1:23:B4:47:A2:2C:22:CD:34:B3:2B:10:B2:27:2A:5B:9F:3A:80:4F:31:15:77:4D:B3:28:27:3E:AB:D5:5F:22:31:A3:5D:DA:05:96:AB:70:89:ED:F7:FF:CA:A5:28:F1:49:06:6B:E4:9B:D1:A3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122430Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.436) 0:00:35.539 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "50:8A:B3:D5:44:BE:F8:8F:7C:60:E0:1F:31:C3:16:B8:7A:FE:56:42" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "58:C1:F1:CF:FB:78:08:5A:7E:01:3F:D5:2C:C5:5E:BB:69:D4:D9:32:C0:00:90:CC:3B:7F:C0:6F:95:93:6E:DF:B0:35:9F:2E:72:EC:0B:CF:69:EF:23:E0:FC:5E:BE:EC:7C:85:D4:05:B4:9A:C5:EE:B3:8A:3D:C2:BE:12:C0:8F:1D:6E:ED:10:3A:55:30:3F:BC:2E:40:CE:4B:49:3D:EB:92:D4:C5:82:11:59:71:05:C0:4C:E4:C9:45:6B:15:2C:E3:67:47:81:0A:CA:D8:26:D6:E6:39:17:01:8B:F2:BA:1E:92:08:C1:C3:4E:17:03:EC:98:81:DA:AE:B5:76:9E:63:E9:6C:33:E7:16:24:02:4D:DA:DD:A6:A5:0A:7A:08:52:49:B9:D7:2D:A2:1B:08:9E:C4:81:0C:E4:2B:F0:B2:05:01:44:30:41:60:E8:10:BE:80:D1:99:CD:61:82:10:57:44:CC:47:39:EC:90:CF:01:D4:D9:B9:5A:77:8A:DD:7C:9A:49:C7:61:EB:28:40:0C:C1:23:B4:47:A2:2C:22:CD:34:B3:2B:10:B2:27:2A:5B:9F:3A:80:4F:31:15:77:4D:B3:28:27:3E:AB:D5:5F:22:31:A3:5D:DA:05:96:AB:70:89:ED:F7:FF:CA:A5:28:F1:49:06:6B:E4:9B:D1:A3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122430Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.036) 0:00:35.575 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.038) 0:00:35.613 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.037) 0:00:35.651 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.037) 0:00:35.689 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.042) 0:00:35.731 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.040) 0:00:35.772 ******* ok: [managed_node1] => { "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.050953", "end": "2024-08-03 08:24:36.729283", "rc": 0, "start": "2024-08-03 08:24:36.678330" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.418) 0:00:36.190 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.038) 0:00:36.229 ******* ok: [managed_node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.013) 0:00:36.242 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.033) 0:00:36.275 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.032) 0:00:36.308 ******* skipping: [managed_node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 03 August 2024 08:24:36 -0400 (0:00:00.033) 0:00:36.341 ******* ok: [managed_node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 03 August 2024 08:24:39 -0400 (0:00:02.471) 0:00:38.812 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687871.1879349, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6ae8b523b949ba4e0393b48e5f3d52c7051648b9", "ctime": 1722687871.1849349, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718642, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722687871.1849349, "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": "4088118102", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 03 August 2024 08:24:39 -0400 (0:00:00.381) 0:00:39.193 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 03 August 2024 08:24:39 -0400 (0:00:00.037) 0:00:39.231 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 03 August 2024 08:24:39 -0400 (0:00:00.066) 0:00:39.297 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 03 August 2024 08:24:39 -0400 (0:00:00.037) 0:00:39.335 ******* ok: [managed_node1] => { "changed": false, "stat": { "atime": 1722687871.1419349, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9a72d6789d11e12e75ddf723fe73031e29cb5c52", "ctime": 1722687871.1849349, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718641, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1722687871.1849349, "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": "3180424312", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 03 August 2024 08:24:40 -0400 (0:00:00.378) 0:00:39.714 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 03 August 2024 08:24:40 -0400 (0:00:00.036) 0:00:39.750 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 03 August 2024 08:24:40 -0400 (0:00:00.040) 0:00:39.791 ******* ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "8C:13:BA:68:87:5C:C1:F9:78:85:BB:E7:E3:EB:8D:AD:FD:78:B0:4E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A9:A4:B0:DA:BB:BD:02:B6:05:D2:38:D1:42:68:AA:F1:BF:2E:BA:8D:E5:7B:52:39:BA:C5:15:36:33:8F:F3:73:C6:5A:A1:A9:11:AA:D4:D3:8C:1A:FF:69:AC:59:02:C9:8B:B3:9F:0B:F6:E6:EE:FB:D7:FD:46:0C:85:EA:56:41:56:2C:11:F9:61:38:CA:86:34:46:2A:B0:3D:78:3E:11:7F:31:75:DC:F7:7F:4E:A2:94:F6:07:07:7C:45:E7:A1:8A:B8:45:61:CB:9B:90:38:C0:6B:AC:A0:00:E4:E7:FA:72:40:71:0E:D6:DC:FF:34:17:E4:12:5B:55:4C:5F:38:F8:52:05:32:E9:5A:02:05:69:3F:58:55:F3:E1:10:55:78:8E:D2:8F:3C:83:ED:56:06:88:F5:00:F0:C1:96:67:9E:60:3B:11:1B:2A:2D:19:F3:52:F6:70:A4:50:16:DB:34:82:67:4E:4A:28:6A:CC:7E:F4:09:57:EE:8D:C5:E0:C6:32:14:7C:75:E1:5D:A9:E1:21:56:D1:34:78:C4:46:06:9F:4B:DA:F1:10:F9:51:67:68:8A:27:0F:49:C0:00:C9:23:75:CF:7F:FB:A6:EE:1A:70:CB:6F:EC:D4:36:29:56:55:52:47:5A:18:F4:3E:F6:86:25:D5:85:4B:BB:AB" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122431Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 03 August 2024 08:24:40 -0400 (0:00:00.438) 0:00:40.230 ******* ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "71:B9:89:48:52:BC:FB:35:5A:59:DF:9A:44:C0:47:D9:F8:10:FA:83" }, "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": "8C:13:BA:68:87:5C:C1:F9:78:85:BB:E7:E3:EB:8D:AD:FD:78:B0:4E" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A9:A4:B0:DA:BB:BD:02:B6:05:D2:38:D1:42:68:AA:F1:BF:2E:BA:8D:E5:7B:52:39:BA:C5:15:36:33:8F:F3:73:C6:5A:A1:A9:11:AA:D4:D3:8C:1A:FF:69:AC:59:02:C9:8B:B3:9F:0B:F6:E6:EE:FB:D7:FD:46:0C:85:EA:56:41:56:2C:11:F9:61:38:CA:86:34:46:2A:B0:3D:78:3E:11:7F:31:75:DC:F7:7F:4E:A2:94:F6:07:07:7C:45:E7:A1:8A:B8:45:61:CB:9B:90:38:C0:6B:AC:A0:00:E4:E7:FA:72:40:71:0E:D6:DC:FF:34:17:E4:12:5B:55:4C:5F:38:F8:52:05:32:E9:5A:02:05:69:3F:58:55:F3:E1:10:55:78:8E:D2:8F:3C:83:ED:56:06:88:F5:00:F0:C1:96:67:9E:60:3B:11:1B:2A:2D:19:F3:52:F6:70:A4:50:16:DB:34:82:67:4E:4A:28:6A:CC:7E:F4:09:57:EE:8D:C5:E0:C6:32:14:7C:75:E1:5D:A9:E1:21:56:D1:34:78:C4:46:06:9F:4B:DA:F1:10:F9:51:67:68:8A:27:0F:49:C0:00:C9:23:75:CF:7F:FB:A6:EE:1A:70:CB:6F:EC:D4:36:29:56:55:52:47:5A:18:F4:3E:F6:86:25:D5:85:4B:BB:AB" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250803122330Z", "not_valid_before": "20240803122431Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 03 August 2024 08:24:40 -0400 (0:00:00.036) 0:00:40.267 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 03 August 2024 08:24:40 -0400 (0:00:00.038) 0:00:40.305 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 03 August 2024 08:24:40 -0400 (0:00:00.063) 0:00:40.369 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 03 August 2024 08:24:41 -0400 (0:00:00.064) 0:00:40.433 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 03 August 2024 08:24:41 -0400 (0:00:00.042) 0:00:40.476 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 03 August 2024 08:24:41 -0400 (0:00:00.042) 0:00:40.518 ******* ok: [managed_node1] => { "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.050737", "end": "2024-08-03 08:24:41.472622", "rc": 0, "start": "2024-08-03 08:24:41.421885" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 03 August 2024 08:24:41 -0400 (0:00:00.416) 0:00:40.935 ******* ok: [managed_node1] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node1 : ok=99 changed=4 unreachable=0 failed=0 skipped=26 rescued=0 ignored=0 Saturday 03 August 2024 08:24:41 -0400 (0:00:00.036) 0:00:40.971 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.58s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.47s /tmp/tmp.9Yo9psUtcm/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.47s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 2.47s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Ensure python3 is installed --------------------------------------------- 2.47s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.47s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.47s /tmp/tmp.9Yo9psUtcm/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.46s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.81s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.52s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.89s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.72s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure user exists ------------------------------------------------------ 0.71s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Gathering Facts --------------------------------------------------------- 0.65s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Gathering Facts --------------------------------------------------------- 0.64s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Gathering Facts --------------------------------------------------------- 0.64s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.62s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Parse certificate ------------------------------------------------------- 0.53s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.51s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Retrieve auto-renew flag ------------------------------------------------ 0.51s /tmp/tmp.9Yo9psUtcm/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143