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_fs_attrs.yml *************************************************** 5 plays in /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 07 September 2024 08:24:45 -0400 (0:00:00.044) 0:00:00.044 **** ok: [managed_node2] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 07 September 2024 08:24:46 -0400 (0:00:01.427) 0:00:01.471 **** changed: [managed_node2] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 07 September 2024 08:24:47 -0400 (0:00:01.328) 0:00:02.799 **** changed: [managed_node2] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 07 September 2024 08:24:48 -0400 (0:00:00.535) 0:00:03.335 **** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 07 September 2024 08:24:49 -0400 (0:00:00.615) 0:00:03.950 **** included: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 07 September 2024 08:24:49 -0400 (0:00:00.058) 0:00:04.009 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 07 September 2024 08:24:49 -0400 (0:00:00.077) 0:00:04.087 **** ok: [managed_node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 07 September 2024 08:24:49 -0400 (0:00:00.516) 0:00:04.603 **** ok: [managed_node2] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 07 September 2024 08:24:49 -0400 (0:00:00.053) 0:00:04.656 **** skipping: [managed_node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed_node2] => (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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed_node2] => (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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 07 September 2024 08:24:49 -0400 (0:00:00.088) 0:00:04.745 **** changed: [managed_node2] => { "changed": true, "changes": { "installed": [ "python-pyasn1", "python-cryptography" ] }, "rc": 0, "results": [ "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed", "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * epel: dl.fedoraproject.org\n * epel-debuginfo: dl.fedoraproject.org\n * epel-source: dl.fedoraproject.org\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 base 502 k\n python2-pyasn1 noarch 0.1.9-7.el7 base 100 k\nInstalling for dependencies:\n python-cffi x86_64 1.6.0-5.el7 base 218 k\n python-enum34 noarch 1.0.4-1.el7 base 52 k\n python-idna noarch 2.4-1.el7 base 94 k\n python-ply noarch 3.4-11.el7 base 123 k\n python-pycparser noarch 2.14-1.el7 base 104 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+5 Dependent packages)\n\nTotal download size: 1.2 M\nInstalled size: 6.1 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 4.0 MB/s | 1.2 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/7 \n Installing : python-enum34-1.0.4-1.el7.noarch 2/7 \n Installing : python-ply-3.4-11.el7.noarch 3/7 \n Installing : python-pycparser-2.14-1.el7.noarch 4/7 \n Installing : python-cffi-1.6.0-5.el7.x86_64 5/7 \n Installing : python-idna-2.4-1.el7.noarch 6/7 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n Verifying : python-idna-2.4-1.el7.noarch 1/7 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/7 \n Verifying : python-ply-3.4-11.el7.noarch 3/7 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/7 \n Verifying : python-enum34-1.0.4-1.el7.noarch 5/7 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 6/7 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-enum34.noarch 0:1.0.4-1.el7 \n python-idna.noarch 0:2.4-1.el7 python-ply.noarch 0:3.4-11.el7 \n python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 07 September 2024 08:25:02 -0400 (0:00:12.728) 0:00:17.473 **** changed: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "changes": { "installed": [ "certmonger" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * epel: d2lzkl7pfhq30w.cloudfront.net\n * epel-debuginfo: d2lzkl7pfhq30w.cloudfront.net\n * epel-source: d2lzkl7pfhq30w.cloudfront.net\nResolving Dependencies\n--> Running transaction check\n---> Package certmonger.x86_64 0:0.78.4-17.el7_9 will be installed\n--> Processing Dependency: psmisc for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_util.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_client.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Running transaction check\n---> Package libtalloc.x86_64 0:2.1.16-1.el7 will be installed\n---> Package libtevent.x86_64 0:0.9.39-1.el7 will be installed\n---> Package psmisc.x86_64 0:22.20-17.el7 will be installed\n---> Package xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n---> Package xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n certmonger x86_64 0.78.4-17.el7_9 updates 608 k\nInstalling for dependencies:\n libtalloc x86_64 2.1.16-1.el7 base 33 k\n libtevent x86_64 0.9.39-1.el7 base 41 k\n psmisc x86_64 22.20-17.el7 base 141 k\n xmlrpc-c x86_64 1.32.5-1905.svn2451.el7 base 130 k\n xmlrpc-c-client x86_64 1.32.5-1905.svn2451.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+5 Dependent packages)\n\nTotal download size: 984 k\nInstalled size: 3.7 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 2.6 MB/s | 984 kB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 1/6 \n Installing : libtalloc-2.1.16-1.el7.x86_64 2/6 \n Installing : libtevent-0.9.39-1.el7.x86_64 3/6 \n Installing : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 4/6 \n Installing : psmisc-22.20-17.el7.x86_64 5/6 \n Installing : certmonger-0.78.4-17.el7_9.x86_64 6/6 \n Verifying : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 1/6 \n Verifying : libtevent-0.9.39-1.el7.x86_64 2/6 \n Verifying : libtalloc-2.1.16-1.el7.x86_64 3/6 \n Verifying : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 4/6 \n Verifying : certmonger-0.78.4-17.el7_9.x86_64 5/6 \n Verifying : psmisc-22.20-17.el7.x86_64 6/6 \n\nInstalled:\n certmonger.x86_64 0:0.78.4-17.el7_9 \n\nDependency Installed:\n libtalloc.x86_64 0:2.1.16-1.el7 \n libtevent.x86_64 0:0.9.39-1.el7 \n psmisc.x86_64 0:22.20-17.el7 \n xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 \n xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 \n\nComplete!\n" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 07 September 2024 08:25:10 -0400 (0:00:07.422) 0:00:24.896 **** changed: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 07 September 2024 08:25:10 -0400 (0:00:00.694) 0:00:25.591 **** changed: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 07 September 2024 08:25:11 -0400 (0:00:00.496) 0:00:26.087 **** changed: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network.target basic.target syslog.target dbus.service systemd-journald.socket system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "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": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "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": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; 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", "InactiveExitTimestampMonotonic": "0", "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": "0", "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": "dead", "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": "disabled", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 07 September 2024 08:25:12 -0400 (0:00:01.329) 0:00:27.417 **** changed: [managed_node2] => (item={u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed_node2] => (item={u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 07 September 2024 08:25:14 -0400 (0:00:02.132) 0:00:29.549 **** skipping: [managed_node2] => (item=[u'cert', {u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'cert', {u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'key', {u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'key', {u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'ca', {u'owner': u'ftp', u'ca': u'self-sign', u'group': u'ftp', u'name': u'mycert_fs_attrs', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'ca', {u'owner': 1040, u'ca': u'self-sign', u'group': 1041, u'name': u'certid', u'dns': u'www.example.com'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 07 September 2024 08:25:14 -0400 (0:00:00.111) 0:00:29.661 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 07 September 2024 08:25:14 -0400 (0:00:00.071) 0:00:29.733 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 07 September 2024 08:25:14 -0400 (0:00:00.079) 0:00:29.812 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 07 September 2024 08:25:15 -0400 (0:00:00.083) 0:00:29.896 **** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 07 September 2024 08:25:15 -0400 (0:00:00.626) 0:00:30.522 **** included: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 07 September 2024 08:25:15 -0400 (0:00:00.142) 0:00:30.665 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 07 September 2024 08:25:15 -0400 (0:00:00.044) 0:00:30.709 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 07 September 2024 08:25:15 -0400 (0:00:00.074) 0:00:30.783 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 07 September 2024 08:25:16 -0400 (0:00:00.068) 0:00:30.852 **** ok: [managed_node2] => { "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-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 07 September 2024 08:25:16 -0400 (0:00:00.702) 0:00:31.555 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 07 September 2024 08:25:16 -0400 (0:00:00.097) 0:00:31.653 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711913.7340393, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6dd4e89b9a31cad4b47b73bf30f2463202f37d1e", "ctime": 1725711913.86104, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172745, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725711913.7310393, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "18446744071995868424", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 07 September 2024 08:25:17 -0400 (0:00:00.433) 0:00:32.086 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 07 September 2024 08:25:17 -0400 (0:00:00.085) 0:00:32.171 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 07 September 2024 08:25:17 -0400 (0:00:00.105) 0:00:32.277 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 07 September 2024 08:25:17 -0400 (0:00:00.096) 0:00:32.374 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711913.692039, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "20de76b580ed16c8b9f9c1de2df23bf0bedaef77", "ctime": 1725711913.86104, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172744, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725711913.7310393, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 14, "version": "18446744071995868411", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 07 September 2024 08:25:17 -0400 (0:00:00.412) 0:00:32.786 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 07 September 2024 08:25:18 -0400 (0:00:00.066) 0:00:32.853 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 07 September 2024 08:25:18 -0400 (0:00:00.093) 0:00:32.947 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "81:E4:25:89:7F:ED:76:45:A6:4C:15:A2:27:41:D3:F9:32:16:2E:8C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "D7:CD:DD:A4:EB:FC:17:42:9F:C3:B1:60:D2:65:D6:17:7F:E5:3C:46:8B:6D:6C:19:DD:C6:6A:E7:67:2A:5E:E4:CA:CD:F7:F7:09:33:9E:6D:D3:9B:2F:39:53:89:CC:3A:94:CD:9B:D4:C0:33:9E:27:A5:36:49:2C:34:AF:86:F4:3A:1D:0A:B6:0A:35:B0:96:7D:5A:F5:78:51:E8:F7:8C:7D:3E:09:59:E3:61:76:BD:47:C0:EC:1E:83:D7:D6:76:A5:9B:38:76:87:7D:43:0B:34:B8:88:75:A2:1B:0B:CB:C2:0B:7C:CD:C2:61:53:4F:FA:4A:E9:31:8D:A7:20:B2:3C:35:E0:8D:5B:F3:DE:A1:CB:A1:0A:8B:C8:CA:3E:A3:42:A2:E4:FD:07:1C:67:C5:0D:67:F1:A0:14:73:AB:F0:FF:49:E9:8D:47:8F:32:71:C5:C1:A8:AE:81:4A:BA:83:90:9F:15:8E:B8:2A:F4:5E:25:14:FB:87:B3:DC:72:ED:57:54:B3:BE:99:21:65:50:FE:CA:D3:FB:26:D9:B1:C0:62:2B:3F:8B:E5:29:06:E5:A8:C7:7E:D1:33:0E:46:F9:06:DE:61:93:1B:30:C6:28:AB:3C:47:87:2B:77:36:40:62:C0:8B:59:13:4D:4C:F2:29:DB:E8:74:2F:E7:B1:E8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122513Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 07 September 2024 08:25:18 -0400 (0:00:00.877) 0:00:33.825 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "81:E4:25:89:7F:ED:76:45:A6:4C:15:A2:27:41:D3:F9:32:16:2E:8C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "D7:CD:DD:A4:EB:FC:17:42:9F:C3:B1:60:D2:65:D6:17:7F:E5:3C:46:8B:6D:6C:19:DD:C6:6A:E7:67:2A:5E:E4:CA:CD:F7:F7:09:33:9E:6D:D3:9B:2F:39:53:89:CC:3A:94:CD:9B:D4:C0:33:9E:27:A5:36:49:2C:34:AF:86:F4:3A:1D:0A:B6:0A:35:B0:96:7D:5A:F5:78:51:E8:F7:8C:7D:3E:09:59:E3:61:76:BD:47:C0:EC:1E:83:D7:D6:76:A5:9B:38:76:87:7D:43:0B:34:B8:88:75:A2:1B:0B:CB:C2:0B:7C:CD:C2:61:53:4F:FA:4A:E9:31:8D:A7:20:B2:3C:35:E0:8D:5B:F3:DE:A1:CB:A1:0A:8B:C8:CA:3E:A3:42:A2:E4:FD:07:1C:67:C5:0D:67:F1:A0:14:73:AB:F0:FF:49:E9:8D:47:8F:32:71:C5:C1:A8:AE:81:4A:BA:83:90:9F:15:8E:B8:2A:F4:5E:25:14:FB:87:B3:DC:72:ED:57:54:B3:BE:99:21:65:50:FE:CA:D3:FB:26:D9:B1:C0:62:2B:3F:8B:E5:29:06:E5:A8:C7:7E:D1:33:0E:46:F9:06:DE:61:93:1B:30:C6:28:AB:3C:47:87:2B:77:36:40:62:C0:8B:59:13:4D:4C:F2:29:DB:E8:74:2F:E7:B1:E8" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122513Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 07 September 2024 08:25:19 -0400 (0:00:00.085) 0:00:33.910 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 07 September 2024 08:25:19 -0400 (0:00:00.089) 0:00:34.000 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 07 September 2024 08:25:19 -0400 (0:00:00.087) 0:00:34.087 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 07 September 2024 08:25:19 -0400 (0:00:00.082) 0:00:34.169 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 07 September 2024 08:25:19 -0400 (0:00:00.122) 0:00:34.292 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 07 September 2024 08:25:19 -0400 (0:00:00.088) 0:00:34.381 **** ok: [managed_node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.040020", "end": "2024-09-07 08:25:20.055889", "rc": 0, "start": "2024-09-07 08:25:20.015869" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 07 September 2024 08:25:20 -0400 (0:00:00.567) 0:00:34.949 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 07 September 2024 08:25:20 -0400 (0:00:00.087) 0:00:35.037 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 07 September 2024 08:25:20 -0400 (0:00:00.037) 0:00:35.074 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 07 September 2024 08:25:20 -0400 (0:00:00.068) 0:00:35.142 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 07 September 2024 08:25:20 -0400 (0:00:00.070) 0:00:35.213 **** ok: [managed_node2] => { "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-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 07 September 2024 08:25:21 -0400 (0:00:00.929) 0:00:36.143 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 07 September 2024 08:25:21 -0400 (0:00:00.153) 0:00:36.296 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711914.5880442, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "7a74e9ca800e1f53061e4797924b713847ae73ba", "ctime": 1725711914.6560445, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172747, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725711914.5840442, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 1040, "version": "18446744071995868462", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 07 September 2024 08:25:21 -0400 (0:00:00.526) 0:00:36.823 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 07 September 2024 08:25:22 -0400 (0:00:00.081) 0:00:36.905 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 07 September 2024 08:25:22 -0400 (0:00:00.082) 0:00:36.987 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 07 September 2024 08:25:22 -0400 (0:00:00.070) 0:00:37.057 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711914.545044, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33343e5d503cc13dc0a645391562532d28072eb8", "ctime": 1725711914.6560445, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 172746, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1725711914.5840442, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "18446744071995868449", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 07 September 2024 08:25:22 -0400 (0:00:00.387) 0:00:37.445 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 07 September 2024 08:25:22 -0400 (0:00:00.061) 0:00:37.506 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 07 September 2024 08:25:22 -0400 (0:00:00.104) 0:00:37.611 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "7F:62:BC:81:F4:61:D2:80:D0:5E:99:E9:C9:55:9F:3F:17:04:BF:B1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "81:F5:F2:1A:E0:A7:F6:5B:29:2D:FF:81:8C:1B:EF:CE:2A:A7:5E:1F:F7:86:A5:23:0C:69:E7:05:25:CA:30:32:E9:A5:18:65:C5:19:A4:69:03:DF:57:C8:91:C7:E2:F4:68:F1:C4:A7:2C:C8:A7:83:4E:FC:A5:00:03:84:4E:13:E4:9A:B7:54:8F:56:3F:6C:96:CD:C0:99:54:2C:22:EB:31:54:87:9B:AA:E8:70:D4:F0:45:05:29:E0:B8:BE:7D:BF:1D:AC:E8:8E:2B:99:EE:8F:14:03:D4:68:39:23:50:BA:86:DE:3E:FD:FD:6F:90:27:E1:8D:B5:1A:F3:BD:98:85:5D:0A:DA:CF:6A:44:CC:1B:2C:87:4B:AC:55:35:CA:E0:F6:39:0F:93:43:C6:47:85:59:61:18:CE:10:57:6B:29:31:3C:DB:16:7B:C8:CA:C1:E0:1E:2E:71:CC:3C:87:A3:5F:D1:69:01:B0:E0:BF:1E:E7:5A:27:23:8C:20:F1:6F:B4:D7:09:59:E5:E0:A7:C0:B2:DB:99:E6:8C:14:56:66:94:61:DC:89:8C:10:CC:34:C1:5F:CD:E0:DB:09:46:51:46:59:1E:17:44:00:A3:56:9F:F9:45:43:B1:1F:81:CC:D0:10:74:21:FF:C4:0E:71:53:EC:F5:7F:B4:20:45" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122514Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 07 September 2024 08:25:23 -0400 (0:00:00.554) 0:00:38.165 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "7F:62:BC:81:F4:61:D2:80:D0:5E:99:E9:C9:55:9F:3F:17:04:BF:B1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "81:F5:F2:1A:E0:A7:F6:5B:29:2D:FF:81:8C:1B:EF:CE:2A:A7:5E:1F:F7:86:A5:23:0C:69:E7:05:25:CA:30:32:E9:A5:18:65:C5:19:A4:69:03:DF:57:C8:91:C7:E2:F4:68:F1:C4:A7:2C:C8:A7:83:4E:FC:A5:00:03:84:4E:13:E4:9A:B7:54:8F:56:3F:6C:96:CD:C0:99:54:2C:22:EB:31:54:87:9B:AA:E8:70:D4:F0:45:05:29:E0:B8:BE:7D:BF:1D:AC:E8:8E:2B:99:EE:8F:14:03:D4:68:39:23:50:BA:86:DE:3E:FD:FD:6F:90:27:E1:8D:B5:1A:F3:BD:98:85:5D:0A:DA:CF:6A:44:CC:1B:2C:87:4B:AC:55:35:CA:E0:F6:39:0F:93:43:C6:47:85:59:61:18:CE:10:57:6B:29:31:3C:DB:16:7B:C8:CA:C1:E0:1E:2E:71:CC:3C:87:A3:5F:D1:69:01:B0:E0:BF:1E:E7:5A:27:23:8C:20:F1:6F:B4:D7:09:59:E5:E0:A7:C0:B2:DB:99:E6:8C:14:56:66:94:61:DC:89:8C:10:CC:34:C1:5F:CD:E0:DB:09:46:51:46:59:1E:17:44:00:A3:56:9F:F9:45:43:B1:1F:81:CC:D0:10:74:21:FF:C4:0E:71:53:EC:F5:7F:B4:20:45" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122514Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 07 September 2024 08:25:23 -0400 (0:00:00.064) 0:00:38.229 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 07 September 2024 08:25:23 -0400 (0:00:00.126) 0:00:38.356 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 07 September 2024 08:25:23 -0400 (0:00:00.085) 0:00:38.441 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 07 September 2024 08:25:23 -0400 (0:00:00.170) 0:00:38.612 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 07 September 2024 08:25:23 -0400 (0:00:00.122) 0:00:38.735 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 07 September 2024 08:25:24 -0400 (0:00:00.113) 0:00:38.848 **** ok: [managed_node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.039235", "end": "2024-09-07 08:25:24.586666", "rc": 0, "start": "2024-09-07 08:25:24.547431" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 07 September 2024 08:25:24 -0400 (0:00:00.637) 0:00:39.485 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 07 September 2024 08:25:24 -0400 (0:00:00.164) 0:00:39.650 **** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 07 September 2024 08:25:25 -0400 (0:00:00.636) 0:00:40.287 **** included: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node2 TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 07 September 2024 08:25:25 -0400 (0:00:00.053) 0:00:40.340 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Check if system is ostree] ******* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 07 September 2024 08:25:25 -0400 (0:00:00.077) 0:00:40.417 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set flag to indicate system is ostree] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 07 September 2024 08:25:25 -0400 (0:00:00.070) 0:00:40.488 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 07 September 2024 08:25:25 -0400 (0:00:00.059) 0:00:40.547 **** skipping: [managed_node2] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed_node2] => (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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed_node2] => (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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 07 September 2024 08:25:25 -0400 (0:00:00.108) 0:00:40.655 **** ok: [managed_node2] => { "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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 07 September 2024 08:25:27 -0400 (0:00:01.421) 0:00:42.077 **** ok: [managed_node2] => (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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 07 September 2024 08:25:27 -0400 (0:00:00.623) 0:00:42.701 **** ok: [managed_node2] => (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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 07 September 2024 08:25:28 -0400 (0:00:00.414) 0:00:43.115 **** ok: [managed_node2] => (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-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 07 September 2024 08:25:28 -0400 (0:00:00.524) 0:00:43.640 **** ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-09-07 08:25:12 EDT", "ActiveEnterTimestampMonotonic": "234715444", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target network.target basic.target system.slice systemd-journald.socket dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-07 08:25:12 EDT", "AssertTimestampMonotonic": "234688401", "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-09-07 08:25:12 EDT", "ConditionTimestampMonotonic": "234688400", "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": "9800", "ExecMainStartTimestamp": "Sat 2024-09-07 08:25:12 EDT", "ExecMainStartTimestampMonotonic": "234688988", "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-09-07 08:25:12 EDT] ; stop_time=[n/a] ; pid=9800 ; 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-09-07 08:25:12 EDT", "InactiveExitTimestampMonotonic": "234689037", "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": "9800", "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 2024-09-07 08:25:12 EDT", "WatchdogTimestampMonotonic": "234715413", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 07 September 2024 08:25:29 -0400 (0:00:00.591) 0:00:44.232 **** changed: [managed_node2] => (item={u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [managed_node2] => (item={u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 07 September 2024 08:25:31 -0400 (0:00:01.927) 0:00:46.159 **** skipping: [managed_node2] => (item=[u'cert', {u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'cert', {u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'key', {u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'key', {u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'ca', {u'group': u'ftp', u'name': u'mycert_fs_attrs_mode', u'dns': u'www.example.com', u'owner': u'ftp', u'ca': u'self-sign', u'mode': u'0620'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'ca', {u'ca': u'self-sign', u'name': u'certid_mode', u'dns': u'www.example.com', u'mode': u'0600'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 07 September 2024 08:25:31 -0400 (0:00:00.164) 0:00:46.323 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 07 September 2024 08:25:31 -0400 (0:00:00.151) 0:00:46.475 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 07 September 2024 08:25:31 -0400 (0:00:00.123) 0:00:46.599 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 07 September 2024 08:25:31 -0400 (0:00:00.097) 0:00:46.696 **** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 07 September 2024 08:25:32 -0400 (0:00:00.699) 0:00:47.396 **** included: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 07 September 2024 08:25:32 -0400 (0:00:00.320) 0:00:47.717 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 07 September 2024 08:25:32 -0400 (0:00:00.039) 0:00:47.756 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 07 September 2024 08:25:33 -0400 (0:00:00.075) 0:00:47.832 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 07 September 2024 08:25:33 -0400 (0:00:00.070) 0:00:47.903 **** ok: [managed_node2] => { "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-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 07 September 2024 08:25:33 -0400 (0:00:00.594) 0:00:48.497 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 07 September 2024 08:25:33 -0400 (0:00:00.061) 0:00:48.558 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711930.1241312, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "48556f55f31af802bed35d47301ab97ad6637f3f", "ctime": 1725711930.1761315, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172749, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1725711930.1211312, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs_mode.crt", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "18446744071995868587", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 07 September 2024 08:25:34 -0400 (0:00:00.436) 0:00:48.995 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 07 September 2024 08:25:34 -0400 (0:00:00.096) 0:00:49.092 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 07 September 2024 08:25:34 -0400 (0:00:00.164) 0:00:49.257 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 07 September 2024 08:25:34 -0400 (0:00:00.113) 0:00:49.370 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711930.0831308, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8bbadd277710fe1f4c59623f26233e48f5bc9067", "ctime": 1725711930.1761315, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 172748, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1725711930.1211312, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "18446744071995868574", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 07 September 2024 08:25:34 -0400 (0:00:00.443) 0:00:49.814 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.068) 0:00:49.882 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.082) 0:00:49.964 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "2E:16:F5:B4:5E:A9:AD:07:2D:8C:F5:AF:6D:39:7C:8F:19:BB:04:84" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6A:B1:0D:2B:49:B1:41:B2:7F:B0:D1:5F:C7:56:AA:3E:7A:85:B7:86:61:C6:F0:F7:2C:A6:49:BF:5B:3B:15:13:85:9B:CC:BF:79:6A:D1:4B:90:59:D6:F2:41:A3:90:94:9B:FD:AC:79:54:BA:D7:B3:B8:EE:45:50:8A:F7:36:34:6C:EB:0B:4D:5E:13:2B:59:B5:C5:FD:A9:7D:FC:02:30:DC:3D:D5:19:CA:45:E4:31:3A:62:83:7C:42:BB:2B:BA:CD:81:9F:14:98:51:2E:3A:07:EA:EB:E7:19:71:BC:23:86:DA:43:52:58:40:D8:20:CF:2C:50:DE:D1:44:1F:72:D4:32:3B:6F:5B:26:9D:B4:FF:5F:80:6B:81:86:AB:64:9F:2D:AA:F2:44:D8:E9:DA:1A:84:84:6F:35:ED:8A:96:71:17:E6:15:89:3C:79:8D:4F:EC:8D:FD:C1:B3:5A:18:02:66:43:95:E6:39:0B:2D:00:FC:56:82:26:83:D6:DA:14:1D:DF:DE:76:C5:5E:72:CA:74:3D:D7:50:28:63:27:D4:0B:EF:77:FB:BE:FF:6E:14:54:7B:C5:81:8C:07:32:16:00:93:1F:E8:1F:4F:0A:6F:32:02:80:F8:F5:FB:AA:F2:E6:B6:0F:44:84:22:90:D5:6E:F7:46:63:F6:1C:71" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122530Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.441) 0:00:50.406 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "2E:16:F5:B4:5E:A9:AD:07:2D:8C:F5:AF:6D:39:7C:8F:19:BB:04:84" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "6A:B1:0D:2B:49:B1:41:B2:7F:B0:D1:5F:C7:56:AA:3E:7A:85:B7:86:61:C6:F0:F7:2C:A6:49:BF:5B:3B:15:13:85:9B:CC:BF:79:6A:D1:4B:90:59:D6:F2:41:A3:90:94:9B:FD:AC:79:54:BA:D7:B3:B8:EE:45:50:8A:F7:36:34:6C:EB:0B:4D:5E:13:2B:59:B5:C5:FD:A9:7D:FC:02:30:DC:3D:D5:19:CA:45:E4:31:3A:62:83:7C:42:BB:2B:BA:CD:81:9F:14:98:51:2E:3A:07:EA:EB:E7:19:71:BC:23:86:DA:43:52:58:40:D8:20:CF:2C:50:DE:D1:44:1F:72:D4:32:3B:6F:5B:26:9D:B4:FF:5F:80:6B:81:86:AB:64:9F:2D:AA:F2:44:D8:E9:DA:1A:84:84:6F:35:ED:8A:96:71:17:E6:15:89:3C:79:8D:4F:EC:8D:FD:C1:B3:5A:18:02:66:43:95:E6:39:0B:2D:00:FC:56:82:26:83:D6:DA:14:1D:DF:DE:76:C5:5E:72:CA:74:3D:D7:50:28:63:27:D4:0B:EF:77:FB:BE:FF:6E:14:54:7B:C5:81:8C:07:32:16:00:93:1F:E8:1F:4F:0A:6F:32:02:80:F8:F5:FB:AA:F2:E6:B6:0F:44:84:22:90:D5:6E:F7:46:63:F6:1C:71" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122530Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.065) 0:00:50.472 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.085) 0:00:50.557 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.073) 0:00:50.630 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.068) 0:00:50.699 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 07 September 2024 08:25:35 -0400 (0:00:00.071) 0:00:50.771 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 07 September 2024 08:25:36 -0400 (0:00:00.063) 0:00:50.834 **** ok: [managed_node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.042732", "end": "2024-09-07 08:25:36.386147", "rc": 0, "start": "2024-09-07 08:25:36.343415" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 07 September 2024 08:25:36 -0400 (0:00:00.502) 0:00:51.337 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 07 September 2024 08:25:36 -0400 (0:00:00.140) 0:00:51.477 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 07 September 2024 08:25:36 -0400 (0:00:00.044) 0:00:51.521 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 07 September 2024 08:25:36 -0400 (0:00:00.064) 0:00:51.586 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 07 September 2024 08:25:36 -0400 (0:00:00.061) 0:00:51.647 **** ok: [managed_node2] => { "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-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 07 September 2024 08:25:37 -0400 (0:00:00.674) 0:00:52.322 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 07 September 2024 08:25:37 -0400 (0:00:00.070) 0:00:52.393 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711931.185137, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fdf31f44a992a2b8cf95397bde0992d730a88818", "ctime": 1725711931.179137, "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": "text/plain", "mode": "0600", "mtime": 1725711931.179137, "nlink": 1, "path": "/etc/pki/tls/certs/certid_mode.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "18446744071995868625", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 07 September 2024 08:25:37 -0400 (0:00:00.369) 0:00:52.762 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 07 September 2024 08:25:38 -0400 (0:00:00.073) 0:00:52.836 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 07 September 2024 08:25:38 -0400 (0:00:00.067) 0:00:52.904 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 07 September 2024 08:25:38 -0400 (0:00:00.055) 0:00:52.959 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725711931.1181366, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "473037faa53e50ee145b0e4d3b5b91c2ec6c6006", "ctime": 1725711931.179137, "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": 1725711931.179137, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "18446744071995868612", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 07 September 2024 08:25:38 -0400 (0:00:00.449) 0:00:53.409 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 07 September 2024 08:25:38 -0400 (0:00:00.178) 0:00:53.587 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 07 September 2024 08:25:38 -0400 (0:00:00.138) 0:00:53.726 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "83:23:EE:9B:11:2E:83:CE:27:73:0F:97:F5:CD:5C:54:67:14:27:35" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "43:B3:3D:45:FC:4E:1B:F3:6F:EF:59:0A:FD:4B:E0:E3:C1:C5:0E:97:E7:CF:2E:92:F6:B4:F0:EC:10:41:F9:F2:53:9D:D7:95:2E:E7:C0:05:BF:C5:5E:8E:87:EC:0C:BD:CD:02:7C:BE:EF:B0:E2:5B:E2:B5:F7:A5:45:AA:1D:9F:CD:36:18:6C:39:C5:FC:17:F1:02:51:CA:57:E5:CD:3C:EA:63:6A:B5:93:25:61:B1:EE:48:0E:F3:A2:3D:E7:79:BB:EB:59:03:FD:D8:33:28:05:86:69:32:CA:F4:F7:CE:3D:C8:E4:50:F8:8C:F8:21:FE:21:F0:91:A7:C6:54:04:52:8F:E3:CD:FE:83:CB:C8:C1:18:A7:EC:94:28:E1:02:CC:A3:AC:9D:32:2C:DD:F3:4F:68:40:5D:68:BD:65:38:CF:96:EC:1C:22:C2:86:35:AA:F5:0C:74:69:16:A1:97:18:8F:99:35:A7:3E:6B:AE:69:F6:A3:27:64:EA:B1:CE:28:C0:B0:15:3C:53:AD:58:F0:90:3E:53:5E:DA:F5:58:E2:13:26:DC:F1:81:79:AB:EF:F0:A2:BE:C8:D7:6D:80:BD:57:3A:08:F2:22:5D:B8:BA:EF:1C:E9:64:6D:86:60:4A:B4:B1:76:43:BB:5F:65:55:D9:FB:49:11:6F:E0:B9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122531Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 07 September 2024 08:25:39 -0400 (0:00:00.564) 0:00:54.290 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "87:FB:A5:6C:48:7C:B4:EC:A5:2E:14:5A:87:F8:62:41:4A:14:2B:EB" }, "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": "83:23:EE:9B:11:2E:83:CE:27:73:0F:97:F5:CD:5C:54:67:14:27:35" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "43:B3:3D:45:FC:4E:1B:F3:6F:EF:59:0A:FD:4B:E0:E3:C1:C5:0E:97:E7:CF:2E:92:F6:B4:F0:EC:10:41:F9:F2:53:9D:D7:95:2E:E7:C0:05:BF:C5:5E:8E:87:EC:0C:BD:CD:02:7C:BE:EF:B0:E2:5B:E2:B5:F7:A5:45:AA:1D:9F:CD:36:18:6C:39:C5:FC:17:F1:02:51:CA:57:E5:CD:3C:EA:63:6A:B5:93:25:61:B1:EE:48:0E:F3:A2:3D:E7:79:BB:EB:59:03:FD:D8:33:28:05:86:69:32:CA:F4:F7:CE:3D:C8:E4:50:F8:8C:F8:21:FE:21:F0:91:A7:C6:54:04:52:8F:E3:CD:FE:83:CB:C8:C1:18:A7:EC:94:28:E1:02:CC:A3:AC:9D:32:2C:DD:F3:4F:68:40:5D:68:BD:65:38:CF:96:EC:1C:22:C2:86:35:AA:F5:0C:74:69:16:A1:97:18:8F:99:35:A7:3E:6B:AE:69:F6:A3:27:64:EA:B1:CE:28:C0:B0:15:3C:53:AD:58:F0:90:3E:53:5E:DA:F5:58:E2:13:26:DC:F1:81:79:AB:EF:F0:A2:BE:C8:D7:6D:80:BD:57:3A:08:F2:22:5D:B8:BA:EF:1C:E9:64:6D:86:60:4A:B4:B1:76:43:BB:5F:65:55:D9:FB:49:11:6F:E0:B9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250907122512Z", "not_valid_before": "20240907122531Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 07 September 2024 08:25:39 -0400 (0:00:00.101) 0:00:54.392 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 07 September 2024 08:25:39 -0400 (0:00:00.163) 0:00:54.556 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 07 September 2024 08:25:39 -0400 (0:00:00.086) 0:00:54.643 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 07 September 2024 08:25:39 -0400 (0:00:00.083) 0:00:54.726 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 07 September 2024 08:25:40 -0400 (0:00:00.104) 0:00:54.831 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 07 September 2024 08:25:40 -0400 (0:00:00.134) 0:00:54.965 **** ok: [managed_node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.042359", "end": "2024-09-07 08:25:40.489731", "rc": 0, "start": "2024-09-07 08:25:40.447372" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 07 September 2024 08:25:40 -0400 (0:00:00.486) 0:00:55.452 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node2 : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 07 September 2024 08:25:40 -0400 (0:00:00.078) 0:00:55.531 **** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed -- 12.73s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 7.42s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.13s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.93s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.43s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.42s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider service is running --- 1.33s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure user exists ------------------------------------------------------ 1.33s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Ensure python3 is installed --------------------------------------------- 0.93s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Parse certificate ------------------------------------------------------- 0.88s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Ensure python3 is installed --------------------------------------------- 0.70s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.70s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.69s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Ensure python3 is installed --------------------------------------------- 0.67s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Retrieve auto-renew flag ------------------------------------------------ 0.64s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Gathering Facts --------------------------------------------------------- 0.64s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.63s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.62s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Gathering Facts --------------------------------------------------------- 0.62s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Ensure python3 is installed --------------------------------------------- 0.59s /tmp/collections-u9Z/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18