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_subject_complex.yml ******************************************** 2 plays in /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:2 Friday 20 September 2024 20:15:51 -0400 (0:00:00.020) 0:00:00.020 ****** ok: [managed_node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Friday 20 September 2024 20:15:53 -0400 (0:00:01.189) 0:00:01.210 ****** included: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Friday 20 September 2024 20:15:53 -0400 (0:00:00.018) 0:00:01.229 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Friday 20 September 2024 20:15:53 -0400 (0:00:00.033) 0:00:01.263 ****** ok: [managed_node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Friday 20 September 2024 20:15:53 -0400 (0:00:00.531) 0:00:01.795 ****** ok: [managed_node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Friday 20 September 2024 20:15:53 -0400 (0:00:00.056) 0:00:01.851 ****** skipping: [managed_node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Friday 20 September 2024 20:15:53 -0400 (0:00:00.106) 0:00:01.958 ****** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Friday 20 September 2024 20:15:56 -0400 (0:00:02.940) 0:00:04.899 ****** ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Friday 20 September 2024 20:15:59 -0400 (0:00:02.758) 0:00:07.658 ****** ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 41, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Friday 20 September 2024 20:16:00 -0400 (0:00:00.491) 0:00:08.149 ****** ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 41, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Friday 20 September 2024 20:16:00 -0400 (0:00:00.386) 0:00:08.536 ****** ok: [managed_node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Fri 2024-09-20 20:14:26 EDT", "ActiveEnterTimestampMonotonic": "324403650", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket system.slice network.target basic.target dbus.service dbus.socket syslog.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Fri 2024-09-20 20:14:26 EDT", "AssertTimestampMonotonic": "324392445", "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": "Fri 2024-09-20 20:14:26 EDT", "ConditionTimestampMonotonic": "324392444", "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": "9349", "ExecMainStartTimestamp": "Fri 2024-09-20 20:14:26 EDT", "ExecMainStartTimestampMonotonic": "324393243", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Fri 2024-09-20 20:14:26 EDT] ; stop_time=[n/a] ; pid=9349 ; 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": "Fri 2024-09-20 20:14:26 EDT", "InactiveExitTimestampMonotonic": "324393281", "InvocationID": "f23e4890e3c24d8d93f312e38317cb40", "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": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9349", "MemoryAccounting": "yes", "MemoryCurrent": "4009984", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Fri 2024-09-20 20:14:26 EDT", "StateChangeTimestampMonotonic": "324403650", "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": "22405", "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": "Fri 2024-09-20 20:14:26 EDT", "WatchdogTimestampMonotonic": "324403648", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Friday 20 September 2024 20:16:01 -0400 (0:00:00.738) 0:00:09.275 ****** changed: [managed_node3] => (item={'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Friday 20 September 2024 20:16:02 -0400 (0:00:00.967) 0:00:10.242 ****** skipping: [managed_node3] => (item=['cert', {'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['key', {'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node3] => (item=['ca', {'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Friday 20 September 2024 20:16:02 -0400 (0:00:00.045) 0:00:10.288 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Friday 20 September 2024 20:16:02 -0400 (0:00:00.034) 0:00:10.322 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Friday 20 September 2024 20:16:02 -0400 (0:00:00.034) 0:00:10.357 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:16 Friday 20 September 2024 20:16:02 -0400 (0:00:00.040) 0:00:10.397 ****** ok: [managed_node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:42 Friday 20 September 2024 20:16:02 -0400 (0:00:00.656) 0:00:11.053 ****** included: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Friday 20 September 2024 20:16:03 -0400 (0:00:00.055) 0:00:11.109 ****** ok: [managed_node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Friday 20 September 2024 20:16:03 -0400 (0:00:00.037) 0:00:11.147 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Friday 20 September 2024 20:16:03 -0400 (0:00:00.036) 0:00:11.183 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Friday 20 September 2024 20:16:03 -0400 (0:00:00.039) 0:00:11.223 ****** skipping: [managed_node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Friday 20 September 2024 20:16:03 -0400 (0:00:00.047) 0:00:11.270 ****** ok: [managed_node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Friday 20 September 2024 20:16:05 -0400 (0:00:02.783) 0:00:14.054 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726877761.9508781, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "2a5eef62afb6f06643e5cda0f80ca1c9ade277ad", "ctime": 1726877761.9478781, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718653, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1726877761.9478781, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject_complex.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1375, "uid": 0, "version": "354234947", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Friday 20 September 2024 20:16:06 -0400 (0:00:00.375) 0:00:14.429 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Friday 20 September 2024 20:16:06 -0400 (0:00:00.038) 0:00:14.468 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Friday 20 September 2024 20:16:06 -0400 (0:00:00.046) 0:00:14.514 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Friday 20 September 2024 20:16:06 -0400 (0:00:00.039) 0:00:14.554 ****** ok: [managed_node3] => { "changed": false, "stat": { "atime": 1726877761.908878, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "86de652463e706135f74b0a475c91afd6b17d17b", "ctime": 1726877761.9478781, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 7718652, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1726877761.9478781, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject_complex.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2414228585", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Friday 20 September 2024 20:16:06 -0400 (0:00:00.375) 0:00:14.929 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Friday 20 September 2024 20:16:06 -0400 (0:00:00.038) 0:00:14.967 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Friday 20 September 2024 20:16:06 -0400 (0:00:00.041) 0:00:15.009 ****** ok: [managed_node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "1F:73:18:D2:3A:99:AA:55:8C:D5:60:EC:40:98:CA:26:88:8D:9A:80" }, "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": "FA:8F:1B:28:BA:3C:2D:45:BB:FE:A0:27:61:86:4F:C7:F6:0B:98:89" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "87:A0:03:6A:A7:FD:CD:20:67:F9:41:96:50:3B:6E:A6:DE:5F:2F:30:5D:1C:6A:7F:AF:D4:5D:49:FE:25:93:1D:5B:0C:19:4A:6C:07:7B:6E:5F:B2:CC:98:1F:FB:C1:51:DB:7D:6B:5E:5D:A3:87:7D:19:A2:EB:A3:91:48:CD:3E:56:96:BC:FA:E1:43:CC:3D:BB:77:4B:B0:58:C5:A3:FA:B4:05:9C:61:4C:9A:AD:8E:E1:5B:DB:02:3C:3A:47:6D:8F:2C:CA:26:F7:E6:FB:77:08:B1:75:B5:86:B0:17:C2:B4:08:01:75:5B:5E:92:3F:14:D4:29:00:F4:A7:05:F7:60:D8:40:33:B5:9E:31:D1:E9:05:D0:EE:E6:5E:C6:0D:13:C2:4E:3D:0F:CA:70:B7:B5:E5:73:56:31:3F:6C:6F:06:83:E0:A4:C7:4F:41:04:5B:07:3B:C2:7A:C6:09:DE:A3:85:29:22:26:07:5C:09:D4:ED:35:A9:D4:80:64:9D:7D:09:01:3E:95:54:B3:42:9C:81:67:89:1C:25:72:FB:3A:BD:04:37:5F:EE:65:35:96:70:1E:6C:A7:E6:3F:B2:DA:3C:63:3A:80:00:EE:BF:38:E0:53:8F:C9:2A:A5:00:0D:57:E2:7F:EE:29:AD:BD:B0:F0:09:67:D1:EA:CE:B2" }, "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "validity": { "not_valid_after": "20250921001426Z", "not_valid_before": "20240921001601Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Friday 20 September 2024 20:16:07 -0400 (0:00:00.519) 0:00:15.528 ****** ok: [managed_node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "1F:73:18:D2:3A:99:AA:55:8C:D5:60:EC:40:98:CA:26:88:8D:9A:80" }, "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": "FA:8F:1B:28:BA:3C:2D:45:BB:FE:A0:27:61:86:4F:C7:F6:0B:98:89" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "87:A0:03:6A:A7:FD:CD:20:67:F9:41:96:50:3B:6E:A6:DE:5F:2F:30:5D:1C:6A:7F:AF:D4:5D:49:FE:25:93:1D:5B:0C:19:4A:6C:07:7B:6E:5F:B2:CC:98:1F:FB:C1:51:DB:7D:6B:5E:5D:A3:87:7D:19:A2:EB:A3:91:48:CD:3E:56:96:BC:FA:E1:43:CC:3D:BB:77:4B:B0:58:C5:A3:FA:B4:05:9C:61:4C:9A:AD:8E:E1:5B:DB:02:3C:3A:47:6D:8F:2C:CA:26:F7:E6:FB:77:08:B1:75:B5:86:B0:17:C2:B4:08:01:75:5B:5E:92:3F:14:D4:29:00:F4:A7:05:F7:60:D8:40:33:B5:9E:31:D1:E9:05:D0:EE:E6:5E:C6:0D:13:C2:4E:3D:0F:CA:70:B7:B5:E5:73:56:31:3F:6C:6F:06:83:E0:A4:C7:4F:41:04:5B:07:3B:C2:7A:C6:09:DE:A3:85:29:22:26:07:5C:09:D4:ED:35:A9:D4:80:64:9D:7D:09:01:3E:95:54:B3:42:9C:81:67:89:1C:25:72:FB:3A:BD:04:37:5F:EE:65:35:96:70:1E:6C:A7:E6:3F:B2:DA:3C:63:3A:80:00:EE:BF:38:E0:53:8F:C9:2A:A5:00:0D:57:E2:7F:EE:29:AD:BD:B0:F0:09:67:D1:EA:CE:B2" }, "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "validity": { "not_valid_after": "20250921001426Z", "not_valid_before": "20240921001601Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Friday 20 September 2024 20:16:07 -0400 (0:00:00.038) 0:00:15.567 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Friday 20 September 2024 20:16:07 -0400 (0:00:00.040) 0:00:15.607 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Friday 20 September 2024 20:16:07 -0400 (0:00:00.039) 0:00:15.646 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Friday 20 September 2024 20:16:07 -0400 (0:00:00.038) 0:00:15.685 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Friday 20 September 2024 20:16:07 -0400 (0:00:00.043) 0:00:15.728 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Friday 20 September 2024 20:16:07 -0400 (0:00:00.042) 0:00:15.771 ****** ok: [managed_node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject_complex.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.054564", "end": "2024-09-20 20:16:08.124662", "rc": 0, "start": "2024-09-20 20:16:08.070098" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Friday 20 September 2024 20:16:08 -0400 (0:00:00.511) 0:00:16.283 ****** ok: [managed_node3] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node3 : ok=30 changed=1 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Friday 20 September 2024 20:16:08 -0400 (0:00:00.036) 0:00:16.320 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.94s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.78s /tmp/collections-xZk/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.76s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Gathering Facts --------------------------------------------------------- 1.19s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 0.97s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.74s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.66s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:16 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.53s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.52s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.51s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.49s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.39s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.38s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.38s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.11s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 fedora.linux_system_roles.certificate : Set flag to indicate system is ostree --- 0.06s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Verify each certificate ------------------------------------------------- 0.06s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:42 Ensure python3 is installed --------------------------------------------- 0.05s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Verify certificate file owner and group --------------------------------- 0.05s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.05s /tmp/collections-xZk/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152