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-NtY/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-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Monday 03 February 2025 20:54:48 -0500 (0:00:00.055) 0:00:00.055 ******* ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Monday 03 February 2025 20:54:49 -0500 (0:00:01.016) 0:00:01.071 ******* included: /tmp/collections-NtY/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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Monday 03 February 2025 20:54:49 -0500 (0:00:00.046) 0:00:01.118 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Monday 03 February 2025 20:54:49 -0500 (0:00:00.073) 0:00:01.192 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Monday 03 February 2025 20:54:49 -0500 (0:00:00.574) 0:00:01.766 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Monday 03 February 2025 20:54:49 -0500 (0:00:00.073) 0:00:01.840 ******* 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-NtY/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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Monday 03 February 2025 20:54:50 -0500 (0:00:00.152) 0:00:01.993 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Monday 03 February 2025 20:54:51 -0500 (0:00:01.696) 0:00:03.690 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Monday 03 February 2025 20:54:52 -0500 (0:00:00.654) 0:00:04.345 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Monday 03 February 2025 20:54:53 -0500 (0:00:00.584) 0:00:04.929 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Monday 03 February 2025 20:54:53 -0500 (0:00:00.461) 0:00:05.391 ******* 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-03 20:53:55 EST", "ActiveEnterTimestampMonotonic": "260811423", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target network.target systemd-journald.socket basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2025-02-03 20:53:55 EST", "AssertTimestampMonotonic": "260790584", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2025-02-03 20:53:55 EST", "ConditionTimestampMonotonic": "260790582", "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": "9718", "ExecMainStartTimestamp": "Mon 2025-02-03 20:53:55 EST", "ExecMainStartTimestampMonotonic": "260791300", "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 20:53:55 EST] ; stop_time=[n/a] ; pid=9718 ; 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 20:53:55 EST", "InactiveExitTimestampMonotonic": "260791335", "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": "9718", "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 20:53:55 EST", "WatchdogTimestampMonotonic": "260811374", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Monday 03 February 2025 20:54:54 -0500 (0:00:00.803) 0:00:06.194 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Monday 03 February 2025 20:54:55 -0500 (0:00:01.081) 0:00:07.276 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Monday 03 February 2025 20:54:55 -0500 (0:00:00.087) 0:00:07.364 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Monday 03 February 2025 20:54:55 -0500 (0:00:00.050) 0:00:07.415 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Monday 03 February 2025 20:54:55 -0500 (0:00:00.047) 0:00:07.462 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Monday 03 February 2025 20:54:55 -0500 (0:00:00.066) 0:00:07.528 ******* ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:31 Monday 03 February 2025 20:54:56 -0500 (0:00:00.870) 0:00:08.398 ******* included: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Monday 03 February 2025 20:54:56 -0500 (0:00:00.224) 0:00:08.623 ******* ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Monday 03 February 2025 20:54:56 -0500 (0:00:00.055) 0:00:08.679 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Monday 03 February 2025 20:54:56 -0500 (0:00:00.072) 0:00:08.751 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Monday 03 February 2025 20:54:56 -0500 (0:00:00.065) 0:00:08.816 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Monday 03 February 2025 20:54:57 -0500 (0:00:00.757) 0:00:09.574 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Monday 03 February 2025 20:54:57 -0500 (0:00:00.083) 0:00:09.657 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738634095.1623037, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3def9a43a4af1e6bb28895a937c8a132f7969f4b", "ctime": 1738634095.1473036, "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": 1738634095.1473036, "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": "18446744072731411195", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Monday 03 February 2025 20:54:58 -0500 (0:00:00.638) 0:00:10.296 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Monday 03 February 2025 20:54:58 -0500 (0:00:00.076) 0:00:10.372 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Monday 03 February 2025 20:54:58 -0500 (0:00:00.080) 0:00:10.453 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Monday 03 February 2025 20:54:58 -0500 (0:00:00.076) 0:00:10.530 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738634095.1003034, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7f2a81e95ffb1ce18d73eb0414b3ee2cf47a1793", "ctime": 1738634095.1473036, "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": 1738634095.1473036, "nlink": 1, "path": "/etc/pki/tls/private/mycert_run_hooks.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "18446744072731411180", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Monday 03 February 2025 20:54:59 -0500 (0:00:00.523) 0:00:11.053 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Monday 03 February 2025 20:54:59 -0500 (0:00:00.148) 0:00:11.202 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Monday 03 February 2025 20:54:59 -0500 (0:00:00.099) 0:00:11.302 ******* ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E3:02:85:A1:82:D8:46:B8:6A:AF:52:32:29:3B:68:C1:BA:8D:64:CA" }, "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": "A5:9E:50:85:D5:81:A6:61:CE:34:12:A5:C3:B9:9B:FD:BC:A5:2B:E5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6C:DB:A8:13:76:D2:11:7B:EC:B8:A8:F8:13:4E:14:A8:96:80:9E:94:75:B2:18:FF:B5:18:81:F3:83:84:EA:39:DC:7A:2A:94:60:40:68:57:91:9D:38:F9:BD:7A:DB:04:27:0F:DA:ED:15:72:67:36:52:F6:CA:93:84:78:FC:80:4F:DF:E5:07:F7:F8:C1:6C:33:E7:B1:98:BB:C2:56:FA:AD:B2:4F:79:CC:38:E8:B3:A3:4C:59:09:CF:6D:22:07:5B:D4:BF:24:64:88:7B:A4:DC:40:B9:A8:EA:0C:AB:7A:B5:26:56:97:DE:F9:8E:2E:1D:4F:21:C6:7E:3E:0F:18:33:48:DB:36:90:2A:37:28:4E:1C:47:84:DE:28:85:17:04:C5:FD:82:2E:68:0C:11:D8:54:CE:C6:52:05:58:CA:C4:71:95:5D:32:7A:E5:21:FF:2B:78:EB:38:72:F6:36:1E:AB:80:6B:8C:D1:EE:41:FC:87:46:E3:B2:85:AD:3E:2F:9D:63:31:C5:B8:98:A1:54:6C:D3:D0:8C:C5:39:27:94:BA:D8:77:0A:BB:93:C0:85:5D:C1:F9:F3:3F:C1:D3:08:C3:51:5A:ED:BB:62:A1:D3:35:6E:31:F6:1F:99:F5:73:46:89:57:8E:02:F7:DC:21:71:44:09:4E:EA:93:29" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204015355Z", "not_valid_before": "20250204015455Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Monday 03 February 2025 20:55:00 -0500 (0:00:00.592) 0:00:11.895 ******* ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "E3:02:85:A1:82:D8:46:B8:6A:AF:52:32:29:3B:68:C1:BA:8D:64:CA" }, "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": "A5:9E:50:85:D5:81:A6:61:CE:34:12:A5:C3:B9:9B:FD:BC:A5:2B:E5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6C:DB:A8:13:76:D2:11:7B:EC:B8:A8:F8:13:4E:14:A8:96:80:9E:94:75:B2:18:FF:B5:18:81:F3:83:84:EA:39:DC:7A:2A:94:60:40:68:57:91:9D:38:F9:BD:7A:DB:04:27:0F:DA:ED:15:72:67:36:52:F6:CA:93:84:78:FC:80:4F:DF:E5:07:F7:F8:C1:6C:33:E7:B1:98:BB:C2:56:FA:AD:B2:4F:79:CC:38:E8:B3:A3:4C:59:09:CF:6D:22:07:5B:D4:BF:24:64:88:7B:A4:DC:40:B9:A8:EA:0C:AB:7A:B5:26:56:97:DE:F9:8E:2E:1D:4F:21:C6:7E:3E:0F:18:33:48:DB:36:90:2A:37:28:4E:1C:47:84:DE:28:85:17:04:C5:FD:82:2E:68:0C:11:D8:54:CE:C6:52:05:58:CA:C4:71:95:5D:32:7A:E5:21:FF:2B:78:EB:38:72:F6:36:1E:AB:80:6B:8C:D1:EE:41:FC:87:46:E3:B2:85:AD:3E:2F:9D:63:31:C5:B8:98:A1:54:6C:D3:D0:8C:C5:39:27:94:BA:D8:77:0A:BB:93:C0:85:5D:C1:F9:F3:3F:C1:D3:08:C3:51:5A:ED:BB:62:A1:D3:35:6E:31:F6:1F:99:F5:73:46:89:57:8E:02:F7:DC:21:71:44:09:4E:EA:93:29" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260204015355Z", "not_valid_before": "20250204015455Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Monday 03 February 2025 20:55:00 -0500 (0:00:00.078) 0:00:11.973 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Monday 03 February 2025 20:55:00 -0500 (0:00:00.073) 0:00:12.047 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Monday 03 February 2025 20:55:00 -0500 (0:00:00.079) 0:00:12.126 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Monday 03 February 2025 20:55:00 -0500 (0:00:00.075) 0:00:12.202 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Monday 03 February 2025 20:55:00 -0500 (0:00:00.083) 0:00:12.286 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Monday 03 February 2025 20:55:00 -0500 (0:00:00.086) 0:00:12.373 ******* 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.047092", "end": "2025-02-03 20:55:01.161325", "rc": 0, "start": "2025-02-03 20:55:01.114233" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Monday 03 February 2025 20:55:01 -0500 (0:00:00.723) 0:00:13.096 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Monday 03 February 2025 20:55:01 -0500 (0:00:00.080) 0:00:13.176 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738634095.1623037, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "3def9a43a4af1e6bb28895a937c8a132f7969f4b", "ctime": 1738634095.1473036, "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": 1738634095.1473036, "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": "18446744072731411195", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Monday 03 February 2025 20:55:01 -0500 (0:00:00.533) 0:00:13.710 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738634095.1463037, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738634095.1463037, "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": 1738634095.1463037, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "18446744072731411192", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Monday 03 February 2025 20:55:02 -0500 (0:00:00.389) 0:00:14.099 ******* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1738634095.1893039, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1738634095.1893039, "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": 1738634095.1893039, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "18446744072731411203", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:51 Monday 03 February 2025 20:55:02 -0500 (0:00:00.433) 0:00:14.532 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:58 Monday 03 February 2025 20:55:02 -0500 (0:00:00.100) 0:00:14.633 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get pre/post-scripts files] ********************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Monday 03 February 2025 20:55:02 -0500 (0:00:00.077) 0:00:14.710 ******* ok: [managed-node3] => { "changed": false, "examined": 2, "files": [ { "atime": 1738634095.1443036, "ctime": 1738634095.009303, "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": 1738634095.009303, "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": 1738634095.1873038, "ctime": 1738634095.009303, "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": 1738634095.009303, "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-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:74 Monday 03 February 2025 20:55:03 -0500 (0:00:00.715) 0:00:15.426 ******* included: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 included: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 TASK [Get file] **************************************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 03 February 2025 20:55:03 -0500 (0:00:00.089) 0:00:15.515 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 03 February 2025 20:55:04 -0500 (0:00:00.688) 0:00:16.204 ******* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get file] **************************************************************** task path: /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Monday 03 February 2025 20:55:04 -0500 (0:00:00.111) 0:00:16.316 ******* 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-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Monday 03 February 2025 20:55:04 -0500 (0:00:00.348) 0:00:16.664 ******* 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 03 February 2025 20:55:04 -0500 (0:00:00.103) 0:00:16.767 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.70s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.08s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.02s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Gathering Facts --------------------------------------------------------- 0.87s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.80s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure python3 is installed --------------------------------------------- 0.76s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Retrieve auto-renew flag ------------------------------------------------ 0.72s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Get pre/post-scripts files ---------------------------------------------- 0.72s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Get file ---------------------------------------------------------------- 0.69s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.65s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Retrieve certificate file stats ----------------------------------------- 0.64s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Parse certificate ------------------------------------------------------- 0.59s /tmp/collections-NtY/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.58s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.57s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Get certificate timestamp ----------------------------------------------- 0.53s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Retrieve key file stats ------------------------------------------------- 0.52s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.46s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Get post-run file timestamp --------------------------------------------- 0.43s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Get pre-run file timestamp ---------------------------------------------- 0.39s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Get file ---------------------------------------------------------------- 0.35s /tmp/collections-NtY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3