ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [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 'jsonl', 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_principal.yml ************************************************** 3 plays in /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml PLAY [Test issuing certificate with principal.] ******************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:2 Saturday 18 October 2025 08:30:27 -0400 (0:00:00.048) 0:00:00.048 ****** ok: [managed-node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 18 October 2025 08:30:28 -0400 (0:00:00.886) 0:00:00.935 ****** included: /tmp/collections-h3d/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-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 18 October 2025 08:30:28 -0400 (0:00:00.033) 0:00:00.969 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 18 October 2025 08:30:28 -0400 (0:00:00.041) 0:00:01.011 ****** 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-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 18 October 2025 08:30:29 -0400 (0:00:00.524) 0:00:01.535 ****** ok: [managed-node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Run systemctl] ******************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Saturday 18 October 2025 08:30:29 -0400 (0:00:00.058) 0:00:01.594 ****** ok: [managed-node2] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.008750", "end": "2025-10-18 08:30:29.701057", "failed_when_result": false, "rc": 0, "start": "2025-10-18 08:30:29.692307" } STDOUT: running TASK [fedora.linux_system_roles.certificate : Require installed systemd] ******* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:30 Saturday 18 October 2025 08:30:29 -0400 (0:00:00.441) 0:00:02.035 ****** skipping: [managed-node2] => { "changed": false, "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-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Saturday 18 October 2025 08:30:29 -0400 (0:00:00.053) 0:00:02.088 ****** 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-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 Saturday 18 October 2025 08:30:29 -0400 (0:00:00.056) 0:00:02.145 ****** skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node2] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed-node2] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 18 October 2025 08:30:29 -0400 (0:00:00.110) 0:00:02.256 ****** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "python2-pyasn1-0.1.9-7.el7.noarch providing python-pyasn1 is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python-cryptography is already installed", "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Saturday 18 October 2025 08:30:31 -0400 (0:00:01.247) 0:00:03.503 ****** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [ "certmonger-0.78.4-17.el7_9.x86_64 providing certmonger is already installed" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Saturday 18 October 2025 08:30:31 -0400 (0:00:00.588) 0:00:04.091 ****** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Saturday 18 October 2025 08:30:32 -0400 (0:00:00.517) 0:00:04.609 ****** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Saturday 18 October 2025 08:30:32 -0400 (0:00:00.330) 0:00:04.940 ****** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2025-10-18 08:29:18 EDT", "ActiveEnterTimestampMonotonic": "223614196", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target systemd-journald.socket basic.target dbus.service system.slice syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2025-10-18 08:29:18 EDT", "AssertTimestampMonotonic": "223584864", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2025-10-18 08:29:18 EDT", "ConditionTimestampMonotonic": "223584862", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9711", "ExecMainStartTimestamp": "Sat 2025-10-18 08:29:18 EDT", "ExecMainStartTimestampMonotonic": "223585444", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2025-10-18 08:29:18 EDT] ; stop_time=[n/a] ; pid=9711 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2025-10-18 08:29:18 EDT", "InactiveExitTimestampMonotonic": "223585475", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "29173", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "29173", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9711", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2025-10-18 08:29:18 EDT", "WatchdogTimestampMonotonic": "223614140", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Saturday 18 October 2025 08:30:33 -0400 (0:00:00.739) 0:00:05.680 ****** changed: [managed-node2] => (item={u'ca': u'self-sign', u'name': u'mycert_principal', u'dns': u'www.example.com', u'principal': u'HTTP/www.example.com@EXAMPLE.COM'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_principal", "principal": "HTTP/www.example.com@EXAMPLE.COM" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Check if test mode is supported] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:138 Saturday 18 October 2025 08:30:34 -0400 (0:00:00.995) 0:00:06.675 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:143 Saturday 18 October 2025 08:30:34 -0400 (0:00:00.056) 0:00:06.731 ****** skipping: [managed-node2] => (item=[u'cert', {u'ca': u'self-sign', u'name': u'mycert_principal', u'dns': u'www.example.com', u'principal': u'HTTP/www.example.com@EXAMPLE.COM'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_principal", "principal": "HTTP/www.example.com@EXAMPLE.COM" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=[u'key', {u'ca': u'self-sign', u'name': u'mycert_principal', u'dns': u'www.example.com', u'principal': u'HTTP/www.example.com@EXAMPLE.COM'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_principal", "principal": "HTTP/www.example.com@EXAMPLE.COM" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=[u'ca', {u'ca': u'self-sign', u'name': u'mycert_principal', u'dns': u'www.example.com', u'principal': u'HTTP/www.example.com@EXAMPLE.COM'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_principal", "principal": "HTTP/www.example.com@EXAMPLE.COM" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Reset certificate_test_certs] **** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:151 Saturday 18 October 2025 08:30:34 -0400 (0:00:00.091) 0:00:06.822 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:155 Saturday 18 October 2025 08:30:34 -0400 (0:00:00.056) 0:00:06.879 ****** skipping: [managed-node2] => (item=mycert_principal) => { "ansible_loop_var": "cert_name", "cert_name": "mycert_principal", "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:169 Saturday 18 October 2025 08:30:34 -0400 (0:00:00.064) 0:00:06.944 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Saturday 18 October 2025 08:30:34 -0400 (0:00:00.087) 0:00:07.032 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:13 Saturday 18 October 2025 08:30:34 -0400 (0:00:00.069) 0:00:07.102 ****** ok: [managed-node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:33 Saturday 18 October 2025 08:30:36 -0400 (0:00:01.542) 0:00:08.645 ****** included: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:5 Saturday 18 October 2025 08:30:36 -0400 (0:00:00.104) 0:00:08.749 ****** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:12 Saturday 18 October 2025 08:30:36 -0400 (0:00:00.059) 0:00:08.809 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:17 Saturday 18 October 2025 08:30:36 -0400 (0:00:00.047) 0:00:08.857 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python2 is installed] ********************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Saturday 18 October 2025 08:30:36 -0400 (0:00:00.057) 0:00:08.914 ****** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:31 Saturday 18 October 2025 08:30:37 -0400 (0:00:00.599) 0:00:09.514 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 Saturday 18 October 2025 08:30:37 -0400 (0:00:00.065) 0:00:09.580 ****** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1760790634.2486699, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "176087ce2fa24bca68e3f661daa929368efccce6", "ctime": 1760790634.24467, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172762, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1760790634.24467, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_principal.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1456, "uid": 0, "version": "365261773", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:46 Saturday 18 October 2025 08:30:37 -0400 (0:00:00.340) 0:00:09.920 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:52 Saturday 18 October 2025 08:30:37 -0400 (0:00:00.049) 0:00:09.969 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:62 Saturday 18 October 2025 08:30:37 -0400 (0:00:00.052) 0:00:10.021 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Saturday 18 October 2025 08:30:37 -0400 (0:00:00.047) 0:00:10.069 ****** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1760790634.1996706, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a943dbf747f6fb82f15cf577096797d64db72038", "ctime": 1760790634.24467, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172761, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1760790634.24467, "nlink": 1, "path": "/etc/pki/tls/private/mycert_principal.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "365261760", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:73 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.297) 0:00:10.366 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:79 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.047) 0:00:10.414 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.053) 0:00:10.467 ****** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "39:6E:A4:4D:2F:97:B5:74:8C:1B:41:8F:47:C1:9B:1A:CB:40:F1:11" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" }, { "name": "Universal Principal Name (UPN)", "oid": "1.3.6.1.4.1.311.20.2.3", "value": "HTTP/www.example.com@EXAMPLE.COM" }, { "name": "Kerberos principalname", "oid": "1.3.6.1.5.2.2", "value": "HTTP/www.example.com@EXAMPLE.COM" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "13:AF:10:DF:B4:E4:48:12:15:8F:1A:B5:14:48:46:7B:42:18:12:31" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:05:2A:05:95:51:2C:2E:A1:8D:D0:C9:64:B2:BE:61:E1:F6:26:2D:C6:C6:DE:3A:39:D2:01:93:A4:CC:5E:D4:6C:5C:FE:0F:D6:BF:89:F1:39:C5:87:BB:C0:E3:39:5B:AA:65:8C:BD:66:BC:79:A7:EE:08:3F:6B:95:D3:13:B2:17:8A:D8:96:7E:0B:34:3D:6C:48:80:E9:AA:B5:44:15:D2:97:C7:60:E1:22:BE:7C:AB:53:D6:15:2C:3B:AA:DD:E4:0D:02:8D:F9:6F:F6:3F:EC:CE:F9:76:0F:8A:16:1F:C4:A9:37:72:DA:70:33:B2:82:25:F0:A8:67:CB:C9:6C:5D:93:28:8A:CB:90:5C:7B:68:9A:E6:E8:4B:D6:3E:8C:E7:A0:B3:AA:53:CC:8F:5C:62:77:50:BE:04:86:66:96:E0:5B:B3:E9:A3:93:F0:99:66:3C:99:AF:F5:85:CD:13:55:92:3A:BF:63:CE:05:46:FE:69:09:10:91:24:E7:FB:8E:B3:46:58:97:B3:99:6E:A5:67:C1:85:C0:BC:FB:E4:9F:03:76:39:20:E4:89:84:F0:24:14:4B:E7:37:D2:39:FB:FE:19:46:65:88:92:10:19:CD:75:0A:E0:86:DE:DE:A6:F4:C8:41:B9:E8:FD:AD:9F:64:17:B5:AE:28:39:5E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20261018122918Z", "not_valid_before": "20251018123034Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:95 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.530) 0:00:10.998 ****** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "39:6E:A4:4D:2F:97:B5:74:8C:1B:41:8F:47:C1:9B:1A:CB:40:F1:11" }, "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": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" }, { "name": "Universal Principal Name (UPN)", "oid": "1.3.6.1.4.1.311.20.2.3", "value": "HTTP/www.example.com@EXAMPLE.COM" }, { "name": "Kerberos principalname", "oid": "1.3.6.1.5.2.2", "value": "HTTP/www.example.com@EXAMPLE.COM" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "13:AF:10:DF:B4:E4:48:12:15:8F:1A:B5:14:48:46:7B:42:18:12:31" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "64:05:2A:05:95:51:2C:2E:A1:8D:D0:C9:64:B2:BE:61:E1:F6:26:2D:C6:C6:DE:3A:39:D2:01:93:A4:CC:5E:D4:6C:5C:FE:0F:D6:BF:89:F1:39:C5:87:BB:C0:E3:39:5B:AA:65:8C:BD:66:BC:79:A7:EE:08:3F:6B:95:D3:13:B2:17:8A:D8:96:7E:0B:34:3D:6C:48:80:E9:AA:B5:44:15:D2:97:C7:60:E1:22:BE:7C:AB:53:D6:15:2C:3B:AA:DD:E4:0D:02:8D:F9:6F:F6:3F:EC:CE:F9:76:0F:8A:16:1F:C4:A9:37:72:DA:70:33:B2:82:25:F0:A8:67:CB:C9:6C:5D:93:28:8A:CB:90:5C:7B:68:9A:E6:E8:4B:D6:3E:8C:E7:A0:B3:AA:53:CC:8F:5C:62:77:50:BE:04:86:66:96:E0:5B:B3:E9:A3:93:F0:99:66:3C:99:AF:F5:85:CD:13:55:92:3A:BF:63:CE:05:46:FE:69:09:10:91:24:E7:FB:8E:B3:46:58:97:B3:99:6E:A5:67:C1:85:C0:BC:FB:E4:9F:03:76:39:20:E4:89:84:F0:24:14:4B:E7:37:D2:39:FB:FE:19:46:65:88:92:10:19:CD:75:0A:E0:86:DE:DE:A6:F4:C8:41:B9:E8:FD:AD:9F:64:17:B5:AE:28:39:5E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20261018122918Z", "not_valid_before": "20251018123034Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:99 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.050) 0:00:11.049 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:107 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.049) 0:00:11.098 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:115 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.047) 0:00:11.145 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:122 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.046) 0:00:11.192 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:133 Saturday 18 October 2025 08:30:38 -0400 (0:00:00.070) 0:00:11.262 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.063) 0:00:11.326 ****** ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_principal.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.052940", "end": "2025-10-18 08:30:39.363568", "rc": 0, "start": "2025-10-18 08:30:39.310628" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:155 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.353) 0:00:11.679 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Stat commands file] ****************************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.078) 0:00:11.758 ****** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [Assert that commands file got removed] *********************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:168 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.321) 0:00:12.079 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Stat first-boot unit file] *********************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:176 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.046) 0:00:12.125 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert presence of first-boot unit] ************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:181 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.040) 0:00:12.165 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that first-boot unit is enabled] ********************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:186 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.045) 0:00:12.211 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Stat commands file] ****************************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:193 Saturday 18 October 2025 08:30:39 -0400 (0:00:00.051) 0:00:12.263 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that commands file exists] **************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:198 Saturday 18 October 2025 08:30:40 -0400 (0:00:00.045) 0:00:12.308 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Test issuing certificate with invalid principal.] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:40 Saturday 18 October 2025 08:30:40 -0400 (0:00:00.052) 0:00:12.361 ****** ok: [managed-node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 18 October 2025 08:30:41 -0400 (0:00:01.518) 0:00:13.879 ****** included: /tmp/collections-h3d/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-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 18 October 2025 08:30:41 -0400 (0:00:00.034) 0:00:13.914 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 18 October 2025 08:30:41 -0400 (0:00:00.042) 0:00:13.956 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 18 October 2025 08:30:41 -0400 (0:00:00.045) 0:00:14.002 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Run systemctl] ******************* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Saturday 18 October 2025 08:30:41 -0400 (0:00:00.052) 0:00:14.054 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Require installed systemd] ******* task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:30 Saturday 18 October 2025 08:30:41 -0400 (0:00:00.060) 0:00:14.114 ****** skipping: [managed-node2] => { "changed": false, "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-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Saturday 18 October 2025 08:30:41 -0400 (0:00:00.059) 0:00:14.174 ****** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 Saturday 18 October 2025 08:30:41 -0400 (0:00:00.049) 0:00:14.223 ****** skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node2] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed-node2] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 18 October 2025 08:30:42 -0400 (0:00:00.107) 0:00:14.331 ****** ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "python2-pyasn1-0.1.9-7.el7.noarch providing python-pyasn1 is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python-cryptography is already installed", "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Saturday 18 October 2025 08:30:43 -0400 (0:00:01.077) 0:00:15.408 ****** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [ "certmonger-0.78.4-17.el7_9.x86_64 providing certmonger is already installed" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Saturday 18 October 2025 08:30:43 -0400 (0:00:00.561) 0:00:15.970 ****** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Saturday 18 October 2025 08:30:44 -0400 (0:00:00.329) 0:00:16.299 ****** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Saturday 18 October 2025 08:30:44 -0400 (0:00:00.331) 0:00:16.631 ****** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2025-10-18 08:29:18 EDT", "ActiveEnterTimestampMonotonic": "223614196", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target systemd-journald.socket basic.target dbus.service system.slice syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2025-10-18 08:29:18 EDT", "AssertTimestampMonotonic": "223584864", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2025-10-18 08:29:18 EDT", "ConditionTimestampMonotonic": "223584862", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9711", "ExecMainStartTimestamp": "Sat 2025-10-18 08:29:18 EDT", "ExecMainStartTimestampMonotonic": "223585444", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2025-10-18 08:29:18 EDT] ; stop_time=[n/a] ; pid=9711 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2025-10-18 08:29:18 EDT", "InactiveExitTimestampMonotonic": "223585475", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "29173", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "29173", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9711", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2025-10-18 08:29:18 EDT", "WatchdogTimestampMonotonic": "223614140", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Saturday 18 October 2025 08:30:44 -0400 (0:00:00.410) 0:00:17.042 ****** failed: [managed-node2] (item={u'ca': u'self-sign', u'name': u'mycertinvalid', u'dns': u'www.example.com', u'principal': u'HTTP/abc'}) => { "ansible_loop_var": "item", "changed": false, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycertinvalid", "principal": "HTTP/abc" } } MSG: Invalid principal 'HTTP/abc'. It should be formatted as 'primary/instance@REALM' TASK [Assert...] *************************************************************** task path: /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:61 Saturday 18 October 2025 08:30:45 -0400 (0:00:00.502) 0:00:17.544 ****** ok: [managed-node2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node2 : ok=44 changed=1 unreachable=0 failed=0 skipped=22 rescued=1 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.9.27", "end_time": "2025-10-18T12:30:45.270394Z", "host": "managed-node2", "loop_item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycertinvalid", "principal": "HTTP/abc" }, "loop_label": "", "loop_var": "item", "message": "Invalid principal 'HTTP/abc'. It should be formatted as 'primary/instance@REALM'", "start_time": "2025-10-18T12:30:44.779452Z", "task_name": "Ensure certificate requests", "task_path": "/tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 18 October 2025 08:30:45 -0400 (0:00:00.058) 0:00:17.603 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 1.54s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:13 Gathering Facts --------------------------------------------------------- 1.52s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:40 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.25s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.08s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.00s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Gathering Facts --------------------------------------------------------- 0.89s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_principal.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.74s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Ensure python2 is installed --------------------------------------------- 0.60s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.59s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.56s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Parse certificate ------------------------------------------------------- 0.53s /tmp/collections-h3d/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.52s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.52s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 0.50s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 fedora.linux_system_roles.certificate : Run systemctl ------------------- 0.44s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.41s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Retrieve auto-renew flag ------------------------------------------------ 0.35s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Retrieve certificate file stats ----------------------------------------- 0.34s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.33s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.33s /tmp/collections-h3d/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49