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-mI7/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-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Monday 03 February 2025 18:51:47 -0500 (0:00:00.048) 0:00:00.048 ******* ok: [managed-node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 03 February 2025 18:51:47 -0500 (0:00:00.900) 0:00:00.948 ******* included: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 03 February 2025 18:51:47 -0500 (0:00:00.036) 0:00:00.984 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 03 February 2025 18:51:48 -0500 (0:00:00.069) 0:00:01.054 ******* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 03 February 2025 18:51:48 -0500 (0:00:00.586) 0:00:01.640 ******* ok: [managed-node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 03 February 2025 18:51:48 -0500 (0:00:00.058) 0:00:01.699 ******* skipping: [managed-node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node2] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed-node2] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 03 February 2025 18:51:48 -0500 (0:00:00.085) 0:00:01.785 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "python2-pyasn1-0.1.9-7.el7.noarch providing python-pyasn1 is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python-cryptography is already installed", "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 03 February 2025 18:51:50 -0500 (0:00:01.817) 0:00:03.603 ******* ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [ "certmonger-0.78.4-17.el7_9.x86_64 providing certmonger is already installed" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 03 February 2025 18:51:51 -0500 (0:00:00.654) 0:00:04.257 ******* ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 03 February 2025 18:51:51 -0500 (0:00:00.479) 0:00:04.737 ******* ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 03 February 2025 18:51:52 -0500 (0:00:00.418) 0:00:05.155 ******* ok: [managed-node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2025-02-03 18:50:55 EST", "ActiveEnterTimestampMonotonic": "545978833", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service network.target systemd-journald.socket syslog.target basic.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2025-02-03 18:50:55 EST", "AssertTimestampMonotonic": "545961489", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2025-02-03 18:50:55 EST", "ConditionTimestampMonotonic": "545961488", "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": "9902", "ExecMainStartTimestamp": "Mon 2025-02-03 18:50:55 EST", "ExecMainStartTimestampMonotonic": "545962054", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Mon 2025-02-03 18:50:55 EST] ; stop_time=[n/a] ; pid=9902 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Mon 2025-02-03 18:50:55 EST", "InactiveExitTimestampMonotonic": "545962094", "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": "9902", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Mon 2025-02-03 18:50:55 EST", "WatchdogTimestampMonotonic": "545978804", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 03 February 2025 18:51:52 -0500 (0:00:00.860) 0:00:06.016 ******* changed: [managed-node2] => (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-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 03 February 2025 18:51:54 -0500 (0:00:01.193) 0:00:07.210 ******* skipping: [managed-node2] => (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-node2] => (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-node2] => (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-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 03 February 2025 18:51:54 -0500 (0:00:00.161) 0:00:07.371 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 03 February 2025 18:51:54 -0500 (0:00:00.079) 0:00:07.451 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 03 February 2025 18:51:54 -0500 (0:00:00.074) 0:00:07.525 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Monday 03 February 2025 18:51:54 -0500 (0:00:00.085) 0:00:07.611 ******* ok: [managed-node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:31 Monday 03 February 2025 18:51:55 -0500 (0:00:00.583) 0:00:08.195 ******* included: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 03 February 2025 18:51:55 -0500 (0:00:00.075) 0:00:08.270 ******* ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 03 February 2025 18:51:55 -0500 (0:00:00.028) 0:00:08.299 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 03 February 2025 18:51:55 -0500 (0:00:00.059) 0:00:08.359 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 03 February 2025 18:51:55 -0500 (0:00:00.078) 0:00:08.437 ******* ok: [managed-node2] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 03 February 2025 18:51:56 -0500 (0:00:00.920) 0:00:09.357 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 03 February 2025 18:51:56 -0500 (0:00:00.067) 0:00:09.424 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738626714.0399022, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c312e2c649755f0f78d0efffbc97684ffb26945c", "ctime": 1738626714.0359023, "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": 1738626714.0359023, "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": "1375446160", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 03 February 2025 18:51:56 -0500 (0:00:00.507) 0:00:09.932 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 03 February 2025 18:51:56 -0500 (0:00:00.072) 0:00:10.004 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 03 February 2025 18:51:57 -0500 (0:00:00.066) 0:00:10.070 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 03 February 2025 18:51:57 -0500 (0:00:00.051) 0:00:10.122 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738626713.9919019, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "08ca9957b21894e08bacaec27bee2d46beaadd6c", "ctime": 1738626714.0359023, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172754, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1738626714.0359023, "nlink": 1, "path": "/etc/pki/tls/private/mycert_run_hooks.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "1375446145", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 03 February 2025 18:51:57 -0500 (0:00:00.329) 0:00:10.452 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 03 February 2025 18:51:57 -0500 (0:00:00.091) 0:00:10.544 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 03 February 2025 18:51:57 -0500 (0:00:00.075) 0:00:10.619 ******* ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "38:4E:AF:21:9F:AA:45:19:06:2D:85:2E:3F:53:02:8C:43:1F:5C:32" }, "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": "5F:57:42:32:73:3D:8C:51:4F:AC:3E:76:FD:F5:FB:CF:52:87:D5:CD" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "80:D8:A2:DC:FC:DD:B0:86:0D:A7:E5:C8:B3:C1:0A:55:19:56:CA:CD:6B:B1:B3:0F:1B:A7:40:8D:ED:59:D4:4C:2D:87:39:DD:12:15:DC:52:FF:4D:70:31:22:95:1E:88:13:B6:FD:3A:0D:99:23:72:A8:7B:BA:3A:6E:39:DE:58:94:45:D6:4F:CA:88:8C:FB:5B:09:BF:91:31:D8:99:CE:CA:E4:A2:5C:BC:B8:05:41:A0:BC:BE:62:60:4A:7A:4A:01:72:C6:C4:0C:C9:30:00:11:0F:CE:BB:9B:A3:AD:F4:B9:4A:EE:8F:BC:36:D8:BA:E3:96:D4:C1:36:EB:66:83:CE:C7:B7:A6:7D:69:46:A0:0F:77:AA:45:B5:95:23:AF:DC:4D:9A:E4:AD:4E:8F:E3:90:AA:B5:E9:F6:EB:A8:2B:0B:00:70:64:E7:B1:8C:12:36:97:DE:5D:29:ED:96:4B:1C:83:07:71:3A:B6:CF:CF:4F:D1:E6:0C:76:E8:6E:69:EA:95:47:98:92:59:3B:3E:61:C1:55:4E:D9:E9:56:90:1F:5D:53:D3:5B:6B:A9:1B:1F:97:30:34:D4:8B:82:05:4F:FC:B1:0C:11:5B:F5:96:72:C2:1F:40:54:E0:25:B1:18:E2:7B:69:EA:1F:C6:BD:37:83:F1:80:A5:73:0E:CB" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260203235055Z", "not_valid_before": "20250203235154Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 03 February 2025 18:51:58 -0500 (0:00:00.649) 0:00:11.269 ******* ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "38:4E:AF:21:9F:AA:45:19:06:2D:85:2E:3F:53:02:8C:43:1F:5C:32" }, "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": "5F:57:42:32:73:3D:8C:51:4F:AC:3E:76:FD:F5:FB:CF:52:87:D5:CD" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "80:D8:A2:DC:FC:DD:B0:86:0D:A7:E5:C8:B3:C1:0A:55:19:56:CA:CD:6B:B1:B3:0F:1B:A7:40:8D:ED:59:D4:4C:2D:87:39:DD:12:15:DC:52:FF:4D:70:31:22:95:1E:88:13:B6:FD:3A:0D:99:23:72:A8:7B:BA:3A:6E:39:DE:58:94:45:D6:4F:CA:88:8C:FB:5B:09:BF:91:31:D8:99:CE:CA:E4:A2:5C:BC:B8:05:41:A0:BC:BE:62:60:4A:7A:4A:01:72:C6:C4:0C:C9:30:00:11:0F:CE:BB:9B:A3:AD:F4:B9:4A:EE:8F:BC:36:D8:BA:E3:96:D4:C1:36:EB:66:83:CE:C7:B7:A6:7D:69:46:A0:0F:77:AA:45:B5:95:23:AF:DC:4D:9A:E4:AD:4E:8F:E3:90:AA:B5:E9:F6:EB:A8:2B:0B:00:70:64:E7:B1:8C:12:36:97:DE:5D:29:ED:96:4B:1C:83:07:71:3A:B6:CF:CF:4F:D1:E6:0C:76:E8:6E:69:EA:95:47:98:92:59:3B:3E:61:C1:55:4E:D9:E9:56:90:1F:5D:53:D3:5B:6B:A9:1B:1F:97:30:34:D4:8B:82:05:4F:FC:B1:0C:11:5B:F5:96:72:C2:1F:40:54:E0:25:B1:18:E2:7B:69:EA:1F:C6:BD:37:83:F1:80:A5:73:0E:CB" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260203235055Z", "not_valid_before": "20250203235154Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 03 February 2025 18:51:58 -0500 (0:00:00.101) 0:00:11.370 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 03 February 2025 18:51:58 -0500 (0:00:00.166) 0:00:11.537 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 03 February 2025 18:51:58 -0500 (0:00:00.078) 0:00:11.615 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 03 February 2025 18:51:58 -0500 (0:00:00.075) 0:00:11.691 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 03 February 2025 18:51:58 -0500 (0:00:00.100) 0:00:11.791 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 03 February 2025 18:51:58 -0500 (0:00:00.091) 0:00:11.883 ******* ok: [managed-node2] => { "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.047708", "end": "2025-02-03 18:51:59.406941", "rc": 0, "start": "2025-02-03 18:51:59.359233" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 03 February 2025 18:51:59 -0500 (0:00:00.652) 0:00:12.535 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Monday 03 February 2025 18:51:59 -0500 (0:00:00.118) 0:00:12.654 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738626714.0399022, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c312e2c649755f0f78d0efffbc97684ffb26945c", "ctime": 1738626714.0359023, "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": 1738626714.0359023, "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": "1375446160", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Monday 03 February 2025 18:52:00 -0500 (0:00:00.421) 0:00:13.075 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738626714.034902, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738626714.034902, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172755, "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": 1738626714.034902, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "1375446157", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Monday 03 February 2025 18:52:00 -0500 (0:00:00.399) 0:00:13.475 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738626714.0669024, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738626714.0669024, "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": "inode/x-empty", "mode": "0600", "mtime": 1738626714.0669024, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "1375446168", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:51 Monday 03 February 2025 18:52:00 -0500 (0:00:00.442) 0:00:13.917 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:58 Monday 03 February 2025 18:52:00 -0500 (0:00:00.089) 0:00:14.007 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Get pre/post-scripts files] ********************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Monday 03 February 2025 18:52:01 -0500 (0:00:00.072) 0:00:14.079 ******* ok: [managed-node2] => { "changed": false, "examined": 2, "files": [ { "atime": 1738626714.0329022, "ctime": 1738626713.7769003, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 263202, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0770", "mtime": 1738626713.7769003, "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": 1738626714.0649023, "ctime": 1738626713.7769003, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 263203, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0770", "mtime": 1738626713.7769003, "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-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:74 Monday 03 February 2025 18:52:01 -0500 (0:00:00.670) 0:00:14.750 ******* included: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node2 included: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node2 TASK [Get file] **************************************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 03 February 2025 18:52:01 -0500 (0:00:00.071) 0:00:14.821 ******* ok: [managed-node2] => { "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-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 03 February 2025 18:52:02 -0500 (0:00:00.436) 0:00:15.257 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Get file] **************************************************************** task path: /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 03 February 2025 18:52:02 -0500 (0:00:00.110) 0:00:15.368 ******* ok: [managed-node2] => { "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-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 03 February 2025 18:52:02 -0500 (0:00:00.364) 0:00:15.733 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node2 : ok=43 changed=1 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Monday 03 February 2025 18:52:02 -0500 (0:00:00.120) 0:00:15.853 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.82s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.19s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Ensure python3 is installed --------------------------------------------- 0.92s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.90s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.86s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Get pre/post-scripts files ---------------------------------------------- 0.67s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.65s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Retrieve auto-renew flag ------------------------------------------------ 0.65s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.65s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.59s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Gathering Facts --------------------------------------------------------- 0.58s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Retrieve certificate file stats ----------------------------------------- 0.51s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.48s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Get post-run file timestamp --------------------------------------------- 0.44s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Get file ---------------------------------------------------------------- 0.44s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Get certificate timestamp ----------------------------------------------- 0.42s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.42s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Get pre-run file timestamp ---------------------------------------------- 0.40s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Get file ---------------------------------------------------------------- 0.36s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Retrieve key file stats ------------------------------------------------- 0.33s /tmp/collections-mI7/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65