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-pwx/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-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Friday 07 February 2025 10:37:42 -0500 (0:00:00.039) 0:00:00.039 ******* ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Friday 07 February 2025 10:37:43 -0500 (0:00:00.953) 0:00:00.993 ******* included: /tmp/collections-pwx/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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Friday 07 February 2025 10:37:43 -0500 (0:00:00.028) 0:00:01.022 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Friday 07 February 2025 10:37:43 -0500 (0:00:00.042) 0:00:01.065 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Friday 07 February 2025 10:37:44 -0500 (0:00:00.512) 0:00:01.577 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Friday 07 February 2025 10:37:44 -0500 (0:00:00.058) 0:00:01.636 ******* 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-pwx/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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Friday 07 February 2025 10:37:44 -0500 (0:00:00.110) 0:00:01.747 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Friday 07 February 2025 10:37:46 -0500 (0:00:01.881) 0:00:03.628 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Friday 07 February 2025 10:37:47 -0500 (0:00:00.762) 0:00:04.390 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Friday 07 February 2025 10:37:47 -0500 (0:00:00.518) 0:00:04.909 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Friday 07 February 2025 10:37:48 -0500 (0:00:00.351) 0:00:05.260 ******* ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Fri 2025-02-07 10:36:52 EST", "ActiveEnterTimestampMonotonic": "293791589", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice systemd-journald.socket syslog.target network.target dbus.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Fri 2025-02-07 10:36:52 EST", "AssertTimestampMonotonic": "293765197", "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": "Fri 2025-02-07 10:36:52 EST", "ConditionTimestampMonotonic": "293765195", "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": "9733", "ExecMainStartTimestamp": "Fri 2025-02-07 10:36:52 EST", "ExecMainStartTimestampMonotonic": "293765800", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Fri 2025-02-07 10:36:52 EST] ; stop_time=[n/a] ; pid=9733 ; 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": "Fri 2025-02-07 10:36:52 EST", "InactiveExitTimestampMonotonic": "293765840", "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": "9733", "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": "Fri 2025-02-07 10:36:52 EST", "WatchdogTimestampMonotonic": "293791553", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Friday 07 February 2025 10:37:49 -0500 (0:00:00.962) 0:00:06.223 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Friday 07 February 2025 10:37:50 -0500 (0:00:01.105) 0:00:07.328 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Friday 07 February 2025 10:37:50 -0500 (0:00:00.085) 0:00:07.414 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Friday 07 February 2025 10:37:50 -0500 (0:00:00.061) 0:00:07.476 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Friday 07 February 2025 10:37:50 -0500 (0:00:00.062) 0:00:07.538 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Friday 07 February 2025 10:37:50 -0500 (0:00:00.096) 0:00:07.634 ******* ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:31 Friday 07 February 2025 10:37:51 -0500 (0:00:00.582) 0:00:08.217 ******* included: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Friday 07 February 2025 10:37:51 -0500 (0:00:00.101) 0:00:08.318 ******* ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Friday 07 February 2025 10:37:51 -0500 (0:00:00.029) 0:00:08.348 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Friday 07 February 2025 10:37:51 -0500 (0:00:00.061) 0:00:08.409 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Friday 07 February 2025 10:37:51 -0500 (0:00:00.053) 0:00:08.463 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Friday 07 February 2025 10:37:52 -0500 (0:00:00.671) 0:00:09.134 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Friday 07 February 2025 10:37:52 -0500 (0:00:00.039) 0:00:09.174 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738942669.989289, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e596ad1412631d9c48f8f60fc82a65433164e6ec", "ctime": 1738942669.9842892, "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": 1738942669.9842892, "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": "678530443", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Friday 07 February 2025 10:37:52 -0500 (0:00:00.320) 0:00:09.494 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Friday 07 February 2025 10:37:52 -0500 (0:00:00.064) 0:00:09.559 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Friday 07 February 2025 10:37:52 -0500 (0:00:00.077) 0:00:09.637 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Friday 07 February 2025 10:37:52 -0500 (0:00:00.070) 0:00:09.707 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738942669.940289, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "254af6feedae942401ec7d9987cc335bd85f9846", "ctime": 1738942669.9842892, "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": 1738942669.9842892, "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": "678530428", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Friday 07 February 2025 10:37:53 -0500 (0:00:00.441) 0:00:10.149 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Friday 07 February 2025 10:37:53 -0500 (0:00:00.155) 0:00:10.304 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Friday 07 February 2025 10:37:53 -0500 (0:00:00.147) 0:00:10.451 ******* ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:B7:6C:C3:AE:F8:A7:E3:37:E6:4E:20:A3:9B:29:51:25:85:9A:DE" }, "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": "B9:B5:09:AD:61:4C:8B:76:7E:12:12:9D:75:D6:46:E4:27:61:F6:11" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "56:D0:D5:3E:24:99:95:F6:4E:E0:EE:6E:1C:E0:5E:E6:B5:FB:43:E6:F3:A3:4E:23:EE:CC:B2:EF:F8:E4:FD:78:17:F4:50:4C:74:EB:5B:AB:28:1A:60:04:54:A6:44:84:78:75:05:84:C5:55:B9:5F:53:5F:2A:8C:8D:E1:27:1A:ED:47:F0:A0:47:8C:D4:CA:33:EB:0D:8D:66:FA:0D:FA:C7:6A:11:B7:BB:F1:0D:44:E6:A9:EA:42:66:89:83:F0:73:D9:DD:B6:1B:08:C4:95:44:49:A7:BE:E9:12:72:39:6B:BB:81:FE:30:D9:08:33:D3:B9:07:E6:E0:EA:7C:E7:F1:4C:B0:B3:04:C6:BE:9D:7C:F9:E0:3F:F5:6D:68:3E:51:47:D4:15:52:4B:13:1E:64:3C:71:2D:A2:5E:79:5E:6C:C5:0A:56:ED:DA:E6:FD:47:50:E3:5B:E6:F0:21:9C:D0:3C:46:3A:B4:93:DF:51:80:02:A6:08:60:F6:61:2B:8E:47:D6:0A:90:DE:A2:A1:A6:50:D6:88:5A:17:F6:8E:C8:DE:C2:6C:E9:16:C3:73:A2:26:68:07:E6:AC:DD:A8:71:94:89:6A:8B:24:41:81:18:C2:25:6A:FB:68:64:4A:6A:35:46:D9:5F:5D:AF:E5:8B:0C:07:B5:B3:8E:0A:B5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260207153652Z", "not_valid_before": "20250207153749Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Friday 07 February 2025 10:37:54 -0500 (0:00:00.683) 0:00:11.135 ******* ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D6:B7:6C:C3:AE:F8:A7:E3:37:E6:4E:20:A3:9B:29:51:25:85:9A:DE" }, "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": "B9:B5:09:AD:61:4C:8B:76:7E:12:12:9D:75:D6:46:E4:27:61:F6:11" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "56:D0:D5:3E:24:99:95:F6:4E:E0:EE:6E:1C:E0:5E:E6:B5:FB:43:E6:F3:A3:4E:23:EE:CC:B2:EF:F8:E4:FD:78:17:F4:50:4C:74:EB:5B:AB:28:1A:60:04:54:A6:44:84:78:75:05:84:C5:55:B9:5F:53:5F:2A:8C:8D:E1:27:1A:ED:47:F0:A0:47:8C:D4:CA:33:EB:0D:8D:66:FA:0D:FA:C7:6A:11:B7:BB:F1:0D:44:E6:A9:EA:42:66:89:83:F0:73:D9:DD:B6:1B:08:C4:95:44:49:A7:BE:E9:12:72:39:6B:BB:81:FE:30:D9:08:33:D3:B9:07:E6:E0:EA:7C:E7:F1:4C:B0:B3:04:C6:BE:9D:7C:F9:E0:3F:F5:6D:68:3E:51:47:D4:15:52:4B:13:1E:64:3C:71:2D:A2:5E:79:5E:6C:C5:0A:56:ED:DA:E6:FD:47:50:E3:5B:E6:F0:21:9C:D0:3C:46:3A:B4:93:DF:51:80:02:A6:08:60:F6:61:2B:8E:47:D6:0A:90:DE:A2:A1:A6:50:D6:88:5A:17:F6:8E:C8:DE:C2:6C:E9:16:C3:73:A2:26:68:07:E6:AC:DD:A8:71:94:89:6A:8B:24:41:81:18:C2:25:6A:FB:68:64:4A:6A:35:46:D9:5F:5D:AF:E5:8B:0C:07:B5:B3:8E:0A:B5" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260207153652Z", "not_valid_before": "20250207153749Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Friday 07 February 2025 10:37:54 -0500 (0:00:00.058) 0:00:11.193 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Friday 07 February 2025 10:37:54 -0500 (0:00:00.051) 0:00:11.245 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Friday 07 February 2025 10:37:54 -0500 (0:00:00.048) 0:00:11.294 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Friday 07 February 2025 10:37:54 -0500 (0:00:00.045) 0:00:11.339 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Friday 07 February 2025 10:37:54 -0500 (0:00:00.052) 0:00:11.392 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Friday 07 February 2025 10:37:54 -0500 (0:00:00.050) 0:00:11.442 ******* 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.046407", "end": "2025-02-07 10:37:54.827973", "rc": 0, "start": "2025-02-07 10:37:54.781566" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Friday 07 February 2025 10:37:54 -0500 (0:00:00.582) 0:00:12.025 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Friday 07 February 2025 10:37:54 -0500 (0:00:00.069) 0:00:12.094 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738942669.989289, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "e596ad1412631d9c48f8f60fc82a65433164e6ec", "ctime": 1738942669.9842892, "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": 1738942669.9842892, "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": "678530443", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Friday 07 February 2025 10:37:55 -0500 (0:00:00.492) 0:00:12.587 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738942669.983289, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738942669.983289, "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": 1738942669.983289, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "678530440", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Friday 07 February 2025 10:37:55 -0500 (0:00:00.373) 0:00:12.961 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738942670.016289, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738942670.016289, "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": 1738942670.016289, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "678530451", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:51 Friday 07 February 2025 10:37:56 -0500 (0:00:00.426) 0:00:13.387 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:58 Friday 07 February 2025 10:37:56 -0500 (0:00:00.085) 0:00:13.473 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get pre/post-scripts files] ********************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Friday 07 February 2025 10:37:56 -0500 (0:00:00.066) 0:00:13.540 ******* ok: [managed-node3] => { "changed": false, "examined": 2, "files": [ { "atime": 1738942669.9812891, "ctime": 1738942669.825289, "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": 1738942669.825289, "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": 1738942670.0142891, "ctime": 1738942669.825289, "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": 1738942669.825289, "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-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:74 Friday 07 February 2025 10:37:57 -0500 (0:00:00.605) 0:00:14.145 ******* included: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 included: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 TASK [Get file] **************************************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Friday 07 February 2025 10:37:57 -0500 (0:00:00.089) 0:00:14.235 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Friday 07 February 2025 10:37:57 -0500 (0:00:00.687) 0:00:14.923 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get file] **************************************************************** task path: /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Friday 07 February 2025 10:37:57 -0500 (0:00:00.096) 0:00:15.020 ******* 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-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Friday 07 February 2025 10:37:58 -0500 (0:00:00.405) 0:00:15.426 ******* 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 Friday 07 February 2025 10:37:58 -0500 (0:00:00.115) 0:00:15.541 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.88s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.11s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.96s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.95s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.76s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Get file ---------------------------------------------------------------- 0.69s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Parse certificate ------------------------------------------------------- 0.68s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Ensure python3 is installed --------------------------------------------- 0.67s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Get pre/post-scripts files ---------------------------------------------- 0.61s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Retrieve auto-renew flag ------------------------------------------------ 0.58s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Gathering Facts --------------------------------------------------------- 0.58s /tmp/collections-pwx/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.52s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.51s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Get certificate timestamp ----------------------------------------------- 0.49s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Retrieve key file stats ------------------------------------------------- 0.44s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Get post-run file timestamp --------------------------------------------- 0.43s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Get file ---------------------------------------------------------------- 0.41s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Get pre-run file timestamp ---------------------------------------------- 0.37s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.35s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.32s /tmp/collections-pwx/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38