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-zL2/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-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Monday 03 February 2025 19:42:13 -0500 (0:00:00.034) 0:00:00.034 ******* ok: [managed-node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 03 February 2025 19:42:14 -0500 (0:00:00.930) 0:00:00.964 ******* included: /tmp/collections-zL2/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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 03 February 2025 19:42:14 -0500 (0:00:00.037) 0:00:01.002 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 03 February 2025 19:42:14 -0500 (0:00:00.055) 0:00:01.057 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 03 February 2025 19:42:14 -0500 (0:00:00.622) 0:00:01.679 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 03 February 2025 19:42:14 -0500 (0:00:00.059) 0:00:01.738 ******* 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-zL2/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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 03 February 2025 19:42:15 -0500 (0:00:00.090) 0:00:01.828 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 03 February 2025 19:42:16 -0500 (0:00:01.740) 0:00:03.569 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 03 February 2025 19:42:17 -0500 (0:00:00.753) 0:00:04.323 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 03 February 2025 19:42:17 -0500 (0:00:00.493) 0:00:04.816 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 03 February 2025 19:42:18 -0500 (0:00:00.418) 0:00:05.234 ******* 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 19:41:21 EST", "ActiveEnterTimestampMonotonic": "256469294", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket basic.target system.slice dbus.service network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2025-02-03 19:41:21 EST", "AssertTimestampMonotonic": "256435172", "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": "Mon 2025-02-03 19:41:21 EST", "ConditionTimestampMonotonic": "256435171", "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": "9907", "ExecMainStartTimestamp": "Mon 2025-02-03 19:41:21 EST", "ExecMainStartTimestampMonotonic": "256435839", "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 19:41:21 EST] ; stop_time=[n/a] ; pid=9907 ; 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 19:41:21 EST", "InactiveExitTimestampMonotonic": "256435879", "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": "9907", "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": "Mon 2025-02-03 19:41:21 EST", "WatchdogTimestampMonotonic": "256469243", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 03 February 2025 19:42:19 -0500 (0:00:00.873) 0:00:06.108 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 03 February 2025 19:42:20 -0500 (0:00:01.209) 0:00:07.317 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 03 February 2025 19:42:20 -0500 (0:00:00.111) 0:00:07.429 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 03 February 2025 19:42:20 -0500 (0:00:00.062) 0:00:07.491 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 03 February 2025 19:42:20 -0500 (0:00:00.067) 0:00:07.559 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Monday 03 February 2025 19:42:20 -0500 (0:00:00.080) 0:00:07.640 ******* ok: [managed-node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:31 Monday 03 February 2025 19:42:21 -0500 (0:00:00.572) 0:00:08.212 ******* included: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 03 February 2025 19:42:21 -0500 (0:00:00.119) 0:00:08.332 ******* ok: [managed-node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 03 February 2025 19:42:21 -0500 (0:00:00.029) 0:00:08.362 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 03 February 2025 19:42:21 -0500 (0:00:00.100) 0:00:08.462 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 03 February 2025 19:42:21 -0500 (0:00:00.083) 0:00:08.546 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 03 February 2025 19:42:22 -0500 (0:00:00.899) 0:00:09.445 ******* skipping: [managed-node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 03 February 2025 19:42:22 -0500 (0:00:00.063) 0:00:09.509 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738629740.2544918, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b2555151e907d8de90effe22b036af002e8ec018", "ctime": 1738629740.2504919, "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": 1738629740.2504919, "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": "18446744073481982187", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 03 February 2025 19:42:23 -0500 (0:00:00.526) 0:00:10.035 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 03 February 2025 19:42:23 -0500 (0:00:00.061) 0:00:10.096 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 03 February 2025 19:42:23 -0500 (0:00:00.054) 0:00:10.151 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 03 February 2025 19:42:23 -0500 (0:00:00.049) 0:00:10.201 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738629740.203492, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "de5b198d3732454421f3adddb1e868610e775e56", "ctime": 1738629740.2504919, "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": 1738629740.2504919, "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": "18446744073481982172", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 03 February 2025 19:42:23 -0500 (0:00:00.349) 0:00:10.550 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 03 February 2025 19:42:23 -0500 (0:00:00.071) 0:00:10.622 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 03 February 2025 19:42:23 -0500 (0:00:00.082) 0:00:10.704 ******* ok: [managed-node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "EF:F6:AA:D9:28:45:37:6D:69:D1:58:54:26:AA:75:E2:65:E4:EC:05" }, "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": "E1:0C:57:4C:A0:63:D3:F3:EF:6C:D3:5B:7A:5F:E8:33:54:0F:B0:7C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8C:C2:CA:34:01:05:69:35:52:FC:41:CE:DE:F9:6D:11:E7:28:2E:70:52:FB:87:C0:3F:C1:B1:22:D4:83:22:D1:10:B2:A9:46:87:D0:66:D9:63:CB:D2:C5:66:09:65:8E:7F:B4:4C:80:4E:EA:D6:F8:ED:9D:03:77:BD:43:83:A4:06:EC:35:12:E6:6F:CA:B3:E4:EE:E0:FB:93:B8:6D:0B:F1:B1:11:9A:54:22:CF:FA:B6:70:6C:A8:37:F0:27:61:82:85:92:40:ED:FC:AC:FF:64:39:A4:D7:2E:AB:FC:D3:E8:5F:8D:C8:D7:B6:08:44:6C:78:D5:F7:58:27:74:C4:70:F6:AA:47:A9:DE:C6:D2:8E:27:D6:96:D1:79:2B:C8:AE:A3:6F:0D:CD:84:8C:BD:F3:6E:BB:50:CA:85:EC:ED:43:37:04:5D:56:CC:9B:07:50:2C:0C:EA:E5:5C:72:C4:3B:A2:DB:EE:81:82:77:DA:65:FA:66:F4:60:96:19:79:A9:D7:BE:1B:7C:8A:BE:58:E2:A9:86:91:91:17:E7:63:70:49:DF:1B:CB:35:1A:3B:60:23:35:4A:2E:BF:3C:43:61:5D:12:07:FE:9A:F9:6C:F2:56:F2:22:65:D4:D3:F8:57:DC:30:21:A6:E8:4B:12:30:AA:30:C6:0A:01:2A:A5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204004121Z", "not_valid_before": "20250204004220Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 03 February 2025 19:42:24 -0500 (0:00:00.677) 0:00:11.382 ******* ok: [managed-node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "EF:F6:AA:D9:28:45:37:6D:69:D1:58:54:26:AA:75:E2:65:E4:EC:05" }, "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": "E1:0C:57:4C:A0:63:D3:F3:EF:6C:D3:5B:7A:5F:E8:33:54:0F:B0:7C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8C:C2:CA:34:01:05:69:35:52:FC:41:CE:DE:F9:6D:11:E7:28:2E:70:52:FB:87:C0:3F:C1:B1:22:D4:83:22:D1:10:B2:A9:46:87:D0:66:D9:63:CB:D2:C5:66:09:65:8E:7F:B4:4C:80:4E:EA:D6:F8:ED:9D:03:77:BD:43:83:A4:06:EC:35:12:E6:6F:CA:B3:E4:EE:E0:FB:93:B8:6D:0B:F1:B1:11:9A:54:22:CF:FA:B6:70:6C:A8:37:F0:27:61:82:85:92:40:ED:FC:AC:FF:64:39:A4:D7:2E:AB:FC:D3:E8:5F:8D:C8:D7:B6:08:44:6C:78:D5:F7:58:27:74:C4:70:F6:AA:47:A9:DE:C6:D2:8E:27:D6:96:D1:79:2B:C8:AE:A3:6F:0D:CD:84:8C:BD:F3:6E:BB:50:CA:85:EC:ED:43:37:04:5D:56:CC:9B:07:50:2C:0C:EA:E5:5C:72:C4:3B:A2:DB:EE:81:82:77:DA:65:FA:66:F4:60:96:19:79:A9:D7:BE:1B:7C:8A:BE:58:E2:A9:86:91:91:17:E7:63:70:49:DF:1B:CB:35:1A:3B:60:23:35:4A:2E:BF:3C:43:61:5D:12:07:FE:9A:F9:6C:F2:56:F2:22:65:D4:D3:F8:57:DC:30:21:A6:E8:4B:12:30:AA:30:C6:0A:01:2A:A5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204004121Z", "not_valid_before": "20250204004220Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 03 February 2025 19:42:24 -0500 (0:00:00.115) 0:00:11.497 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 03 February 2025 19:42:24 -0500 (0:00:00.078) 0:00:11.575 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 03 February 2025 19:42:24 -0500 (0:00:00.096) 0:00:11.672 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 03 February 2025 19:42:24 -0500 (0:00:00.084) 0:00:11.757 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 03 February 2025 19:42:25 -0500 (0:00:00.077) 0:00:11.835 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 03 February 2025 19:42:25 -0500 (0:00:00.081) 0:00:11.916 ******* 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.048226", "end": "2025-02-03 19:42:25.720997", "rc": 0, "start": "2025-02-03 19:42:25.672771" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 03 February 2025 19:42:25 -0500 (0:00:00.695) 0:00:12.612 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Monday 03 February 2025 19:42:25 -0500 (0:00:00.089) 0:00:12.702 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738629740.2544918, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b2555151e907d8de90effe22b036af002e8ec018", "ctime": 1738629740.2504919, "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": 1738629740.2504919, "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": "18446744073481982187", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Monday 03 February 2025 19:42:26 -0500 (0:00:00.482) 0:00:13.185 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738629740.248492, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738629740.248492, "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": 1738629740.248492, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "18446744073481982184", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Monday 03 February 2025 19:42:26 -0500 (0:00:00.497) 0:00:13.682 ******* ok: [managed-node2] => { "changed": false, "stat": { "atime": 1738629740.2804918, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738629740.2804918, "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": 1738629740.2804918, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "18446744073481982195", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:51 Monday 03 February 2025 19:42:27 -0500 (0:00:00.392) 0:00:14.075 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:58 Monday 03 February 2025 19:42:27 -0500 (0:00:00.068) 0:00:14.144 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Get pre/post-scripts files] ********************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Monday 03 February 2025 19:42:27 -0500 (0:00:00.072) 0:00:14.216 ******* ok: [managed-node2] => { "changed": false, "examined": 2, "files": [ { "atime": 1738629740.246492, "ctime": 1738629740.093492, "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": 1738629740.093492, "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": 1738629740.279492, "ctime": 1738629740.093492, "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": 1738629740.093492, "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-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:74 Monday 03 February 2025 19:42:28 -0500 (0:00:00.657) 0:00:14.873 ******* included: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node2 included: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node2 TASK [Get file] **************************************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 03 February 2025 19:42:28 -0500 (0:00:00.066) 0:00:14.940 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 03 February 2025 19:42:28 -0500 (0:00:00.482) 0:00:15.423 ******* ok: [managed-node2] => { "changed": false } MSG: All assertions passed TASK [Get file] **************************************************************** task path: /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 03 February 2025 19:42:28 -0500 (0:00:00.100) 0:00:15.524 ******* 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-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 03 February 2025 19:42:29 -0500 (0:00:00.322) 0:00:15.846 ******* 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 19:42:29 -0500 (0:00:00.073) 0:00:15.920 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.74s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.21s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.93s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Ensure python3 is installed --------------------------------------------- 0.90s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.87s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.75s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Retrieve auto-renew flag ------------------------------------------------ 0.70s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.68s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Get pre/post-scripts files ---------------------------------------------- 0.66s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.62s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Gathering Facts --------------------------------------------------------- 0.57s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Retrieve certificate file stats ----------------------------------------- 0.53s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Get pre-run file timestamp ---------------------------------------------- 0.50s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.49s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Get file ---------------------------------------------------------------- 0.48s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Get certificate timestamp ----------------------------------------------- 0.48s /tmp/collections-zL2/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-zL2/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Get post-run file timestamp --------------------------------------------- 0.39s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Retrieve key file stats ------------------------------------------------- 0.35s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Get file ---------------------------------------------------------------- 0.32s /tmp/collections-zL2/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3