ansible-playbook [core 2.16.14] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-yxU executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_subject_complex.yml ******************************************** 2 plays in /tmp/collections-yxU/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-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:2 Wednesday 18 June 2025 03:58:49 -0400 (0:00:00.037) 0:00:00.037 ******** ok: [managed-node2] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 18 June 2025 03:58:50 -0400 (0:00:01.224) 0:00:01.262 ******** included: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 18 June 2025 03:58:50 -0400 (0:00:00.023) 0:00:01.285 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "__certificate_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Wednesday 18 June 2025 03:58:50 -0400 (0:00:00.037) 0:00:01.323 ******** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Wednesday 18 June 2025 03:58:50 -0400 (0:00:00.502) 0:00:01.826 ******** ok: [managed-node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Run systemctl] ******************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Wednesday 18 June 2025 03:58:50 -0400 (0:00:00.024) 0:00:01.850 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.007663", "end": "2025-06-18 03:58:51.443170", "failed_when_result": false, "rc": 0, "start": "2025-06-18 03:58:51.435507" } STDOUT: running TASK [fedora.linux_system_roles.certificate : Require installed systemd] ******* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:30 Wednesday 18 June 2025 03:58:51 -0400 (0:00:00.494) 0:00:02.345 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "\"No such file or directory\" in __is_system_running.msg | d(\"\")", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate that systemd runtime operations are available] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Wednesday 18 June 2025 03:58:51 -0400 (0:00:00.040) 0:00:02.386 ******** ok: [managed-node2] => { "ansible_facts": { "__certificate_is_booted": true }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 Wednesday 18 June 2025 03:58:51 -0400 (0:00:00.024) 0:00:02.410 ******** skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 18 June 2025 03:58:51 -0400 (0:00:00.037) 0:00:02.448 ******** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Wednesday 18 June 2025 03:58:54 -0400 (0:00:03.092) 0:00:05.540 ******** ok: [managed-node2] => (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-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Wednesday 18 June 2025 03:58:57 -0400 (0:00:02.996) 0:00:08.536 ******** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Wednesday 18 June 2025 03:58:58 -0400 (0:00:00.644) 0:00:09.181 ******** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Wednesday 18 June 2025 03:58:58 -0400 (0:00:00.429) 0:00:09.610 ******** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2025-06-18 03:56:14 EDT", "ActiveEnterTimestampMonotonic": "212720814", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target syslog.target dbus.service system.slice basic.target systemd-journald.socket sysinit.target dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-06-18 03:56:14 EDT", "AssertTimestampMonotonic": "212710506", "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": "Wed 2025-06-18 03:56:14 EDT", "ConditionTimestampMonotonic": "212710505", "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": "8964", "ExecMainStartTimestamp": "Wed 2025-06-18 03:56:14 EDT", "ExecMainStartTimestampMonotonic": "212711330", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Wed 2025-06-18 03:56:14 EDT] ; stop_time=[n/a] ; pid=8964 ; 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": "Wed 2025-06-18 03:56:14 EDT", "InactiveExitTimestampMonotonic": "212711361", "InvocationID": "781a4ec47e7c4cf6a7965b37750b577a", "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": "28608", "LimitNPROCSoft": "28608", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "28608", "LimitSIGPENDINGSoft": "28608", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8964", "MemoryAccounting": "yes", "MemoryCurrent": "4100096", "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": "Wed 2025-06-18 03:56:14 EDT", "StateChangeTimestampMonotonic": "212720814", "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": "45773", "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": "Wed 2025-06-18 03:56:14 EDT", "WatchdogTimestampMonotonic": "212720811", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Wednesday 18 June 2025 03:58:59 -0400 (0:00:00.987) 0:00:10.598 ******** changed: [managed-node2] => (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 : Check if test mode is supported] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:138 Wednesday 18 June 2025 03:59:00 -0400 (0:00:01.043) 0:00:11.641 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:143 Wednesday 18 June 2025 03:59:00 -0400 (0:00:00.057) 0:00:11.698 ******** skipping: [managed-node2] => (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, "false_condition": "certificate_test_mode | d(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-node2] => (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, "false_condition": "certificate_test_mode | d(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-node2] => (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, "false_condition": "certificate_test_mode | d(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" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Reset certificate_test_certs] **** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:151 Wednesday 18 June 2025 03:59:00 -0400 (0:00:00.096) 0:00:11.795 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:155 Wednesday 18 June 2025 03:59:00 -0400 (0:00:00.051) 0:00:11.847 ******** skipping: [managed-node2] => (item=mycert_subject_complex) => { "ansible_loop_var": "cert_name", "cert_name": "mycert_subject_complex", "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:169 Wednesday 18 June 2025 03:59:01 -0400 (0:00:00.049) 0:00:11.896 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Wednesday 18 June 2025 03:59:01 -0400 (0:00:00.040) 0:00:11.936 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "certificate_test_mode | d(false)", "skip_reason": "Conditional result was False" } PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:16 Wednesday 18 June 2025 03:59:01 -0400 (0:00:00.049) 0:00:11.986 ******** ok: [managed-node2] TASK [Verify each certificate] ************************************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:42 Wednesday 18 June 2025 03:59:01 -0400 (0:00:00.799) 0:00:12.785 ******** included: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 => (item={'path': '/etc/pki/tls/certs/mycert_subject_complex.crt', 'key_path': '/etc/pki/tls/private/mycert_subject_complex.key', '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 '}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:5 Wednesday 18 June 2025 03:59:02 -0400 (0:00:00.077) 0:00:12.863 ******** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:12 Wednesday 18 June 2025 03:59:02 -0400 (0:00:00.032) 0:00:12.895 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:17 Wednesday 18 June 2025 03:59:02 -0400 (0:00:00.041) 0:00:12.937 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "not __certificate_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [Ensure python2 is installed] ********************************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Wednesday 18 June 2025 03:59:02 -0400 (0:00:00.034) 0:00:12.971 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_distribution_major_version == \"7\"", "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 18 June 2025 03:59:02 -0400 (0:00:00.028) 0:00:13.000 ******** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 Wednesday 18 June 2025 03:59:05 -0400 (0:00:03.032) 0:00:16.032 ******** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1750233540.611962, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ad5d8eb8674976c69f51282659af79d504f47666", "ctime": 1750233540.609962, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894534, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1750233540.609962, "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": "3949429831", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:46 Wednesday 18 June 2025 03:59:05 -0400 (0:00:00.398) 0:00:16.431 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:52 Wednesday 18 June 2025 03:59:05 -0400 (0:00:00.024) 0:00:16.456 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:62 Wednesday 18 June 2025 03:59:05 -0400 (0:00:00.047) 0:00:16.503 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Wednesday 18 June 2025 03:59:05 -0400 (0:00:00.045) 0:00:16.548 ******** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1750233540.5669618, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d645a22d626184bffcf27d439ae56810d0978fb4", "ctime": 1750233540.609962, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6894533, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1750233540.609962, "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": "3483779867", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:73 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.392) 0:00:16.941 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.029) 0:00:16.970 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.047) 0:00:17.017 ******** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FF:2F:22:2F:AD:77:A3:16:41:0C:6E:27:D8:6D:25:EE:FA:79:E8:4A" }, "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": "A9:AE:7A:16:21:25:68:3D:6E:AC:F8:FB:0F:D6:46:18:6D:7A:E8:CB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5F:D2:6C:33:3C:E2:00:BE:82:A5:55:9F:8E:FC:5F:24:7D:CB:28:1F:BB:50:6E:31:A8:D2:15:37:E0:DB:74:B2:BE:39:EB:8D:94:DA:4C:59:83:FF:8F:28:5E:DB:A6:71:74:2C:62:81:C3:A1:DA:BA:3F:68:0A:7E:3B:FD:92:31:3C:55:5F:DD:8D:67:79:53:DB:AC:80:93:CC:C4:25:CE:11:02:12:26:9A:72:B2:B2:70:72:F7:35:2C:17:08:17:E1:86:15:00:F8:90:87:BE:A4:61:4F:7E:99:76:9E:6E:CF:1A:6A:A7:7A:73:87:E0:66:1B:A3:0B:11:03:27:9D:29:6B:67:BA:59:3E:A0:BB:72:49:4E:4D:BF:17:9C:22:1F:B1:04:C4:D7:49:3F:BC:C6:38:4F:C0:75:C2:75:98:EC:D0:D9:A7:49:89:03:7F:70:EE:7C:4F:8A:FB:86:BD:3D:26:E8:E6:C5:4B:81:DC:5A:03:2D:E7:36:64:3C:1F:EB:8D:6B:47:1F:FB:73:81:1C:7A:82:9B:D8:7B:ED:87:6B:87:FD:14:7B:41:17:5B:90:50:81:B8:A8:A2:2B:13:3B:17:31:C6:43:5A:62:6A:8F:52:FD:59:CC:7B:EE:98:FD:97:54:45:C7:BB:1D:36:57:11:A4:A3:0D:9C:93:9E" }, "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": "20260618075614Z", "not_valid_before": "20250618075900Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:95 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.560) 0:00:17.578 ******** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "FF:2F:22:2F:AD:77:A3:16:41:0C:6E:27:D8:6D:25:EE:FA:79:E8:4A" }, "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": "A9:AE:7A:16:21:25:68:3D:6E:AC:F8:FB:0F:D6:46:18:6D:7A:E8:CB" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5F:D2:6C:33:3C:E2:00:BE:82:A5:55:9F:8E:FC:5F:24:7D:CB:28:1F:BB:50:6E:31:A8:D2:15:37:E0:DB:74:B2:BE:39:EB:8D:94:DA:4C:59:83:FF:8F:28:5E:DB:A6:71:74:2C:62:81:C3:A1:DA:BA:3F:68:0A:7E:3B:FD:92:31:3C:55:5F:DD:8D:67:79:53:DB:AC:80:93:CC:C4:25:CE:11:02:12:26:9A:72:B2:B2:70:72:F7:35:2C:17:08:17:E1:86:15:00:F8:90:87:BE:A4:61:4F:7E:99:76:9E:6E:CF:1A:6A:A7:7A:73:87:E0:66:1B:A3:0B:11:03:27:9D:29:6B:67:BA:59:3E:A0:BB:72:49:4E:4D:BF:17:9C:22:1F:B1:04:C4:D7:49:3F:BC:C6:38:4F:C0:75:C2:75:98:EC:D0:D9:A7:49:89:03:7F:70:EE:7C:4F:8A:FB:86:BD:3D:26:E8:E6:C5:4B:81:DC:5A:03:2D:E7:36:64:3C:1F:EB:8D:6B:47:1F:FB:73:81:1C:7A:82:9B:D8:7B:ED:87:6B:87:FD:14:7B:41:17:5B:90:50:81:B8:A8:A2:2B:13:3B:17:31:C6:43:5A:62:6A:8F:52:FD:59:CC:7B:EE:98:FD:97:54:45:C7:BB:1D:36:57:11:A4:A3:0D:9C:93:9E" }, "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": "20260618075614Z", "not_valid_before": "20250618075900Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.023) 0:00:17.602 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:107 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.045) 0:00:17.647 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:115 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.023) 0:00:17.671 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:122 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.044) 0:00:17.716 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:133 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.047) 0:00:17.764 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Wednesday 18 June 2025 03:59:06 -0400 (0:00:00.047) 0:00:17.812 ******** ok: [managed-node2] => { "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.058414", "end": "2025-06-18 03:59:07.356873", "rc": 0, "start": "2025-06-18 03:59:07.298459" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:155 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.448) 0:00:18.260 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Stat commands file] ****************************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.044) 0:00:18.305 ******** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [Assert that commands file got removed] *********************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:168 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.384) 0:00:18.690 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Stat first-boot unit file] *********************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:176 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.024) 0:00:18.714 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_connection == \"buildah\"", "skip_reason": "Conditional result was False" } TASK [Assert presence of first-boot unit] ************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:181 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.022) 0:00:18.736 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_connection == \"buildah\"", "skip_reason": "Conditional result was False" } TASK [Assert that first-boot unit is enabled] ********************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:186 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.026) 0:00:18.762 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_connection == \"buildah\"", "skip_reason": "Conditional result was False" } TASK [Stat commands file] ****************************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:193 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.025) 0:00:18.788 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_connection == \"buildah\"", "skip_reason": "Conditional result was False" } TASK [Assert that commands file exists] **************************************** task path: /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:198 Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.025) 0:00:18.814 ******** skipping: [managed-node2] => { "changed": false, "false_condition": "ansible_connection == \"buildah\"", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* managed-node2 : ok=34 changed=1 unreachable=0 failed=0 skipped=17 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Wednesday 18 June 2025 03:59:07 -0400 (0:00:00.021) 0:00:18.835 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.09s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 3.03s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:31 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 3.00s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Gathering Facts --------------------------------------------------------- 1.22s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.04s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.99s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Gathering Facts --------------------------------------------------------- 0.80s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:16 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.64s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Parse certificate ------------------------------------------------------- 0.56s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.50s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 fedora.linux_system_roles.certificate : Run systemctl ------------------- 0.49s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Retrieve auto-renew flag ------------------------------------------------ 0.45s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.43s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Retrieve certificate file stats ----------------------------------------- 0.40s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 Retrieve key file stats ------------------------------------------------- 0.39s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Stat commands file ------------------------------------------------------ 0.38s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.10s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:143 Verify each certificate ------------------------------------------------- 0.08s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject_complex.yml:42 fedora.linux_system_roles.certificate : Check if test mode is supported --- 0.06s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:138 fedora.linux_system_roles.certificate : Reset certificate_test_certs ---- 0.05s /tmp/collections-yxU/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:151