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_subject.yml **************************************************** 2 plays in /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 Saturday 14 December 2024 07:29:11 -0500 (0:00:00.043) 0:00:00.043 ***** ok: [managed-node1] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 14 December 2024 07:29:12 -0500 (0:00:01.198) 0:00:01.242 ***** included: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 14 December 2024 07:29:12 -0500 (0:00:00.040) 0:00:01.282 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 14 December 2024 07:29:12 -0500 (0:00:00.060) 0:00:01.342 ***** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.562) 0:00:01.905 ***** ok: [managed-node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.094) 0:00:02.000 ***** skipping: [managed-node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node1] => (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-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed-node1] => (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-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 14 December 2024 07:29:13 -0500 (0:00:00.152) 0:00:02.152 ***** ok: [managed-node1] => { "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-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 14 December 2024 07:29:15 -0500 (0:00:02.024) 0:00:04.177 ***** ok: [managed-node1] => (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-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.639) 0:00:04.816 ***** ok: [managed-node1] => (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-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 14 December 2024 07:29:16 -0500 (0:00:00.515) 0:00:05.331 ***** ok: [managed-node1] => (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-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.403) 0:00:05.734 ***** ok: [managed-node1] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-12-14 07:27:53 EST", "ActiveEnterTimestampMonotonic": "252197446", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.service syslog.target systemd-journald.socket system.slice network.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-12-14 07:27:53 EST", "AssertTimestampMonotonic": "252169350", "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": "Sat 2024-12-14 07:27:53 EST", "ConditionTimestampMonotonic": "252169349", "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": "9689", "ExecMainStartTimestamp": "Sat 2024-12-14 07:27:53 EST", "ExecMainStartTimestampMonotonic": "252170071", "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 2024-12-14 07:27:53 EST] ; stop_time=[n/a] ; pid=9689 ; 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 2024-12-14 07:27:53 EST", "InactiveExitTimestampMonotonic": "252170101", "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": "9689", "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": "Sat 2024-12-14 07:27:53 EST", "WatchdogTimestampMonotonic": "252197411", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 14 December 2024 07:29:17 -0500 (0:00:00.810) 0:00:06.545 ***** changed: [managed-node1] => (item={u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 14 December 2024 07:29:18 -0500 (0:00:01.011) 0:00:07.556 ***** skipping: [managed-node1] => (item=[u'cert', {u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=[u'key', {u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=[u'ca', {u'name': u'mycert_subject', u'locality': u'Raleigh', u'country': u'US', u'ca': u'self-sign', u'state': u'NC', u'organizational_unit': u'Linux', u'dns': u'www.example.com', u'common_name': u'Some other common name', u'organization': u'Red Hat'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "common_name": "Some other common name", "country": "US", "dns": "www.example.com", "locality": "Raleigh", "name": "mycert_subject", "organization": "Red Hat", "organizational_unit": "Linux", "state": "NC" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 14 December 2024 07:29:18 -0500 (0:00:00.059) 0:00:07.616 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.041) 0:00:07.658 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.044) 0:00:07.702 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.048) 0:00:07.751 ***** ok: [managed-node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.518) 0:00:08.269 ***** included: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed-node1 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.071) 0:00:08.340 ***** ok: [managed-node1] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.020) 0:00:08.361 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.042) 0:00:08.404 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 December 2024 07:29:19 -0500 (0:00:00.042) 0:00:08.446 ***** ok: [managed-node1] => { "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-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.546) 0:00:08.993 ***** skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.041) 0:00:09.034 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1734179358.749041, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f7bd7adb414a4336d1bca808f1813e0cb284e697", "ctime": 1734179358.7460413, "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": "text/plain", "mode": "0600", "mtime": 1734179358.7460413, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1411, "uid": 0, "version": "1986480794", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.311) 0:00:09.346 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.049) 0:00:09.395 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.053) 0:00:09.449 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 December 2024 07:29:20 -0500 (0:00:00.048) 0:00:09.497 ***** ok: [managed-node1] => { "changed": false, "stat": { "atime": 1734179358.7050412, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7c08fbb03ded8d277ee8b07990bb9a93ec821452", "ctime": 1734179358.7450411, "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": 1734179358.7450411, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1986480781", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.311) 0:00:09.809 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.048) 0:00:09.857 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.053) 0:00:09.911 ***** ok: [managed-node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "40:0E:FB:AE:7D:50:B6:DD:0F:45:15:FE:06:52:78:9E:B7:BD:FD:40" }, "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": "14:5B:67:C9:E8:73:8A:44:F0:9B:A2:C7:CF:1D:CA:44:6C:E8:1A:F5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "42:38:01:D5:A9:85:91:06:C0:1E:4F:4E:28:DE:04:0F:DF:B0:DA:30:93:C8:CA:94:1E:A4:40:01:2C:7B:D5:AE:C0:51:F0:13:D1:4B:5A:26:DA:B7:B7:B1:98:A4:EC:42:00:34:9B:93:27:9C:C2:8C:EB:BF:29:86:B0:54:D9:34:2E:D5:98:39:3E:8E:1B:B0:15:AF:5C:FB:00:8F:C6:5C:88:4E:E3:53:39:23:B6:63:76:D7:42:07:F7:37:3A:58:DC:E5:08:E9:A9:4F:1C:5A:F6:3B:07:40:62:B6:EA:28:18:D1:1C:26:6F:1A:9E:C1:69:20:AF:9D:64:0F:9A:23:93:0D:93:F8:9C:00:3E:FA:50:81:00:1C:CF:12:C0:F1:4C:BE:38:75:C6:62:33:2C:63:9D:DD:E2:D1:55:BA:0A:96:2E:0D:E5:FB:33:16:C2:24:47:47:81:DF:50:C6:59:B7:DE:F0:E3:17:9F:08:17:CC:86:4C:14:6B:88:C0:04:E4:2B:9E:8C:9D:9F:39:0A:51:3E:C5:B6:2E:DE:08:57:7C:62:44:FB:A1:2D:AB:45:6D:57:5A:0F:E0:BB:C7:44:38:0E:87:66:38:52:70:C4:D1:72:EA:B7:8C:3E:7B:33:18:01:2D:E7:45:4D:5D:0F:30:71:34:8B:8B:51:D2:D4" }, "subject": [ { "name": "localityName", "oid": "2.5.4.7", "value": "Raleigh" }, { "name": "countryName", "oid": "2.5.4.6", "value": "US" }, { "name": "stateOrProvinceName", "oid": "2.5.4.8", "value": "NC" }, { "name": "commonName", "oid": "2.5.4.3", "value": "Some other common name" }, { "name": "organizationName", "oid": "2.5.4.10", "value": "Red Hat" }, { "name": "organizationalUnitName", "oid": "2.5.4.11", "value": "Linux" } ], "validity": { "not_valid_after": "20251214122754Z", "not_valid_before": "20241214122918Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.506) 0:00:10.417 ***** ok: [managed-node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "40:0E:FB:AE:7D:50:B6:DD:0F:45:15:FE:06:52:78:9E:B7:BD:FD:40" }, "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": "14:5B:67:C9:E8:73:8A:44:F0:9B:A2:C7:CF:1D:CA:44:6C:E8:1A:F5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "42:38:01:D5:A9:85:91:06:C0:1E:4F:4E:28:DE:04:0F:DF:B0:DA:30:93:C8:CA:94:1E:A4:40:01:2C:7B:D5:AE:C0:51:F0:13:D1:4B:5A:26:DA:B7:B7:B1:98:A4:EC:42:00:34:9B:93:27:9C:C2:8C:EB:BF:29:86:B0:54:D9:34:2E:D5:98:39:3E:8E:1B:B0:15:AF:5C:FB:00:8F:C6:5C:88:4E:E3:53:39:23:B6:63:76:D7:42:07:F7:37:3A:58:DC:E5:08:E9:A9:4F:1C:5A:F6:3B:07:40:62:B6:EA:28:18:D1:1C:26:6F:1A:9E:C1:69:20:AF:9D:64:0F:9A:23:93:0D:93:F8:9C:00:3E:FA:50:81:00:1C:CF:12:C0:F1:4C:BE:38:75:C6:62:33:2C:63:9D:DD:E2:D1:55:BA:0A:96:2E:0D:E5:FB:33:16:C2:24:47:47:81:DF:50:C6:59:B7:DE:F0:E3:17:9F:08:17:CC:86:4C:14:6B:88:C0:04:E4:2B:9E:8C:9D:9F:39:0A:51:3E:C5:B6:2E:DE:08:57:7C:62:44:FB:A1:2D:AB:45:6D:57:5A:0F:E0:BB:C7:44:38:0E:87:66:38:52:70:C4:D1:72:EA:B7:8C:3E:7B:33:18:01:2D:E7:45:4D:5D:0F:30:71:34:8B:8B:51:D2:D4" }, "subject": [ { "name": "localityName", "oid": "2.5.4.7", "value": "Raleigh" }, { "name": "countryName", "oid": "2.5.4.6", "value": "US" }, { "name": "stateOrProvinceName", "oid": "2.5.4.8", "value": "NC" }, { "name": "commonName", "oid": "2.5.4.3", "value": "Some other common name" }, { "name": "organizationName", "oid": "2.5.4.10", "value": "Red Hat" }, { "name": "organizationalUnitName", "oid": "2.5.4.11", "value": "Linux" } ], "validity": { "not_valid_after": "20251214122754Z", "not_valid_before": "20241214122918Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.048) 0:00:10.466 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.050) 0:00:10.517 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.048) 0:00:10.565 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 December 2024 07:29:21 -0500 (0:00:00.047) 0:00:10.613 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 December 2024 07:29:22 -0500 (0:00:00.052) 0:00:10.665 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 December 2024 07:29:22 -0500 (0:00:00.053) 0:00:10.719 ***** ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.049100", "end": "2024-12-14 07:29:22.537164", "rc": 0, "start": "2024-12-14 07:29:22.488064" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 December 2024 07:29:22 -0500 (0:00:00.486) 0:00:11.206 ***** ok: [managed-node1] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node1 : ok=31 changed=1 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Saturday 14 December 2024 07:29:22 -0500 (0:00:00.044) 0:00:11.250 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 2.02s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.20s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.01s /tmp/collections-qjY/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-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.64s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.56s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Ensure python3 is installed --------------------------------------------- 0.55s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.52s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:19 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.52s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Parse certificate ------------------------------------------------------- 0.51s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Retrieve auto-renew flag ------------------------------------------------ 0.49s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.40s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.31s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.31s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.15s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 fedora.linux_system_roles.certificate : Set flag to indicate system is ostree --- 0.09s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Verify each certificate ------------------------------------------------- 0.07s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_subject.yml:48 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.06s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.06s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Verify key file owner and group ----------------------------------------- 0.05s /tmp/collections-qjY/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76