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_subject.yml **************************************************** 2 plays in /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 Monday 05 January 2026 15:00:34 -0500 (0:00:00.028) 0:00:00.028 ******** ok: [managed-node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 05 January 2026 15:00:35 -0500 (0:00:00.928) 0:00:00.957 ******** included: /tmp/collections-KKo/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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 05 January 2026 15:00:35 -0500 (0:00:00.039) 0:00:00.996 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 05 January 2026 15:00:35 -0500 (0:00:00.054) 0:00:01.051 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 05 January 2026 15:00:36 -0500 (0:00:00.554) 0:00:01.605 ******** ok: [managed-node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Run systemctl] ******************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Monday 05 January 2026 15:00:36 -0500 (0:00:00.066) 0:00:01.672 ******** ok: [managed-node2] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.007380", "end": "2026-01-05 15:00:36.955222", "failed_when_result": false, "rc": 0, "start": "2026-01-05 15:00:36.947842" } STDOUT: running TASK [fedora.linux_system_roles.certificate : Require installed systemd] ******* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:30 Monday 05 January 2026 15:00:37 -0500 (0:00:00.576) 0:00:02.249 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Monday 05 January 2026 15:00:37 -0500 (0:00:00.074) 0:00:02.323 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 Monday 05 January 2026 15:00:37 -0500 (0:00:00.072) 0:00:02.396 ******** 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-KKo/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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 05 January 2026 15:00:37 -0500 (0:00:00.095) 0:00:02.491 ******** 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" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Monday 05 January 2026 15:00:38 -0500 (0:00:01.210) 0:00:03.701 ******** 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" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Monday 05 January 2026 15:00:39 -0500 (0:00:00.613) 0:00:04.315 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Monday 05 January 2026 15:00:39 -0500 (0:00:00.513) 0:00:04.829 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Monday 05 January 2026 15:00:39 -0500 (0:00:00.311) 0:00:05.141 ******** ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2026-01-05 14:58:54 EST", "ActiveEnterTimestampMonotonic": "198809392", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target dbus.service system.slice syslog.target basic.target systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2026-01-05 14:58:54 EST", "AssertTimestampMonotonic": "198780864", "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": "Mon 2026-01-05 14:58:54 EST", "ConditionTimestampMonotonic": "198780862", "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": "9707", "ExecMainStartTimestamp": "Mon 2026-01-05 14:58:54 EST", "ExecMainStartTimestampMonotonic": "198782128", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Mon 2026-01-05 14:58:54 EST] ; stop_time=[n/a] ; pid=9707 ; 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": "Mon 2026-01-05 14:58:54 EST", "InactiveExitTimestampMonotonic": "198782159", "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": "9707", "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": "Mon 2026-01-05 14:58:54 EST", "WatchdogTimestampMonotonic": "198809358", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Monday 05 January 2026 15:00:40 -0500 (0:00:00.657) 0:00:05.798 ******** changed: [managed-node2] => (item={u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Check if test mode is supported] *** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:138 Monday 05 January 2026 15:00:41 -0500 (0:00:01.064) 0:00:06.862 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:143 Monday 05 January 2026 15:00:41 -0500 (0:00:00.039) 0:00:06.901 ******** skipping: [managed-node2] => (item=[u'cert', {u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=[u'key', {u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=[u'ca', {u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Reset certificate_test_certs] **** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:151 Monday 05 January 2026 15:00:41 -0500 (0:00:00.063) 0:00:06.965 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:155 Monday 05 January 2026 15:00:41 -0500 (0:00:00.053) 0:00:07.018 ******** skipping: [managed-node2] => (item=mycert_subject) => { "ansible_loop_var": "cert_name", "cert_name": "mycert_subject", "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:169 Monday 05 January 2026 15:00:41 -0500 (0:00:00.061) 0:00:07.079 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Monday 05 January 2026 15:00:41 -0500 (0:00:00.046) 0:00:07.126 ******** 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-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 Monday 05 January 2026 15:00:41 -0500 (0:00:00.068) 0:00:07.195 ******** ok: [managed-node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 Monday 05 January 2026 15:00:42 -0500 (0:00:00.561) 0:00:07.756 ******** included: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:5 Monday 05 January 2026 15:00:42 -0500 (0:00:00.111) 0:00:07.868 ******** ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:12 Monday 05 January 2026 15:00:42 -0500 (0:00:00.052) 0:00:07.920 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:17 Monday 05 January 2026 15:00:42 -0500 (0:00:00.065) 0:00:07.986 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python2 is installed] ********************************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Monday 05 January 2026 15:00:42 -0500 (0:00:00.064) 0:00:08.051 ******** 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" ] } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:31 Monday 05 January 2026 15:00:43 -0500 (0:00:00.570) 0:00:08.621 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 Monday 05 January 2026 15:00:43 -0500 (0:00:00.043) 0:00:08.665 ******** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1767643241.4872653, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4430f78c5a554e182f29fe1bfeb93b5ae542ee9b", "ctime": 1767643241.4842653, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172768, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1767643241.4842653, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1407, "uid": 0, "version": "1332496265", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:46 Monday 05 January 2026 15:00:43 -0500 (0:00:00.313) 0:00:08.979 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:52 Monday 05 January 2026 15:00:43 -0500 (0:00:00.057) 0:00:09.036 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:62 Monday 05 January 2026 15:00:43 -0500 (0:00:00.061) 0:00:09.098 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Monday 05 January 2026 15:00:43 -0500 (0:00:00.048) 0:00:09.146 ******** ok: [managed-node2] => { "changed": false, "stat": { "atime": 1767643241.4432654, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b52ff9d1a45a9d86d24003cd04e776d83a38ae65", "ctime": 1767643241.4842653, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172767, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1767643241.4842653, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1332496252", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:73 Monday 05 January 2026 15:00:44 -0500 (0:00:00.302) 0:00:09.449 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:79 Monday 05 January 2026 15:00:44 -0500 (0:00:00.046) 0:00:09.496 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 Monday 05 January 2026 15:00:44 -0500 (0:00:00.060) 0:00:09.556 ******** ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "53:88:86:B3:D7:6A:02:4B:66:6A:DE:C7:67:48:BE:7B:8E:B6:3C:09" }, "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" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "8D:33:DA:59:8E:9C:57:0D:CC:DF:4A:1D:04:84:43:21:B0:0C:D1:05" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:9C:21:39:EF:4B:6A:65:C3:E3:D0:67:7A:CB:69:00:7E:51:48:C5:86:60:BC:19:29:D6:71:71:6D:E3:F7:DD:43:9A:93:35:13:E9:CA:C9:B7:5A:0D:47:BC:A8:53:BD:F9:F4:FA:B8:CD:74:F9:B9:8C:29:B9:3A:A7:C5:DA:7A:97:E7:A3:49:48:00:F1:E8:45:0E:5A:8A:5B:CA:97:44:D5:A9:D0:16:29:8E:3F:72:DD:E6:CB:06:0C:2C:9F:85:C9:5A:6F:7C:82:16:73:F1:27:79:C8:67:80:A3:13:32:07:09:FA:B8:7B:92:97:02:54:D0:F8:D7:0E:C2:92:25:45:6B:A0:39:96:4E:13:9A:52:96:88:7E:EA:E9:72:99:F6:FB:FB:FE:0C:18:4E:B7:6C:BE:40:AA:55:42:C3:6C:8A:10:41:15:0B:2B:C6:C4:A6:E3:1F:A6:06:F0:E9:00:17:24:04:E3:AF:D6:DA:E3:00:0D:BB:70:C2:65:35:20:3E:D1:28:D9:9C:E6:44:99:16:B9:F7:CF:21:FB:69:37:CA:76:23:59:EC:37:D8:75:C0:4C:D0:8C:94:84:54:C1:39:25:CD:07:8C:8B:4D:A7:04:98:F4:AE:BD:8B:F3:2E:7C:FD:D2:16:3B:3F:4F:D9:89:F1:7B:87:B3:A2:E8:9B" }, "subject": [ { "name": "localityName", "oid": "2.5.4.7", "value": "Raleigh" }, { "name": "countryName", "oid": "2.5.4.6", "value": "US" }, { "name": "stateOrProvinceName", "oid": "2.5.4.8", "value": "NC" }, { "name": "commonName", "oid": "2.5.4.3", "value": "Some other common name" }, { "name": "organizationName", "oid": "2.5.4.10", "value": "Red Hat" }, { "name": "organizationalUnitName", "oid": "2.5.4.11", "value": "Linux" } ], "validity": { "not_valid_after": "20270105195854Z", "not_valid_before": "20260105200041Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:95 Monday 05 January 2026 15:00:44 -0500 (0:00:00.560) 0:00:10.117 ******** ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "53:88:86:B3:D7:6A:02:4B:66:6A:DE:C7:67:48:BE:7B:8E:B6:3C:09" }, "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" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "8D:33:DA:59:8E:9C:57:0D:CC:DF:4A:1D:04:84:43:21:B0:0C:D1:05" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:9C:21:39:EF:4B:6A:65:C3:E3:D0:67:7A:CB:69:00:7E:51:48:C5:86:60:BC:19:29:D6:71:71:6D:E3:F7:DD:43:9A:93:35:13:E9:CA:C9:B7:5A:0D:47:BC:A8:53:BD:F9:F4:FA:B8:CD:74:F9:B9:8C:29:B9:3A:A7:C5:DA:7A:97:E7:A3:49:48:00:F1:E8:45:0E:5A:8A:5B:CA:97:44:D5:A9:D0:16:29:8E:3F:72:DD:E6:CB:06:0C:2C:9F:85:C9:5A:6F:7C:82:16:73:F1:27:79:C8:67:80:A3:13:32:07:09:FA:B8:7B:92:97:02:54:D0:F8:D7:0E:C2:92:25:45:6B:A0:39:96:4E:13:9A:52:96:88:7E:EA:E9:72:99:F6:FB:FB:FE:0C:18:4E:B7:6C:BE:40:AA:55:42:C3:6C:8A:10:41:15:0B:2B:C6:C4:A6:E3:1F:A6:06:F0:E9:00:17:24:04:E3:AF:D6:DA:E3:00:0D:BB:70:C2:65:35:20:3E:D1:28:D9:9C:E6:44:99:16:B9:F7:CF:21:FB:69:37:CA:76:23:59:EC:37:D8:75:C0:4C:D0:8C:94:84:54:C1:39:25:CD:07:8C:8B:4D:A7:04:98:F4:AE:BD:8B:F3:2E:7C:FD:D2:16:3B:3F:4F:D9:89:F1:7B:87:B3:A2:E8:9B" }, "subject": [ { "name": "localityName", "oid": "2.5.4.7", "value": "Raleigh" }, { "name": "countryName", "oid": "2.5.4.6", "value": "US" }, { "name": "stateOrProvinceName", "oid": "2.5.4.8", "value": "NC" }, { "name": "commonName", "oid": "2.5.4.3", "value": "Some other common name" }, { "name": "organizationName", "oid": "2.5.4.10", "value": "Red Hat" }, { "name": "organizationalUnitName", "oid": "2.5.4.11", "value": "Linux" } ], "validity": { "not_valid_after": "20270105195854Z", "not_valid_before": "20260105200041Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:99 Monday 05 January 2026 15:00:44 -0500 (0:00:00.053) 0:00:10.170 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:107 Monday 05 January 2026 15:00:45 -0500 (0:00:00.063) 0:00:10.234 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:115 Monday 05 January 2026 15:00:45 -0500 (0:00:00.054) 0:00:10.288 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:122 Monday 05 January 2026 15:00:45 -0500 (0:00:00.060) 0:00:10.348 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:133 Monday 05 January 2026 15:00:45 -0500 (0:00:00.053) 0:00:10.402 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Monday 05 January 2026 15:00:45 -0500 (0:00:00.059) 0:00:10.461 ******** ok: [managed-node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.052684", "end": "2026-01-05 15:00:45.557301", "rc": 0, "start": "2026-01-05 15:00:45.504617" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:155 Monday 05 January 2026 15:00:45 -0500 (0:00:00.368) 0:00:10.830 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Stat commands file] ****************************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Monday 05 January 2026 15:00:45 -0500 (0:00:00.060) 0:00:10.890 ******** ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [Assert that commands file got removed] *********************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:168 Monday 05 January 2026 15:00:45 -0500 (0:00:00.298) 0:00:11.189 ******** ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Stat first-boot unit file] *********************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:176 Monday 05 January 2026 15:00:46 -0500 (0:00:00.051) 0:00:11.240 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert presence of first-boot unit] ************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:181 Monday 05 January 2026 15:00:46 -0500 (0:00:00.041) 0:00:11.282 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that first-boot unit is enabled] ********************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:186 Monday 05 January 2026 15:00:46 -0500 (0:00:00.046) 0:00:11.328 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Stat commands file] ****************************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:193 Monday 05 January 2026 15:00:46 -0500 (0:00:00.050) 0:00:11.379 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that commands file exists] **************************************** task path: /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:198 Monday 05 January 2026 15:00:46 -0500 (0:00:00.050) 0:00:11.430 ******** skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node2 : ok=35 changed=1 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Monday 05 January 2026 15:00:46 -0500 (0:00:00.044) 0:00:11.474 ******** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.21s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.06s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Gathering Facts --------------------------------------------------------- 0.93s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.66s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.61s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 fedora.linux_system_roles.certificate : Run systemctl ------------------- 0.58s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Ensure python2 is installed --------------------------------------------- 0.57s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Gathering Facts --------------------------------------------------------- 0.56s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 Parse certificate ------------------------------------------------------- 0.56s /tmp/collections-KKo/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.55s /tmp/collections-KKo/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.51s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Retrieve auto-renew flag ------------------------------------------------ 0.37s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Retrieve certificate file stats ----------------------------------------- 0.31s /tmp/collections-KKo/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.31s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Retrieve key file stats ------------------------------------------------- 0.30s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Stat commands file ------------------------------------------------------ 0.30s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Verify each certificate ------------------------------------------------- 0.11s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.10s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 fedora.linux_system_roles.certificate : Require installed systemd ------- 0.07s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:30 fedora.linux_system_roles.certificate : Set flag to indicate that systemd runtime operations are available --- 0.07s /tmp/collections-KKo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35