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 'jsonl', 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-Lep/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-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 Saturday 07 June 2025 08:30:34 -0400 (0:00:00.027) 0:00:00.027 ********* ok: [managed-node3] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 07 June 2025 08:30:35 -0400 (0:00:00.888) 0:00:00.916 ********* included: /tmp/collections-Lep/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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 07 June 2025 08:30:35 -0400 (0:00:00.029) 0:00:00.945 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 07 June 2025 08:30:35 -0400 (0:00:00.043) 0:00:00.988 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 07 June 2025 08:30:36 -0400 (0:00:00.490) 0:00:01.479 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 07 June 2025 08:30:36 -0400 (0:00:00.056) 0:00:01.535 ********* 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-Lep/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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 07 June 2025 08:30:36 -0400 (0:00:00.108) 0:00:01.644 ********* 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" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 07 June 2025 08:30:38 -0400 (0:00:01.664) 0:00:03.308 ********* 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" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 07 June 2025 08:30:38 -0400 (0:00:00.570) 0:00:03.879 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 07 June 2025 08:30:39 -0400 (0:00:00.425) 0:00:04.304 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 07 June 2025 08:30:39 -0400 (0:00:00.380) 0:00:04.685 ********* ok: [managed-node3] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2025-06-07 08:29:24 EDT", "ActiveEnterTimestampMonotonic": "195811556", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target systemd-journald.socket network.target system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2025-06-07 08:29:24 EDT", "AssertTimestampMonotonic": "195782831", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2025-06-07 08:29:24 EDT", "ConditionTimestampMonotonic": "195782829", "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": "10027", "ExecMainStartTimestamp": "Sat 2025-06-07 08:29:24 EDT", "ExecMainStartTimestampMonotonic": "195783473", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2025-06-07 08:29:24 EDT] ; stop_time=[n/a] ; pid=10027 ; 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": "Sat 2025-06-07 08:29:24 EDT", "InactiveExitTimestampMonotonic": "195783507", "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": "29173", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "29173", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "10027", "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": "Sat 2025-06-07 08:29:24 EDT", "WatchdogTimestampMonotonic": "195811512", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 07 June 2025 08:30:40 -0400 (0:00:00.806) 0:00:05.491 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.808) 0:00:06.299 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.092) 0:00:06.392 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.053) 0:00:06.446 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.052) 0:00:06.499 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.052) 0:00:06.552 ********* ok: [managed-node3] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:31 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.561) 0:00:07.113 ********* included: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node3 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.096) 0:00:07.210 ********* ok: [managed-node3] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 07 June 2025 08:30:41 -0400 (0:00:00.025) 0:00:07.236 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 07 June 2025 08:30:42 -0400 (0:00:00.055) 0:00:07.291 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 07 June 2025 08:30:42 -0400 (0:00:00.043) 0:00:07.335 ********* 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" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 07 June 2025 08:30:42 -0400 (0:00:00.566) 0:00:07.901 ********* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 07 June 2025 08:30:42 -0400 (0:00:00.041) 0:00:07.942 ********* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1749299440.895068, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b8b21bc9a0159cb75dbfce77787c55a319ccf3f8", "ctime": 1749299440.891068, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172754, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1749299440.891068, "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": "409507308", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 07 June 2025 08:30:42 -0400 (0:00:00.316) 0:00:08.259 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 07 June 2025 08:30:43 -0400 (0:00:00.047) 0:00:08.307 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 07 June 2025 08:30:43 -0400 (0:00:00.051) 0:00:08.359 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 07 June 2025 08:30:43 -0400 (0:00:00.052) 0:00:08.411 ********* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1749299440.846068, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6c389c9dcb182bd1172c834f66292a7dc12eb838", "ctime": 1749299440.891068, "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": 1749299440.891068, "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": "409507293", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 07 June 2025 08:30:43 -0400 (0:00:00.373) 0:00:08.785 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 07 June 2025 08:30:43 -0400 (0:00:00.048) 0:00:08.833 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 07 June 2025 08:30:43 -0400 (0:00:00.056) 0:00:08.889 ********* ok: [managed-node3] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "53:6B:C1:DE:C4:AC:64:CC:4E:3C:8A:49:A5:D6:7C:21:4F:16:92:DB" }, "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": "34:33:02:48:6D:FA:EB:B6:2E:8C:8A:57:02:51:36:6C:4F:1C:EB:F9" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "BB:24:2E:E5:E2:85:B0:9A:31:62:43:8A:EB:40:CA:8E:3B:4C:64:7E:4E:95:07:4B:B7:C2:8E:DD:03:04:11:2B:0A:B2:B1:0E:8D:08:35:C5:C2:3A:78:58:36:78:F0:11:28:86:6E:05:83:DA:89:76:24:89:70:CE:59:27:3D:EC:FE:A3:F0:96:92:C5:C5:77:10:78:97:53:B1:B2:AD:D9:9B:D1:83:1D:95:80:A8:0B:68:DD:9E:7E:C8:35:48:CB:DF:12:E9:05:86:E1:1C:FC:37:AA:38:99:82:E4:20:23:F2:79:C8:94:C0:84:E8:8A:85:E7:7D:3D:7D:73:3D:F7:B8:52:9E:96:3E:7F:49:82:1B:F1:07:60:54:F9:92:9B:A1:8A:61:16:44:C2:4A:95:04:FF:27:82:92:02:C3:25:07:A2:7E:5F:FB:A8:60:55:9A:C5:D6:67:2B:A0:27:AF:4A:2E:55:37:61:46:77:F9:8B:07:9E:5E:5D:21:F8:07:D0:E6:BE:CC:39:92:27:4A:31:06:80:F9:BB:E4:2B:13:08:64:80:A3:AB:1E:3E:7B:34:E1:02:6D:8D:C3:7F:D9:6C:0F:E5:7C:24:66:9B:5F:D3:2C:FC:B8:56:57:F1:14:D0:99:37:EF:E9:14:EB:BE:A9:FA:78:90:C9:5B:62:AF" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260607122924Z", "not_valid_before": "20250607123040Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 07 June 2025 08:30:44 -0400 (0:00:00.528) 0:00:09.418 ********* ok: [managed-node3] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "53:6B:C1:DE:C4:AC:64:CC:4E:3C:8A:49:A5:D6:7C:21:4F:16:92:DB" }, "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": "34:33:02:48:6D:FA:EB:B6:2E:8C:8A:57:02:51:36:6C:4F:1C:EB:F9" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "BB:24:2E:E5:E2:85:B0:9A:31:62:43:8A:EB:40:CA:8E:3B:4C:64:7E:4E:95:07:4B:B7:C2:8E:DD:03:04:11:2B:0A:B2:B1:0E:8D:08:35:C5:C2:3A:78:58:36:78:F0:11:28:86:6E:05:83:DA:89:76:24:89:70:CE:59:27:3D:EC:FE:A3:F0:96:92:C5:C5:77:10:78:97:53:B1:B2:AD:D9:9B:D1:83:1D:95:80:A8:0B:68:DD:9E:7E:C8:35:48:CB:DF:12:E9:05:86:E1:1C:FC:37:AA:38:99:82:E4:20:23:F2:79:C8:94:C0:84:E8:8A:85:E7:7D:3D:7D:73:3D:F7:B8:52:9E:96:3E:7F:49:82:1B:F1:07:60:54:F9:92:9B:A1:8A:61:16:44:C2:4A:95:04:FF:27:82:92:02:C3:25:07:A2:7E:5F:FB:A8:60:55:9A:C5:D6:67:2B:A0:27:AF:4A:2E:55:37:61:46:77:F9:8B:07:9E:5E:5D:21:F8:07:D0:E6:BE:CC:39:92:27:4A:31:06:80:F9:BB:E4:2B:13:08:64:80:A3:AB:1E:3E:7B:34:E1:02:6D:8D:C3:7F:D9:6C:0F:E5:7C:24:66:9B:5F:D3:2C:FC:B8:56:57:F1:14:D0:99:37:EF:E9:14:EB:BE:A9:FA:78:90:C9:5B:62:AF" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20260607122924Z", "not_valid_before": "20250607123040Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 07 June 2025 08:30:44 -0400 (0:00:00.047) 0:00:09.466 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 07 June 2025 08:30:44 -0400 (0:00:00.072) 0:00:09.538 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 07 June 2025 08:30:44 -0400 (0:00:00.071) 0:00:09.609 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 07 June 2025 08:30:44 -0400 (0:00:00.061) 0:00:09.671 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 07 June 2025 08:30:44 -0400 (0:00:00.062) 0:00:09.733 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 07 June 2025 08:30:44 -0400 (0:00:00.060) 0:00:09.794 ********* 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.046850", "end": "2025-06-07 08:30:44.993143", "rc": 0, "start": "2025-06-07 08:30:44.946293" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 07 June 2025 08:30:45 -0400 (0:00:00.541) 0:00:10.335 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Saturday 07 June 2025 08:30:45 -0400 (0:00:00.063) 0:00:10.399 ********* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1749299440.895068, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b8b21bc9a0159cb75dbfce77787c55a319ccf3f8", "ctime": 1749299440.891068, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172754, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1749299440.891068, "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": "409507308", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Saturday 07 June 2025 08:30:45 -0400 (0:00:00.345) 0:00:10.745 ********* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1749299440.8890681, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1749299440.8890681, "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": 1749299440.8890681, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "409507305", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47 Saturday 07 June 2025 08:30:45 -0400 (0:00:00.318) 0:00:11.064 ********* ok: [managed-node3] => { "changed": false, "stat": { "atime": 1749299440.922068, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1749299440.922068, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172755, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0600", "mtime": 1749299440.922068, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "409507316", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:51 Saturday 07 June 2025 08:30:46 -0400 (0:00:00.289) 0:00:11.354 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:58 Saturday 07 June 2025 08:30:46 -0400 (0:00:00.048) 0:00:11.402 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get pre/post-scripts files] ********************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 Saturday 07 June 2025 08:30:46 -0400 (0:00:00.047) 0:00:11.450 ********* ok: [managed-node3] => { "changed": false, "examined": 2, "files": [ { "atime": 1749299440.887068, "ctime": 1749299440.7830677, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 263341, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0770", "mtime": 1749299440.7830677, "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": 1749299440.920068, "ctime": 1749299440.7830677, "dev": 51713, "gid": 0, "gr_name": "root", "inode": 263342, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mode": "0770", "mtime": 1749299440.7830677, "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-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:74 Saturday 07 June 2025 08:30:46 -0400 (0:00:00.444) 0:00:11.895 ********* included: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 included: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml for managed-node3 TASK [Get file] **************************************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Saturday 07 June 2025 08:30:46 -0400 (0:00:00.088) 0:00:11.984 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Saturday 07 June 2025 08:30:47 -0400 (0:00:00.466) 0:00:12.450 ********* ok: [managed-node3] => { "changed": false } MSG: All assertions passed TASK [Get file] **************************************************************** task path: /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Saturday 07 June 2025 08:30:47 -0400 (0:00:00.073) 0:00:12.524 ********* 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-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:8 Saturday 07 June 2025 08:30:47 -0400 (0:00:00.345) 0:00:12.869 ********* 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 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 07 June 2025 08:30:47 -0400 (0:00:00.070) 0:00:12.939 ********* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.66s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 0.89s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 0.81s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.81s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.57s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.57s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.56s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:17 Retrieve auto-renew flag ------------------------------------------------ 0.54s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Parse certificate ------------------------------------------------------- 0.53s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.49s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Get file ---------------------------------------------------------------- 0.47s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Get pre/post-scripts files ---------------------------------------------- 0.44s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:66 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.43s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.38s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve key file stats ------------------------------------------------- 0.37s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Get certificate timestamp ----------------------------------------------- 0.35s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:39 Get file ---------------------------------------------------------------- 0.35s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/check_header.yml:3 Get pre-run file timestamp ---------------------------------------------- 0.32s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:43 Retrieve certificate file stats ----------------------------------------- 0.32s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Get post-run file timestamp --------------------------------------------- 0.29s /tmp/collections-Lep/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_run_hooks.yml:47