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-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 Saturday 28 June 2025 08:31:56 -0400 (0:00:00.027) 0:00:00.027 ********* ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 28 June 2025 08:31:57 -0400 (0:00:00.816) 0:00:00.843 ********* included: /tmp/collections-kLt/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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 28 June 2025 08:31:57 -0400 (0:00:00.032) 0:00:00.876 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 28 June 2025 08:31:57 -0400 (0:00:00.042) 0:00:00.918 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 28 June 2025 08:31:58 -0400 (0:00:00.507) 0:00:01.426 ********* ok: [managed-node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Run systemctl] ******************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 Saturday 28 June 2025 08:31:58 -0400 (0:00:00.074) 0:00:01.500 ********* ok: [managed-node3] => { "changed": false, "cmd": [ "systemctl", "is-system-running" ], "delta": "0:00:00.004960", "end": "2025-06-28 08:31:58.615051", "failed_when_result": false, "rc": 0, "start": "2025-06-28 08:31:58.610091" } STDOUT: running TASK [fedora.linux_system_roles.certificate : Require installed systemd] ******* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:30 Saturday 28 June 2025 08:31:58 -0400 (0:00:00.527) 0:00:02.027 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Saturday 28 June 2025 08:31:58 -0400 (0:00:00.057) 0:00:02.085 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 Saturday 28 June 2025 08:31:58 -0400 (0:00:00.112) 0:00:02.197 ********* 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-kLt/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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 28 June 2025 08:31:59 -0400 (0:00:00.160) 0:00:02.358 ********* 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" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Saturday 28 June 2025 08:32:00 -0400 (0:00:01.682) 0:00:04.040 ********* 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" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Saturday 28 June 2025 08:32:01 -0400 (0:00:00.613) 0:00:04.654 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Saturday 28 June 2025 08:32:01 -0400 (0:00:00.498) 0:00:05.153 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:76 Saturday 28 June 2025 08:32:02 -0400 (0:00:00.334) 0:00:05.487 ********* ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2025-06-28 08:30:13 EDT", "ActiveEnterTimestampMonotonic": "232588319", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service network.target syslog.target system.slice systemd-journald.socket basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2025-06-28 08:30:13 EDT", "AssertTimestampMonotonic": "232561261", "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-06-28 08:30:13 EDT", "ConditionTimestampMonotonic": "232561260", "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": "9932", "ExecMainStartTimestamp": "Sat 2025-06-28 08:30:13 EDT", "ExecMainStartTimestampMonotonic": "232561733", "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-06-28 08:30:13 EDT] ; stop_time=[n/a] ; pid=9932 ; 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-06-28 08:30:13 EDT", "InactiveExitTimestampMonotonic": "232561757", "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": "9932", "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": "Sat 2025-06-28 08:30:13 EDT", "WatchdogTimestampMonotonic": "232588286", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Saturday 28 June 2025 08:32:02 -0400 (0:00:00.666) 0:00:06.154 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:138 Saturday 28 June 2025 08:32:03 -0400 (0:00:01.059) 0:00:07.213 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:143 Saturday 28 June 2025 08:32:03 -0400 (0:00:00.043) 0:00:07.257 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:151 Saturday 28 June 2025 08:32:03 -0400 (0:00:00.071) 0:00:07.328 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:155 Saturday 28 June 2025 08:32:04 -0400 (0:00:00.063) 0:00:07.392 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:169 Saturday 28 June 2025 08:32:04 -0400 (0:00:00.063) 0:00:07.455 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174 Saturday 28 June 2025 08:32:04 -0400 (0:00:00.058) 0:00:07.514 ********* 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-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 Saturday 28 June 2025 08:32:04 -0400 (0:00:00.092) 0:00:07.607 ********* ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 Saturday 28 June 2025 08:32:04 -0400 (0:00:00.594) 0:00:08.202 ********* included: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:5 Saturday 28 June 2025 08:32:04 -0400 (0:00:00.104) 0:00:08.306 ********* ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:12 Saturday 28 June 2025 08:32:05 -0400 (0:00:00.077) 0:00:08.383 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:17 Saturday 28 June 2025 08:32:05 -0400 (0:00:00.064) 0:00:08.448 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python2 is installed] ********************************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Saturday 28 June 2025 08:32:05 -0400 (0:00:00.060) 0:00:08.509 ********* 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" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:31 Saturday 28 June 2025 08:32:05 -0400 (0:00:00.568) 0:00:09.077 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 Saturday 28 June 2025 08:32:05 -0400 (0:00:00.050) 0:00:09.128 ********* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1751113923.7210698, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9e49f1412289e382991247522ffde6d7a628e6df", "ctime": 1751113923.7170699, "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": 1751113923.7170699, "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": "18446744072806307083", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:46 Saturday 28 June 2025 08:32:06 -0400 (0:00:00.319) 0:00:09.447 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:52 Saturday 28 June 2025 08:32:06 -0400 (0:00:00.049) 0:00:09.497 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:62 Saturday 28 June 2025 08:32:06 -0400 (0:00:00.053) 0:00:09.551 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 Saturday 28 June 2025 08:32:06 -0400 (0:00:00.050) 0:00:09.602 ********* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1751113923.6770697, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f1d9c60e5f50ce1ffa1495fd71b1321b919672ea", "ctime": 1751113923.7170699, "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": 1751113923.7170699, "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": "18446744072806307070", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:73 Saturday 28 June 2025 08:32:06 -0400 (0:00:00.353) 0:00:09.956 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:79 Saturday 28 June 2025 08:32:06 -0400 (0:00:00.074) 0:00:10.030 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 Saturday 28 June 2025 08:32:06 -0400 (0:00:00.076) 0:00:10.106 ********* ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "44:23:3B:0F:34:8C:24:06:08:EF:6D:A2:72:A4:48:55:D1:69:87:7A" }, "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": "E5:7F:79:48:0E:F7:EB:AE:11:3E:DF:49:5E:5B:C3:1D:DB:9F:D5:91" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A4:95:87:A5:D3:5D:61:F3:04:7B:F5:30:9D:47:21:FE:C8:8C:AE:00:95:7A:6C:44:E7:31:3A:60:1A:0C:D6:87:2F:45:D0:D6:D1:B3:6E:6B:EB:58:7F:DD:5A:22:73:77:A2:3C:91:92:7F:C9:8C:54:0B:2E:17:5C:C5:88:F1:9F:9A:39:4C:73:2D:8C:C8:75:D5:95:EF:5C:EE:70:D9:F7:2B:A0:AE:3A:D0:3D:93:EC:C1:90:83:EA:96:45:CA:66:0D:44:0F:C5:67:1F:9B:2C:1C:F8:CB:97:A6:70:EA:61:06:80:00:51:5D:23:AE:B3:C0:89:22:18:B5:F7:8B:43:F2:F9:67:3D:70:A0:23:EE:E5:01:DE:06:D9:E1:64:83:CE:22:D8:E3:D4:2E:E5:44:29:6A:54:12:51:75:DE:CA:66:3A:14:25:6F:EB:4C:D0:4B:97:B0:8B:8D:EB:94:2B:61:4C:5C:B0:5E:C3:7A:1E:4A:6C:1A:AD:4E:17:1D:54:6C:BF:90:23:61:45:5E:A7:F5:04:3F:71:BE:D7:06:24:AF:81:14:F2:FA:4D:84:72:01:52:FB:27:44:A5:51:53:AC:89:BA:D0:7A:B2:52:BE:79:8F:CC:18:57:21:DC:40:BA:0D:62:CC:5F:15:CA:D5:0C:E1:56:2F:99:7E:F0:5B" }, "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": "20260628123013Z", "not_valid_before": "20250628123203Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:95 Saturday 28 June 2025 08:32:07 -0400 (0:00:00.536) 0:00:10.642 ********* ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "44:23:3B:0F:34:8C:24:06:08:EF:6D:A2:72:A4:48:55:D1:69:87:7A" }, "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": "E5:7F:79:48:0E:F7:EB:AE:11:3E:DF:49:5E:5B:C3:1D:DB:9F:D5:91" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A4:95:87:A5:D3:5D:61:F3:04:7B:F5:30:9D:47:21:FE:C8:8C:AE:00:95:7A:6C:44:E7:31:3A:60:1A:0C:D6:87:2F:45:D0:D6:D1:B3:6E:6B:EB:58:7F:DD:5A:22:73:77:A2:3C:91:92:7F:C9:8C:54:0B:2E:17:5C:C5:88:F1:9F:9A:39:4C:73:2D:8C:C8:75:D5:95:EF:5C:EE:70:D9:F7:2B:A0:AE:3A:D0:3D:93:EC:C1:90:83:EA:96:45:CA:66:0D:44:0F:C5:67:1F:9B:2C:1C:F8:CB:97:A6:70:EA:61:06:80:00:51:5D:23:AE:B3:C0:89:22:18:B5:F7:8B:43:F2:F9:67:3D:70:A0:23:EE:E5:01:DE:06:D9:E1:64:83:CE:22:D8:E3:D4:2E:E5:44:29:6A:54:12:51:75:DE:CA:66:3A:14:25:6F:EB:4C:D0:4B:97:B0:8B:8D:EB:94:2B:61:4C:5C:B0:5E:C3:7A:1E:4A:6C:1A:AD:4E:17:1D:54:6C:BF:90:23:61:45:5E:A7:F5:04:3F:71:BE:D7:06:24:AF:81:14:F2:FA:4D:84:72:01:52:FB:27:44:A5:51:53:AC:89:BA:D0:7A:B2:52:BE:79:8F:CC:18:57:21:DC:40:BA:0D:62:CC:5F:15:CA:D5:0C:E1:56:2F:99:7E:F0:5B" }, "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": "20260628123013Z", "not_valid_before": "20250628123203Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:99 Saturday 28 June 2025 08:32:07 -0400 (0:00:00.071) 0:00:10.714 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:107 Saturday 28 June 2025 08:32:07 -0400 (0:00:00.064) 0:00:10.778 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:115 Saturday 28 June 2025 08:32:07 -0400 (0:00:00.050) 0:00:10.829 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:122 Saturday 28 June 2025 08:32:07 -0400 (0:00:00.057) 0:00:10.886 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:133 Saturday 28 June 2025 08:32:07 -0400 (0:00:00.073) 0:00:10.960 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Saturday 28 June 2025 08:32:07 -0400 (0:00:00.066) 0:00:11.026 ********* 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.046438", "end": "2025-06-28 08:32:07.980923", "rc": 0, "start": "2025-06-28 08:32:07.934485" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:155 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.357) 0:00:11.384 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Stat commands file] ****************************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.052) 0:00:11.436 ********* ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [Assert that commands file got removed] *********************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:168 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.320) 0:00:11.757 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Stat first-boot unit file] *********************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:176 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.071) 0:00:11.828 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert presence of first-boot unit] ************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:181 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.060) 0:00:11.889 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that first-boot unit is enabled] ********************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:186 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.066) 0:00:11.955 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Stat commands file] ****************************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:193 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.062) 0:00:12.018 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Assert that commands file exists] **************************************** task path: /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:198 Saturday 28 June 2025 08:32:08 -0400 (0:00:00.059) 0:00:12.077 ********* 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 ******************************************************************** Saturday 28 June 2025 08:32:08 -0400 (0:00:00.042) 0:00:12.120 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.68s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.06s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:86 Gathering Facts --------------------------------------------------------- 0.82s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.67s /tmp/collections-kLt/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-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:15 Gathering Facts --------------------------------------------------------- 0.59s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 Ensure python2 is installed --------------------------------------------- 0.57s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:21 Parse certificate ------------------------------------------------------- 0.54s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:89 fedora.linux_system_roles.certificate : Run systemctl ------------------- 0.53s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:22 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.51s /tmp/collections-kLt/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.50s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:25 Retrieve auto-renew flag ------------------------------------------------ 0.36s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:146 Retrieve key file stats ------------------------------------------------- 0.35s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:68 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.33s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:49 Stat commands file ------------------------------------------------------ 0.32s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:163 Retrieve certificate file stats ----------------------------------------- 0.32s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:41 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.16s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:40 fedora.linux_system_roles.certificate : Set flag to indicate that systemd runtime operations are available --- 0.11s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:35 Verify each certificate ------------------------------------------------- 0.10s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 fedora.linux_system_roles.certificate : Remove files -------------------- 0.09s /tmp/collections-kLt/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:174