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-8Oq/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-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Monday 10 February 2025 13:25:42 -0500 (0:00:00.041) 0:00:00.041 ******* ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 10 February 2025 13:25:43 -0500 (0:00:01.030) 0:00:01.071 ******* included: /tmp/collections-8Oq/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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 10 February 2025 13:25:43 -0500 (0:00:00.039) 0:00:01.110 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 10 February 2025 13:25:43 -0500 (0:00:00.057) 0:00:01.168 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 10 February 2025 13:25:44 -0500 (0:00:00.554) 0:00:01.722 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 10 February 2025 13:25:44 -0500 (0:00:00.080) 0:00:01.803 ******* 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-8Oq/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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 10 February 2025 13:25:44 -0500 (0:00:00.116) 0:00:01.920 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 10 February 2025 13:25:46 -0500 (0:00:02.010) 0:00:03.930 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 10 February 2025 13:25:47 -0500 (0:00:00.904) 0:00:04.835 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 10 February 2025 13:25:47 -0500 (0:00:00.707) 0:00:05.542 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 10 February 2025 13:25:48 -0500 (0:00:00.459) 0:00:06.001 ******* ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2025-02-10 13:24:50 EST", "ActiveEnterTimestampMonotonic": "288048125", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target systemd-journald.socket basic.target system.slice dbus.service syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2025-02-10 13:24:50 EST", "AssertTimestampMonotonic": "288020685", "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-10 13:24:50 EST", "ConditionTimestampMonotonic": "288020682", "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": "9732", "ExecMainStartTimestamp": "Mon 2025-02-10 13:24:50 EST", "ExecMainStartTimestampMonotonic": "288022640", "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-10 13:24:50 EST] ; stop_time=[n/a] ; pid=9732 ; 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-10 13:24:50 EST", "InactiveExitTimestampMonotonic": "288022680", "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": "9732", "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-10 13:24:50 EST", "WatchdogTimestampMonotonic": "288048085", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 10 February 2025 13:25:49 -0500 (0:00:00.999) 0:00:07.000 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 10 February 2025 13:25:50 -0500 (0:00:01.014) 0:00:08.015 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 10 February 2025 13:25:50 -0500 (0:00:00.059) 0:00:08.074 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 10 February 2025 13:25:50 -0500 (0:00:00.042) 0:00:08.117 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 10 February 2025 13:25:50 -0500 (0:00:00.045) 0:00:08.162 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Monday 10 February 2025 13:25:50 -0500 (0:00:00.066) 0:00:08.228 ******* ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:31 Monday 10 February 2025 13:25:51 -0500 (0:00:00.654) 0:00:08.883 ******* included: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 10 February 2025 13:25:51 -0500 (0:00:00.133) 0:00:09.016 ******* ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 10 February 2025 13:25:51 -0500 (0:00:00.033) 0:00:09.049 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 10 February 2025 13:25:51 -0500 (0:00:00.067) 0:00:09.117 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 10 February 2025 13:25:51 -0500 (0:00:00.135) 0:00:09.252 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 10 February 2025 13:25:52 -0500 (0:00:00.892) 0:00:10.145 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 10 February 2025 13:25:52 -0500 (0:00:00.045) 0:00:10.190 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739211950.1919525, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "90d37ac0d685fd20163a3a0e06ec723456f91b74", "ctime": 1739211950.1879525, "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": 1739211950.1879525, "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": "18446744072804711897", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 10 February 2025 13:25:52 -0500 (0:00:00.380) 0:00:10.571 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 10 February 2025 13:25:52 -0500 (0:00:00.070) 0:00:10.641 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 10 February 2025 13:25:53 -0500 (0:00:00.086) 0:00:10.727 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 10 February 2025 13:25:53 -0500 (0:00:00.077) 0:00:10.804 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739211950.1419523, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c8065a128153fee4317d4d03ed347978bfc03411", "ctime": 1739211950.1879525, "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": 1739211950.1879525, "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": "18446744072804711882", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 10 February 2025 13:25:53 -0500 (0:00:00.448) 0:00:11.253 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 10 February 2025 13:25:53 -0500 (0:00:00.101) 0:00:11.355 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 10 February 2025 13:25:53 -0500 (0:00:00.081) 0:00:11.436 ******* ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D8:DB:B1:3B:04:E2:EB:35:87:77:99:9B:F9:FC:1D:D3:FE:62:C9:2C" }, "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": "4E:C2:CC:26:8D:10:EA:D6:AC:1C:2B:F8:E8:67:BD:89:FC:3B:94:B5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4F:45:47:98:95:1A:6A:CF:8F:6C:0E:07:9F:F2:8D:DD:30:1A:BF:71:9D:28:BC:DD:D8:7F:BF:E1:A1:D1:CE:3B:7A:33:AE:84:97:E1:C7:C7:00:3F:00:BE:1E:CC:D0:21:66:F3:89:69:CE:C8:2F:EE:0D:DF:C2:19:CD:23:24:1B:78:8B:2F:B6:E8:24:0E:94:2B:C0:65:A5:B1:F5:38:CC:F5:A9:50:4F:C4:5F:4B:1B:12:90:4F:15:34:F1:8B:6E:81:EB:57:A4:87:C0:CE:32:9B:85:9D:F1:06:D1:EA:12:F9:E5:60:81:98:32:4F:6D:C7:05:41:51:94:F9:04:80:40:D8:66:C7:AB:D1:77:AC:8F:A1:69:C8:44:E1:1D:C9:3B:95:A5:9A:CF:2B:6E:0D:06:91:12:16:14:3A:72:BD:2C:9E:F9:C7:5C:4E:B3:B8:9F:08:90:BF:DE:3F:28:5C:FC:1C:85:84:FD:63:9A:28:D3:31:6C:68:4C:54:F0:1F:94:56:5C:1C:8F:65:D4:AC:09:44:0B:12:6B:B1:8B:52:22:BF:E1:22:86:98:02:BC:99:C1:5B:F8:9E:55:B5:A1:97:E2:E5:00:BB:2A:86:0A:10:C8:BB:1C:80:9C:3F:FA:CF:10:68:A7:59:73:9F:00:19:EA:52:64:3F:0B:E1:1A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260210182450Z", "not_valid_before": "20250210182550Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 10 February 2025 13:25:54 -0500 (0:00:00.718) 0:00:12.155 ******* ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "D8:DB:B1:3B:04:E2:EB:35:87:77:99:9B:F9:FC:1D:D3:FE:62:C9:2C" }, "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": "4E:C2:CC:26:8D:10:EA:D6:AC:1C:2B:F8:E8:67:BD:89:FC:3B:94:B5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4F:45:47:98:95:1A:6A:CF:8F:6C:0E:07:9F:F2:8D:DD:30:1A:BF:71:9D:28:BC:DD:D8:7F:BF:E1:A1:D1:CE:3B:7A:33:AE:84:97:E1:C7:C7:00:3F:00:BE:1E:CC:D0:21:66:F3:89:69:CE:C8:2F:EE:0D:DF:C2:19:CD:23:24:1B:78:8B:2F:B6:E8:24:0E:94:2B:C0:65:A5:B1:F5:38:CC:F5:A9:50:4F:C4:5F:4B:1B:12:90:4F:15:34:F1:8B:6E:81:EB:57:A4:87:C0:CE:32:9B:85:9D:F1:06:D1:EA:12:F9:E5:60:81:98:32:4F:6D:C7:05:41:51:94:F9:04:80:40:D8:66:C7:AB:D1:77:AC:8F:A1:69:C8:44:E1:1D:C9:3B:95:A5:9A:CF:2B:6E:0D:06:91:12:16:14:3A:72:BD:2C:9E:F9:C7:5C:4E:B3:B8:9F:08:90:BF:DE:3F:28:5C:FC:1C:85:84:FD:63:9A:28:D3:31:6C:68:4C:54:F0:1F:94:56:5C:1C:8F:65:D4:AC:09:44:0B:12:6B:B1:8B:52:22:BF:E1:22:86:98:02:BC:99:C1:5B:F8:9E:55:B5:A1:97:E2:E5:00:BB:2A:86:0A:10:C8:BB:1C:80:9C:3F:FA:CF:10:68:A7:59:73:9F:00:19:EA:52:64:3F:0B:E1:1A" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260210182450Z", "not_valid_before": "20250210182550Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 10 February 2025 13:25:54 -0500 (0:00:00.080) 0:00:12.235 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 10 February 2025 13:25:54 -0500 (0:00:00.074) 0:00:12.309 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 10 February 2025 13:25:54 -0500 (0:00:00.073) 0:00:12.383 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 10 February 2025 13:25:54 -0500 (0:00:00.076) 0:00:12.460 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 10 February 2025 13:25:54 -0500 (0:00:00.089) 0:00:12.550 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 10 February 2025 13:25:54 -0500 (0:00:00.096) 0:00:12.646 ******* 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.051275", "end": "2025-02-10 13:25:55.615160", "rc": 0, "start": "2025-02-10 13:25:55.563885" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 10 February 2025 13:25:55 -0500 (0:00:00.778) 0:00:13.425 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Monday 10 February 2025 13:25:55 -0500 (0:00:00.116) 0:00:13.542 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739211950.1919525, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "90d37ac0d685fd20163a3a0e06ec723456f91b74", "ctime": 1739211950.1879525, "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": 1739211950.1879525, "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": "18446744072804711897", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Monday 10 February 2025 13:25:56 -0500 (0:00:00.594) 0:00:14.136 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739211950.1869526, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1739211950.1869526, "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": 1739211950.1869526, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "18446744072804711894", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Monday 10 February 2025 13:25:56 -0500 (0:00:00.384) 0:00:14.520 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1739211950.2199528, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1739211950.2199528, "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": 1739211950.2199528, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "18446744072804711905", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:51 Monday 10 February 2025 13:25:57 -0500 (0:00:00.474) 0:00:14.995 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:58 Monday 10 February 2025 13:25:57 -0500 (0:00:00.051) 0:00:15.046 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get pre/post-scripts files] ********************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Monday 10 February 2025 13:25:57 -0500 (0:00:00.051) 0:00:15.097 ******* ok: [managed-node3] => { "changed": false, "examined": 2, "files": [ { "atime": 1739211950.1849525, "ctime": 1739211950.0699518, "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": 1739211950.0699518, "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": 1739211950.2189527, "ctime": 1739211950.0699518, "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": 1739211950.0699518, "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-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:74 Monday 10 February 2025 13:25:57 -0500 (0:00:00.487) 0:00:15.585 ******* included: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 included: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 TASK [Get file] **************************************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 10 February 2025 13:25:57 -0500 (0:00:00.085) 0:00:15.671 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 10 February 2025 13:25:58 -0500 (0:00:00.544) 0:00:16.215 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get file] **************************************************************** task path: /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 10 February 2025 13:25:58 -0500 (0:00:00.142) 0:00:16.358 ******* 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-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 10 February 2025 13:25:59 -0500 (0:00:00.594) 0:00:16.952 ******* 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 Monday 10 February 2025 13:25:59 -0500 (0:00:00.106) 0:00:17.058 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.01s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.03s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.01s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.00s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.90s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.89s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Retrieve auto-renew flag ------------------------------------------------ 0.78s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.72s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.71s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Gathering Facts --------------------------------------------------------- 0.65s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Get file ---------------------------------------------------------------- 0.59s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Get certificate timestamp ----------------------------------------------- 0.59s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.55s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Get file ---------------------------------------------------------------- 0.54s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Get pre/post-scripts files ---------------------------------------------- 0.49s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Get post-run file timestamp --------------------------------------------- 0.47s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.46s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve key file stats ------------------------------------------------- 0.45s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Get pre-run file timestamp ---------------------------------------------- 0.38s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Retrieve certificate file stats ----------------------------------------- 0.38s /tmp/collections-8Oq/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38