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-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 Wednesday 13 August 2025 10:54:17 -0400 (0:00:00.038) 0:00:00.038 ****** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Wednesday 13 August 2025 10:54:18 -0400 (0:00:00.924) 0:00:00.962 ****** included: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node3 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Wednesday 13 August 2025 10:54:18 -0400 (0:00:00.041) 0:00:01.003 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Wednesday 13 August 2025 10:54:18 -0400 (0:00:00.052) 0:00:01.056 ****** ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Wednesday 13 August 2025 10:54:18 -0400 (0:00:00.511) 0:00:01.568 ****** ok: [managed-node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Run systemctl] ******************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Wednesday 13 August 2025 10:54:18 -0400 (0:00:00.046) 0:00:01.615 ****** ok: [managed-node3] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.007426", "end": "2025-08-13 10:54:19.215903", "failed_when_result": false, "rc": 0, "start": "2025-08-13 10:54:19.208477" } STDOUT: running TASK [fedora.linux_system_roles.certificate : Require installed systemd] ******* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:30 Wednesday 13 August 2025 10:54:19 -0400 (0:00:00.416) 0:00:02.031 ****** skipping: [managed-node3] => { "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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Wednesday 13 August 2025 10:54:19 -0400 (0:00:00.072) 0:00:02.104 ****** ok: [managed-node3] => { "ansible_facts": { "__certificate_is_booted": true }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 Wednesday 13 August 2025 10:54:19 -0400 (0:00:00.101) 0:00:02.205 ****** skipping: [managed-node3] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node3] => (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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed-node3] => (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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Wednesday 13 August 2025 10:54:19 -0400 (0:00:00.076) 0:00:02.282 ****** ok: [managed-node3] => { "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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Wednesday 13 August 2025 10:54:21 -0400 (0:00:01.713) 0:00:03.996 ****** ok: [managed-node3] => (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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Wednesday 13 August 2025 10:54:21 -0400 (0:00:00.613) 0:00:04.609 ****** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Wednesday 13 August 2025 10:54:22 -0400 (0:00:00.482) 0:00:05.091 ****** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Wednesday 13 August 2025 10:54:22 -0400 (0:00:00.354) 0:00:05.446 ****** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2025-08-13 10:52:34 EDT", "ActiveEnterTimestampMonotonic": "210008384", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice systemd-journald.socket basic.target dbus.service network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-08-13 10:52:34 EDT", "AssertTimestampMonotonic": "209980198", "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": "Wed 2025-08-13 10:52:34 EDT", "ConditionTimestampMonotonic": "209980197", "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": "9964", "ExecMainStartTimestamp": "Wed 2025-08-13 10:52:34 EDT", "ExecMainStartTimestampMonotonic": "209980651", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Wed 2025-08-13 10:52:34 EDT] ; stop_time=[n/a] ; pid=9964 ; 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": "Wed 2025-08-13 10:52:34 EDT", "InactiveExitTimestampMonotonic": "209980978", "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": "9964", "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": "basic.target system.slice", "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": "Wed 2025-08-13 10:52:34 EDT", "WatchdogTimestampMonotonic": "210008350", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Wednesday 13 August 2025 10:54:23 -0400 (0:00:00.717) 0:00:06.163 ****** changed: [managed-node3] => (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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:138 Wednesday 13 August 2025 10:54:24 -0400 (0:00:00.754) 0:00:06.917 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:143 Wednesday 13 August 2025 10:54:24 -0400 (0:00:00.042) 0:00:06.960 ****** skipping: [managed-node3] => (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-node3] => (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-node3] => (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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:151 Wednesday 13 August 2025 10:54:24 -0400 (0:00:00.063) 0:00:07.023 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:155 Wednesday 13 August 2025 10:54:24 -0400 (0:00:00.043) 0:00:07.066 ****** skipping: [managed-node3] => (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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:169 Wednesday 13 August 2025 10:54:24 -0400 (0:00:00.050) 0:00:07.117 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Wednesday 13 August 2025 10:54:24 -0400 (0:00:00.058) 0:00:07.175 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 Wednesday 13 August 2025 10:54:24 -0400 (0:00:00.070) 0:00:07.246 ****** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 Wednesday 13 August 2025 10:54:25 -0400 (0:00:00.539) 0:00:07.786 ****** included: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:5 Wednesday 13 August 2025 10:54:25 -0400 (0:00:00.102) 0:00:07.889 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:12 Wednesday 13 August 2025 10:54:25 -0400 (0:00:00.067) 0:00:07.956 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:17 Wednesday 13 August 2025 10:54:25 -0400 (0:00:00.067) 0:00:08.024 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python2 is installed] ********************************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Wednesday 13 August 2025 10:54:25 -0400 (0:00:00.063) 0:00:08.088 ****** ok: [managed-node3] => { "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-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:31 Wednesday 13 August 2025 10:54:25 -0400 (0:00:00.572) 0:00:08.660 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 Wednesday 13 August 2025 10:54:25 -0400 (0:00:00.058) 0:00:08.718 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1755096864.0332973, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "82967b34955a1d351177b94233f0e7b5182e50b5", "ctime": 1755096864.0282972, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172757, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1755096864.0282972, "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": "501277578", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:46 Wednesday 13 August 2025 10:54:26 -0400 (0:00:00.364) 0:00:09.082 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:52 Wednesday 13 August 2025 10:54:26 -0400 (0:00:00.062) 0:00:09.145 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:62 Wednesday 13 August 2025 10:54:26 -0400 (0:00:00.061) 0:00:09.206 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Wednesday 13 August 2025 10:54:26 -0400 (0:00:00.050) 0:00:09.257 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1755096863.9872968, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8739b4d6b9caca68455dc8cfd4cb996482aaa588", "ctime": 1755096864.0282972, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172756, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1755096864.0282972, "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": "501277565", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:73 Wednesday 13 August 2025 10:54:26 -0400 (0:00:00.333) 0:00:09.591 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:79 Wednesday 13 August 2025 10:54:26 -0400 (0:00:00.074) 0:00:09.665 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 Wednesday 13 August 2025 10:54:26 -0400 (0:00:00.086) 0:00:09.751 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "14:3B:28:45:EC:B9:AE:A2:02:61:49:C0:99:8B:F5:CD:42:AB:E0:8A" }, "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": "9A:2B:EA:6E:5A:70:85:1A:F9:5F:95:04:9D:AF:A9:1A:3D:C2:95:B3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AC:72:12:13:7C:0E:BE:2E:86:B5:DA:52:4A:C8:05:03:BD:EB:3E:0E:87:13:94:07:AE:97:F8:82:B3:4A:89:83:50:CC:9C:AA:2F:54:FC:2F:07:D2:70:B1:E3:56:E5:E0:76:E3:C5:F2:DA:44:8B:61:D8:13:CF:B0:BD:44:30:D6:0E:06:B8:71:23:A9:C3:B6:D4:CA:8F:C9:E8:A5:D6:B2:98:EC:44:87:02:48:2A:72:21:32:AC:AC:A2:46:A4:1F:86:28:3D:77:04:07:89:DB:87:EE:8E:A4:4A:A6:35:29:60:9D:B4:80:72:79:2E:2E:67:1A:57:E5:A7:EC:EB:82:30:20:1D:58:BD:2F:3B:FF:91:7A:5A:E8:97:A5:B5:BD:9B:A9:20:52:10:30:A9:AA:DC:7E:E0:44:B3:07:FA:23:F3:5C:A2:CE:C7:0F:C7:CC:37:8E:F7:6E:11:47:1E:8B:1B:43:03:77:77:1B:C8:AA:6F:AB:9B:C8:AC:4D:C0:6A:FD:21:86:26:F7:B2:3B:AA:61:18:30:2E:B9:D0:EC:AC:E7:D2:E0:8F:EA:F1:C3:45:BE:B9:10:CE:3A:68:39:F4:66:B1:ED:FB:91:C1:C9:EF:EB:2F:E0:EE:6C:41:83:57:F1:05:EA:C7:F4:AB:D9:F6:07:A8:C8:4F:0A:41:94:88" }, "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": "20260813145234Z", "not_valid_before": "20250813145424Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:95 Wednesday 13 August 2025 10:54:27 -0400 (0:00:00.501) 0:00:10.252 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "14:3B:28:45:EC:B9:AE:A2:02:61:49:C0:99:8B:F5:CD:42:AB:E0:8A" }, "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": "9A:2B:EA:6E:5A:70:85:1A:F9:5F:95:04:9D:AF:A9:1A:3D:C2:95:B3" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AC:72:12:13:7C:0E:BE:2E:86:B5:DA:52:4A:C8:05:03:BD:EB:3E:0E:87:13:94:07:AE:97:F8:82:B3:4A:89:83:50:CC:9C:AA:2F:54:FC:2F:07:D2:70:B1:E3:56:E5:E0:76:E3:C5:F2:DA:44:8B:61:D8:13:CF:B0:BD:44:30:D6:0E:06:B8:71:23:A9:C3:B6:D4:CA:8F:C9:E8:A5:D6:B2:98:EC:44:87:02:48:2A:72:21:32:AC:AC:A2:46:A4:1F:86:28:3D:77:04:07:89:DB:87:EE:8E:A4:4A:A6:35:29:60:9D:B4:80:72:79:2E:2E:67:1A:57:E5:A7:EC:EB:82:30:20:1D:58:BD:2F:3B:FF:91:7A:5A:E8:97:A5:B5:BD:9B:A9:20:52:10:30:A9:AA:DC:7E:E0:44:B3:07:FA:23:F3:5C:A2:CE:C7:0F:C7:CC:37:8E:F7:6E:11:47:1E:8B:1B:43:03:77:77:1B:C8:AA:6F:AB:9B:C8:AC:4D:C0:6A:FD:21:86:26:F7:B2:3B:AA:61:18:30:2E:B9:D0:EC:AC:E7:D2:E0:8F:EA:F1:C3:45:BE:B9:10:CE:3A:68:39:F4:66:B1:ED:FB:91:C1:C9:EF:EB:2F:E0:EE:6C:41:83:57:F1:05:EA:C7:F4:AB:D9:F6:07:A8:C8:4F:0A:41:94:88" }, "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": "20260813145234Z", "not_valid_before": "20250813145424Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:99 Wednesday 13 August 2025 10:54:27 -0400 (0:00:00.052) 0:00:10.305 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:107 Wednesday 13 August 2025 10:54:27 -0400 (0:00:00.052) 0:00:10.357 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:115 Wednesday 13 August 2025 10:54:27 -0400 (0:00:00.061) 0:00:10.419 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:122 Wednesday 13 August 2025 10:54:27 -0400 (0:00:00.070) 0:00:10.489 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:133 Wednesday 13 August 2025 10:54:27 -0400 (0:00:00.061) 0:00:10.551 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Wednesday 13 August 2025 10:54:27 -0400 (0:00:00.069) 0:00:10.620 ****** ok: [managed-node3] => { "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.046449", "end": "2025-08-13 10:54:28.145699", "rc": 0, "start": "2025-08-13 10:54:28.099250" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:155 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.341) 0:00:10.961 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Stat commands file] ****************************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.052) 0:00:11.014 ****** ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [Assert that commands file got removed] *********************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:168 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.293) 0:00:11.308 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Stat first-boot unit file] *********************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:176 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.066) 0:00:11.375 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert presence of first-boot unit] ************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:181 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.061) 0:00:11.436 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that first-boot unit is enabled] ********************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:186 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.059) 0:00:11.495 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Stat commands file] ****************************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:193 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.045) 0:00:11.540 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that commands file exists] **************************************** task path: /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:198 Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.063) 0:00:11.604 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node3 : 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 ******************************************************************** Wednesday 13 August 2025 10:54:28 -0400 (0:00:00.057) 0:00:11.661 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.71s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.92s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 0.75s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.72s /tmp/collections-Rzo/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-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Ensure python2 is installed --------------------------------------------- 0.57s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Gathering Facts --------------------------------------------------------- 0.54s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.51s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.50s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.48s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 fedora.linux_system_roles.certificate : Run systemctl ------------------- 0.42s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Retrieve certificate file stats ----------------------------------------- 0.36s /tmp/collections-Rzo/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.35s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Retrieve auto-renew flag ------------------------------------------------ 0.34s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Retrieve key file stats ------------------------------------------------- 0.33s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Stat commands file ------------------------------------------------------ 0.29s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Verify each certificate ------------------------------------------------- 0.10s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 fedora.linux_system_roles.certificate : Set flag to indicate that systemd runtime operations are available --- 0.10s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Verify key file owner and group ----------------------------------------- 0.09s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:79 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.08s /tmp/collections-Rzo/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40