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 '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_run_hooks.yml ************************************************** 2 plays in /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Tuesday 11 February 2025 17:08:22 -0500 (0:00:00.043) 0:00:00.043 ****** ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Tuesday 11 February 2025 17:08:23 -0500 (0:00:00.925) 0:00:00.969 ****** included: /tmp/collections-xC9/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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Tuesday 11 February 2025 17:08:23 -0500 (0:00:00.038) 0:00:01.008 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Tuesday 11 February 2025 17:08:23 -0500 (0:00:00.055) 0:00:01.063 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Tuesday 11 February 2025 17:08:23 -0500 (0:00:00.561) 0:00:01.625 ****** ok: [managed-node3] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Tuesday 11 February 2025 17:08:23 -0500 (0:00:00.078) 0:00:01.704 ****** 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-xC9/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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Tuesday 11 February 2025 17:08:24 -0500 (0:00:00.114) 0:00:01.819 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Tuesday 11 February 2025 17:08:25 -0500 (0:00:01.756) 0:00:03.576 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Tuesday 11 February 2025 17:08:26 -0500 (0:00:00.632) 0:00:04.208 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Tuesday 11 February 2025 17:08:27 -0500 (0:00:00.569) 0:00:04.778 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Tuesday 11 February 2025 17:08:27 -0500 (0:00:00.409) 0:00:05.188 ****** ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2025-02-11 17:07:31 EST", "ActiveEnterTimestampMonotonic": "260739636", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target system.slice dbus.service syslog.target basic.target systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2025-02-11 17:07:31 EST", "AssertTimestampMonotonic": "260712670", "Before": "multi-user.target shutdown.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": "Tue 2025-02-11 17:07:31 EST", "ConditionTimestampMonotonic": "260712668", "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": "9736", "ExecMainStartTimestamp": "Tue 2025-02-11 17:07:31 EST", "ExecMainStartTimestampMonotonic": "260713257", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Tue 2025-02-11 17:07:31 EST] ; stop_time=[n/a] ; pid=9736 ; 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": "Tue 2025-02-11 17:07:31 EST", "InactiveExitTimestampMonotonic": "260713291", "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": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9736", "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": "Tue 2025-02-11 17:07:31 EST", "WatchdogTimestampMonotonic": "260739600", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Tuesday 11 February 2025 17:08:28 -0500 (0:00:00.723) 0:00:05.912 ****** changed: [managed-node3] => (item={u'run_before': u'touch /etc/pki/before_cert.tmp\n', u'ca': u'self-sign', u'name': u'mycert_run_hooks', u'dns': u'www.example.com', u'run_after': u'touch /etc/pki/after_cert.tmp\n'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_run_hooks", "run_after": "touch /etc/pki/after_cert.tmp\n", "run_before": "touch /etc/pki/before_cert.tmp\n" } } MSG: Certificate requested (new). Pre/Post run hooks updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Tuesday 11 February 2025 17:08:29 -0500 (0:00:00.979) 0:00:06.891 ****** skipping: [managed-node3] => (item=[u'cert', {u'run_before': u'touch /etc/pki/before_cert.tmp\n', u'ca': u'self-sign', u'name': u'mycert_run_hooks', u'dns': u'www.example.com', u'run_after': u'touch /etc/pki/after_cert.tmp\n'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_run_hooks", "run_after": "touch /etc/pki/after_cert.tmp\n", "run_before": "touch /etc/pki/before_cert.tmp\n" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=[u'key', {u'run_before': u'touch /etc/pki/before_cert.tmp\n', u'ca': u'self-sign', u'name': u'mycert_run_hooks', u'dns': u'www.example.com', u'run_after': u'touch /etc/pki/after_cert.tmp\n'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_run_hooks", "run_after": "touch /etc/pki/after_cert.tmp\n", "run_before": "touch /etc/pki/before_cert.tmp\n" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=[u'ca', {u'run_before': u'touch /etc/pki/before_cert.tmp\n', u'ca': u'self-sign', u'name': u'mycert_run_hooks', u'dns': u'www.example.com', u'run_after': u'touch /etc/pki/after_cert.tmp\n'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_run_hooks", "run_after": "touch /etc/pki/after_cert.tmp\n", "run_before": "touch /etc/pki/before_cert.tmp\n" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Tuesday 11 February 2025 17:08:29 -0500 (0:00:00.094) 0:00:06.986 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Tuesday 11 February 2025 17:08:29 -0500 (0:00:00.069) 0:00:07.056 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Tuesday 11 February 2025 17:08:29 -0500 (0:00:00.063) 0:00:07.120 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Tuesday 11 February 2025 17:08:29 -0500 (0:00:00.076) 0:00:07.196 ****** ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:31 Tuesday 11 February 2025 17:08:30 -0500 (0:00:00.571) 0:00:07.768 ****** included: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Tuesday 11 February 2025 17:08:30 -0500 (0:00:00.158) 0:00:07.926 ****** ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Tuesday 11 February 2025 17:08:30 -0500 (0:00:00.064) 0:00:07.991 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Tuesday 11 February 2025 17:08:30 -0500 (0:00:00.131) 0:00:08.122 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Tuesday 11 February 2025 17:08:30 -0500 (0:00:00.093) 0:00:08.216 ****** 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-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Tuesday 11 February 2025 17:08:31 -0500 (0:00:00.663) 0:00:08.880 ****** skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Tuesday 11 February 2025 17:08:31 -0500 (0:00:00.054) 0:00:08.935 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739311708.9120653, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "aa56c5b306ba6c722a3049ac872605e8245c4f12", "ctime": 1739311708.9080653, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172752, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1739311708.9080653, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_run_hooks.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "677769473", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Tuesday 11 February 2025 17:08:31 -0500 (0:00:00.317) 0:00:09.252 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Tuesday 11 February 2025 17:08:31 -0500 (0:00:00.054) 0:00:09.306 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Tuesday 11 February 2025 17:08:31 -0500 (0:00:00.070) 0:00:09.377 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Tuesday 11 February 2025 17:08:31 -0500 (0:00:00.065) 0:00:09.442 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739311708.8660653, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4fc1ce241e1641f0a55fba0950da4795dfa2e4fa", "ctime": 1739311708.9080653, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172750, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1739311708.9080653, "nlink": 1, "path": "/etc/pki/tls/private/mycert_run_hooks.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "677769458", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Tuesday 11 February 2025 17:08:32 -0500 (0:00:00.470) 0:00:09.913 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Tuesday 11 February 2025 17:08:32 -0500 (0:00:00.073) 0:00:09.987 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Tuesday 11 February 2025 17:08:32 -0500 (0:00:00.095) 0:00:10.083 ****** ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B8:5A:28:0A:EA:15:A2:9D:9E:1C:A3:A7:23:22:C8:5E:22:BB:54:17" }, "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": "1B:FF:B8:8B:F8:AB:F2:38:5E:75:FF:C2:16:F2:ED:B0:BD:31:D4:AF" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0F:12:11:CF:55:17:82:62:5B:CE:E2:95:C6:23:18:90:3E:BF:BF:47:59:CB:E1:7E:5B:70:58:93:E9:F0:33:CD:2B:A4:CE:72:55:89:41:F9:45:7A:E7:25:6E:24:35:C7:C2:81:44:E5:10:CF:B3:AE:1A:1F:22:C0:00:54:23:9F:9F:7C:8A:65:A7:E5:93:0B:E6:FE:E9:6F:B0:E3:B8:AF:3F:3C:91:8E:ED:6C:54:B7:68:55:36:13:00:73:1D:08:12:DA:A3:B9:F7:9A:3E:5B:4C:0C:B2:10:80:F0:7E:28:79:BD:DD:F3:78:B6:32:35:D6:A0:48:AD:EC:E9:07:8A:BB:01:A4:0D:14:E9:DF:D8:1C:42:62:ED:5A:EB:B1:50:51:39:78:93:EF:5D:2D:E6:7A:70:D0:0C:81:5C:35:B5:48:63:1A:29:C1:83:91:66:F9:D2:DB:C3:B4:A2:5A:7F:35:13:9A:CC:79:37:34:C3:15:F9:6C:2D:AF:30:D7:CD:66:FC:07:11:B3:02:A9:94:08:7F:A6:0F:CB:D5:C3:D3:46:93:A2:5C:30:E8:CB:89:8E:90:CE:BB:B8:26:06:3C:E6:A6:CB:B9:41:EE:96:29:54:80:EF:75:9A:D0:3E:8F:1D:AE:34:B5:84:00:26:EB:4F:A6:60:D0:DA:52:5B:47" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260211220731Z", "not_valid_before": "20250211220828Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Tuesday 11 February 2025 17:08:33 -0500 (0:00:00.933) 0:00:11.016 ****** ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "B8:5A:28:0A:EA:15:A2:9D:9E:1C:A3:A7:23:22:C8:5E:22:BB:54:17" }, "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": "1B:FF:B8:8B:F8:AB:F2:38:5E:75:FF:C2:16:F2:ED:B0:BD:31:D4:AF" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0F:12:11:CF:55:17:82:62:5B:CE:E2:95:C6:23:18:90:3E:BF:BF:47:59:CB:E1:7E:5B:70:58:93:E9:F0:33:CD:2B:A4:CE:72:55:89:41:F9:45:7A:E7:25:6E:24:35:C7:C2:81:44:E5:10:CF:B3:AE:1A:1F:22:C0:00:54:23:9F:9F:7C:8A:65:A7:E5:93:0B:E6:FE:E9:6F:B0:E3:B8:AF:3F:3C:91:8E:ED:6C:54:B7:68:55:36:13:00:73:1D:08:12:DA:A3:B9:F7:9A:3E:5B:4C:0C:B2:10:80:F0:7E:28:79:BD:DD:F3:78:B6:32:35:D6:A0:48:AD:EC:E9:07:8A:BB:01:A4:0D:14:E9:DF:D8:1C:42:62:ED:5A:EB:B1:50:51:39:78:93:EF:5D:2D:E6:7A:70:D0:0C:81:5C:35:B5:48:63:1A:29:C1:83:91:66:F9:D2:DB:C3:B4:A2:5A:7F:35:13:9A:CC:79:37:34:C3:15:F9:6C:2D:AF:30:D7:CD:66:FC:07:11:B3:02:A9:94:08:7F:A6:0F:CB:D5:C3:D3:46:93:A2:5C:30:E8:CB:89:8E:90:CE:BB:B8:26:06:3C:E6:A6:CB:B9:41:EE:96:29:54:80:EF:75:9A:D0:3E:8F:1D:AE:34:B5:84:00:26:EB:4F:A6:60:D0:DA:52:5B:47" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260211220731Z", "not_valid_before": "20250211220828Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Tuesday 11 February 2025 17:08:33 -0500 (0:00:00.059) 0:00:11.076 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Tuesday 11 February 2025 17:08:33 -0500 (0:00:00.063) 0:00:11.140 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Tuesday 11 February 2025 17:08:33 -0500 (0:00:00.054) 0:00:11.194 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Tuesday 11 February 2025 17:08:33 -0500 (0:00:00.050) 0:00:11.245 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Tuesday 11 February 2025 17:08:33 -0500 (0:00:00.057) 0:00:11.302 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Tuesday 11 February 2025 17:08:33 -0500 (0:00:00.053) 0:00:11.357 ****** ok: [managed-node3] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_run_hooks.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046225", "end": "2025-02-11 17:08:34.093005", "rc": 0, "start": "2025-02-11 17:08:34.046780" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Tuesday 11 February 2025 17:08:34 -0500 (0:00:00.566) 0:00:11.924 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Tuesday 11 February 2025 17:08:34 -0500 (0:00:00.072) 0:00:11.996 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739311708.9120653, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "aa56c5b306ba6c722a3049ac872605e8245c4f12", "ctime": 1739311708.9080653, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172752, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1739311708.9080653, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_run_hooks.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "677769473", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Tuesday 11 February 2025 17:08:34 -0500 (0:00:00.450) 0:00:12.446 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739311708.9060652, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1739311708.9060652, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172751, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0600", "mtime": 1739311708.9060652, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "677769470", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Tuesday 11 February 2025 17:08:35 -0500 (0:00:00.366) 0:00:12.812 ****** ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739311708.9370654, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1739311708.9370654, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172753, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0600", "mtime": 1739311708.9370654, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "677769481", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:51 Tuesday 11 February 2025 17:08:35 -0500 (0:00:00.432) 0:00:13.245 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:58 Tuesday 11 February 2025 17:08:35 -0500 (0:00:00.072) 0:00:13.318 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get pre/post-scripts files] ********************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Tuesday 11 February 2025 17:08:35 -0500 (0:00:00.070) 0:00:13.388 ****** ok: [managed-node3] => { "changed": false, "examined": 2, "files": [ { "atime": 1739311708.9040654, "ctime": 1739311708.7340648, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 263197, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0770", "mtime": 1739311708.7340648, "nlink": 1, "path": "/etc/certmonger/pre-scripts/mycert_run_hooks-369fd46.sh", "pw_name": "root", "rgrp": true, "roth": false, "rusr": true, "size": 92, "uid": 0, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": false, "xusr": true }, { "atime": 1739311708.9360654, "ctime": 1739311708.7340648, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 263198, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0770", "mtime": 1739311708.7340648, "nlink": 1, "path": "/etc/certmonger/post-scripts/mycert_run_hooks-369fd46.sh", "pw_name": "root", "rgrp": true, "roth": false, "rusr": true, "size": 91, "uid": 0, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": false, "xusr": true } ], "matched": 2 } TASK [Check generated files for ansible_managed, fingerprint] ****************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:74 Tuesday 11 February 2025 17:08:36 -0500 (0:00:00.566) 0:00:13.955 ****** included: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 included: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 TASK [Get file] **************************************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Tuesday 11 February 2025 17:08:36 -0500 (0:00:00.100) 0:00:14.055 ****** ok: [managed-node3] => { "changed": false, "content": "IyEvYmluL2Jhc2gKIwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6Y2VydGlmaWNhdGUKCnRvdWNoIC9ldGMvcGtpL2JlZm9yZV9jZXJ0LnRtcAo=", "encoding": "base64", "source": "/etc/certmonger/pre-scripts/mycert_run_hooks-369fd46.sh" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Tuesday 11 February 2025 17:08:36 -0500 (0:00:00.672) 0:00:14.728 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get file] **************************************************************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Tuesday 11 February 2025 17:08:37 -0500 (0:00:00.137) 0:00:14.865 ****** ok: [managed-node3] => { "changed": false, "content": "IyEvYmluL2Jhc2gKIwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6Y2VydGlmaWNhdGUKCnRvdWNoIC9ldGMvcGtpL2FmdGVyX2NlcnQudG1wCg==", "encoding": "base64", "source": "/etc/certmonger/post-scripts/mycert_run_hooks-369fd46.sh" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Tuesday 11 February 2025 17:08:37 -0500 (0:00:00.429) 0:00:15.295 ****** ok: [managed-node3] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node3 : ok=43 changed=1 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Tuesday 11 February 2025 17:08:37 -0500 (0:00:00.144) 0:00:15.439 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.76s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 0.98s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Parse certificate ------------------------------------------------------- 0.93s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Gathering Facts --------------------------------------------------------- 0.93s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.72s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Get file ---------------------------------------------------------------- 0.67s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Ensure python3 is installed --------------------------------------------- 0.66s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.63s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Gathering Facts --------------------------------------------------------- 0.57s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.57s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Retrieve auto-renew flag ------------------------------------------------ 0.57s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Get pre/post-scripts files ---------------------------------------------- 0.57s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.56s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Retrieve key file stats ------------------------------------------------- 0.47s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Get certificate timestamp ----------------------------------------------- 0.45s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Get post-run file timestamp --------------------------------------------- 0.43s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Get file ---------------------------------------------------------------- 0.43s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.41s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Get pre-run file timestamp ---------------------------------------------- 0.37s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Retrieve certificate file stats ----------------------------------------- 0.32s /tmp/collections-xC9/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38