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-h0J/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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 21 September 2024 08:24:49 -0400 (0:00:00.037) 0:00:00.037 **** ok: [managed_node2] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 21 September 2024 08:24:51 -0400 (0:00:01.596) 0:00:01.634 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 21 September 2024 08:24:52 -0400 (0:00:01.439) 0:00:03.074 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 21 September 2024 08:24:53 -0400 (0:00:00.598) 0:00:03.673 **** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 21 September 2024 08:24:54 -0400 (0:00:00.592) 0:00:04.266 **** included: /tmp/collections-h0J/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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 21 September 2024 08:24:54 -0400 (0:00:00.051) 0:00:04.317 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 21 September 2024 08:24:54 -0400 (0:00:00.059) 0:00:04.377 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 21 September 2024 08:24:54 -0400 (0:00:00.413) 0:00:04.790 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 21 September 2024 08:24:54 -0400 (0:00:00.048) 0:00:04.839 **** 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-h0J/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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 21 September 2024 08:24:54 -0400 (0:00:00.080) 0:00:04.919 **** 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: d2lzkl7pfhq30w.cloudfront.net\n * epel-debuginfo: d2lzkl7pfhq30w.cloudfront.net\n * epel-source: d2lzkl7pfhq30w.cloudfront.net\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.1 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 21 September 2024 08:25:05 -0400 (0:00:10.606) 0:00:15.526 **** 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: dl.fedoraproject.org\n * epel-debuginfo: dl.fedoraproject.org\n * epel-source: dl.fedoraproject.org\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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 21 September 2024 08:25:12 -0400 (0:00:07.386) 0:00:22.913 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 21 September 2024 08:25:13 -0400 (0:00:00.528) 0:00:23.442 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 21 September 2024 08:25:13 -0400 (0:00:00.459) 0:00:23.901 **** 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": "basic.target system.slice syslog.target dbus.service network.target systemd-journald.socket", "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": "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": "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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 21 September 2024 08:25:14 -0400 (0:00:00.956) 0:00:24.857 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 21 September 2024 08:25:16 -0400 (0:00:02.092) 0:00:26.950 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 21 September 2024 08:25:16 -0400 (0:00:00.120) 0:00:27.070 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 21 September 2024 08:25:16 -0400 (0:00:00.079) 0:00:27.150 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 21 September 2024 08:25:16 -0400 (0:00:00.066) 0:00:27.217 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 21 September 2024 08:25:17 -0400 (0:00:00.086) 0:00:27.303 **** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 21 September 2024 08:25:17 -0400 (0:00:00.623) 0:00:27.926 **** included: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 21 September 2024 08:25:17 -0400 (0:00:00.096) 0:00:28.023 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 21 September 2024 08:25:17 -0400 (0:00:00.021) 0:00:28.044 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 21 September 2024 08:25:17 -0400 (0:00:00.066) 0:00:28.111 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 21 September 2024 08:25:18 -0400 (0:00:00.136) 0:00:28.247 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 21 September 2024 08:25:18 -0400 (0:00:00.849) 0:00:29.097 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 21 September 2024 08:25:18 -0400 (0:00:00.062) 0:00:29.159 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921515.6314588, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "efc8dddb5dbd6f5323adbc61ce25f6009e386e2b", "ctime": 1726921515.7704594, "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": 1726921515.6264586, "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": "18446744072421844242", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 21 September 2024 08:25:19 -0400 (0:00:00.467) 0:00:29.626 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 21 September 2024 08:25:19 -0400 (0:00:00.067) 0:00:29.694 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 21 September 2024 08:25:19 -0400 (0:00:00.078) 0:00:29.772 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 21 September 2024 08:25:19 -0400 (0:00:00.073) 0:00:29.845 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921515.5844584, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f83d22d36f1b5ad4c6489a048cf18f4b77c19fef", "ctime": 1726921515.7704594, "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": 1726921515.6264586, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "18446744072421844229", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 21 September 2024 08:25:19 -0400 (0:00:00.341) 0:00:30.187 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 21 September 2024 08:25:20 -0400 (0:00:00.079) 0:00:30.266 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 21 September 2024 08:25:20 -0400 (0:00:00.108) 0:00:30.374 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "E6:E4:D7:40:5E:AC:43:2A:DA:D7:CB:0D:CA:9F:52:85:B5:09:CF:FE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8B:38:52:06:A1:20:52:A5:4E:85:40:67:25:49:2F:3F:3F:7E:75:3F:E4:47:ED:5A:75:9B:9C:16:87:37:13:37:37:57:7E:D9:63:84:BD:3F:C0:E8:DE:59:5C:17:4A:BF:B1:21:55:3B:0F:A3:77:8F:19:C4:F7:35:00:21:B3:87:45:FC:89:13:79:D4:8E:09:A1:55:67:C3:AF:49:CC:1C:26:8A:C4:C0:30:60:3B:24:FC:05:0F:D7:B9:51:EA:65:19:FB:F8:F9:04:F9:0E:3A:6B:68:28:B4:89:DA:9B:C2:D2:0D:AF:97:C2:D4:F7:17:40:C7:7D:3D:CE:18:3C:1F:DF:46:D1:C0:8E:C0:C0:1B:FE:8B:AC:30:47:D2:07:84:1A:42:E1:27:F6:03:54:60:77:FB:EA:96:C2:A8:6F:C6:A7:87:09:3E:DC:22:97:62:D1:99:AE:58:F7:FA:CA:E8:67:AA:73:DD:94:1E:8B:A5:00:3E:B2:DA:73:89:C2:73:33:B0:33:B0:64:62:99:7D:AC:9A:02:84:CA:C1:E5:51:E9:0A:AE:C4:98:98:1F:FC:3F:5D:9A:5F:E7:40:5C:5F:A1:32:8C:38:76:52:AB:20:B4:A7:20:55:A6:7F:5A:96:2A:05:86:3B:1E:3A:67:69:44:5A:B0:CD:77:4A:24:5E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122515Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 21 September 2024 08:25:21 -0400 (0:00:00.982) 0:00:31.357 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "E6:E4:D7:40:5E:AC:43:2A:DA:D7:CB:0D:CA:9F:52:85:B5:09:CF:FE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "8B:38:52:06:A1:20:52:A5:4E:85:40:67:25:49:2F:3F:3F:7E:75:3F:E4:47:ED:5A:75:9B:9C:16:87:37:13:37:37:57:7E:D9:63:84:BD:3F:C0:E8:DE:59:5C:17:4A:BF:B1:21:55:3B:0F:A3:77:8F:19:C4:F7:35:00:21:B3:87:45:FC:89:13:79:D4:8E:09:A1:55:67:C3:AF:49:CC:1C:26:8A:C4:C0:30:60:3B:24:FC:05:0F:D7:B9:51:EA:65:19:FB:F8:F9:04:F9:0E:3A:6B:68:28:B4:89:DA:9B:C2:D2:0D:AF:97:C2:D4:F7:17:40:C7:7D:3D:CE:18:3C:1F:DF:46:D1:C0:8E:C0:C0:1B:FE:8B:AC:30:47:D2:07:84:1A:42:E1:27:F6:03:54:60:77:FB:EA:96:C2:A8:6F:C6:A7:87:09:3E:DC:22:97:62:D1:99:AE:58:F7:FA:CA:E8:67:AA:73:DD:94:1E:8B:A5:00:3E:B2:DA:73:89:C2:73:33:B0:33:B0:64:62:99:7D:AC:9A:02:84:CA:C1:E5:51:E9:0A:AE:C4:98:98:1F:FC:3F:5D:9A:5F:E7:40:5C:5F:A1:32:8C:38:76:52:AB:20:B4:A7:20:55:A6:7F:5A:96:2A:05:86:3B:1E:3A:67:69:44:5A:B0:CD:77:4A:24:5E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122515Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 21 September 2024 08:25:21 -0400 (0:00:00.077) 0:00:31.434 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 21 September 2024 08:25:21 -0400 (0:00:00.072) 0:00:31.507 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 21 September 2024 08:25:21 -0400 (0:00:00.105) 0:00:31.613 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 21 September 2024 08:25:21 -0400 (0:00:00.073) 0:00:31.686 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 21 September 2024 08:25:21 -0400 (0:00:00.083) 0:00:31.770 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 21 September 2024 08:25:21 -0400 (0:00:00.112) 0:00:31.883 **** 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.039873", "end": "2024-09-21 08:25:22.139262", "rc": 0, "start": "2024-09-21 08:25:22.099389" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 21 September 2024 08:25:22 -0400 (0:00:00.571) 0:00:32.455 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 21 September 2024 08:25:22 -0400 (0:00:00.095) 0:00:32.550 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 21 September 2024 08:25:22 -0400 (0:00:00.065) 0:00:32.616 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 21 September 2024 08:25:22 -0400 (0:00:00.088) 0:00:32.704 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 21 September 2024 08:25:22 -0400 (0:00:00.077) 0:00:32.782 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 21 September 2024 08:25:23 -0400 (0:00:00.666) 0:00:33.449 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 21 September 2024 08:25:23 -0400 (0:00:00.112) 0:00:33.561 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921516.5024636, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8b864babe6b319ab444a61ddd060b103c5fead71", "ctime": 1726921516.6364644, "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": 1726921516.4984636, "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": "18446744072421844280", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 21 September 2024 08:25:23 -0400 (0:00:00.449) 0:00:34.011 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 21 September 2024 08:25:23 -0400 (0:00:00.048) 0:00:34.060 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 21 September 2024 08:25:23 -0400 (0:00:00.060) 0:00:34.121 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 21 September 2024 08:25:23 -0400 (0:00:00.075) 0:00:34.196 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921516.4594634, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33523bebd54649f9f78f49968144da92b5e73f31", "ctime": 1726921516.6364644, "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": 1726921516.4984636, "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": "18446744072421844267", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 21 September 2024 08:25:24 -0400 (0:00:00.387) 0:00:34.583 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 21 September 2024 08:25:24 -0400 (0:00:00.055) 0:00:34.639 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 21 September 2024 08:25:24 -0400 (0:00:00.054) 0:00:34.694 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "7B:88:31:3E:3B:53:B6:9F:F8:A1:82:37:93:6A:D9:8F:F5:1F:82:94" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C1:DC:28:86:75:FD:96:C6:4D:D4:97:50:CD:F0:B3:31:A4:D2:00:C7:B9:10:45:58:92:2C:97:AD:D2:92:F0:68:99:84:88:22:60:59:A6:85:86:73:96:97:91:6C:DE:07:BB:15:F6:03:C3:3F:BD:6F:56:CC:1F:35:52:53:22:A2:99:07:C8:5A:86:05:FF:4C:B0:4D:E3:BA:3C:21:4A:A9:8F:18:6E:CE:B6:35:1B:55:F7:7C:53:91:B4:67:2A:C1:B9:20:20:39:19:5D:97:74:D2:8A:2A:CF:37:1B:11:3C:32:BE:1A:98:7D:DA:D4:68:D0:B5:A2:49:64:8C:4A:1A:F5:DA:3C:70:5D:31:70:CD:8A:0A:C2:DB:02:95:C6:06:6E:0A:29:2E:C5:CB:FC:EF:49:68:D1:C9:B9:B2:E6:F3:11:2E:94:44:8F:CE:EB:BB:AB:03:10:49:36:B9:71:73:A4:9C:9A:EB:74:31:1D:C0:87:F3:22:26:5E:D6:D6:5D:DA:DC:0C:41:D2:47:FB:BE:58:97:27:C1:60:A3:74:18:00:A2:E5:77:18:E4:0B:0E:79:39:B7:98:25:54:10:C2:1A:DD:61:18:10:F8:2A:9A:22:AA:C8:41:17:84:EC:36:3B:8C:FB:6B:5D:78:2B:D2:57:DB:15:0B:FB:22:13:DE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122516Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 21 September 2024 08:25:24 -0400 (0:00:00.382) 0:00:35.076 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "7B:88:31:3E:3B:53:B6:9F:F8:A1:82:37:93:6A:D9:8F:F5:1F:82:94" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "C1:DC:28:86:75:FD:96:C6:4D:D4:97:50:CD:F0:B3:31:A4:D2:00:C7:B9:10:45:58:92:2C:97:AD:D2:92:F0:68:99:84:88:22:60:59:A6:85:86:73:96:97:91:6C:DE:07:BB:15:F6:03:C3:3F:BD:6F:56:CC:1F:35:52:53:22:A2:99:07:C8:5A:86:05:FF:4C:B0:4D:E3:BA:3C:21:4A:A9:8F:18:6E:CE:B6:35:1B:55:F7:7C:53:91:B4:67:2A:C1:B9:20:20:39:19:5D:97:74:D2:8A:2A:CF:37:1B:11:3C:32:BE:1A:98:7D:DA:D4:68:D0:B5:A2:49:64:8C:4A:1A:F5:DA:3C:70:5D:31:70:CD:8A:0A:C2:DB:02:95:C6:06:6E:0A:29:2E:C5:CB:FC:EF:49:68:D1:C9:B9:B2:E6:F3:11:2E:94:44:8F:CE:EB:BB:AB:03:10:49:36:B9:71:73:A4:9C:9A:EB:74:31:1D:C0:87:F3:22:26:5E:D6:D6:5D:DA:DC:0C:41:D2:47:FB:BE:58:97:27:C1:60:A3:74:18:00:A2:E5:77:18:E4:0B:0E:79:39:B7:98:25:54:10:C2:1A:DD:61:18:10:F8:2A:9A:22:AA:C8:41:17:84:EC:36:3B:8C:FB:6B:5D:78:2B:D2:57:DB:15:0B:FB:22:13:DE" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122516Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 21 September 2024 08:25:24 -0400 (0:00:00.061) 0:00:35.138 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 21 September 2024 08:25:24 -0400 (0:00:00.062) 0:00:35.201 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 21 September 2024 08:25:25 -0400 (0:00:00.069) 0:00:35.270 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 21 September 2024 08:25:25 -0400 (0:00:00.095) 0:00:35.365 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 21 September 2024 08:25:25 -0400 (0:00:00.127) 0:00:35.493 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 21 September 2024 08:25:25 -0400 (0:00:00.170) 0:00:35.663 **** 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.040209", "end": "2024-09-21 08:25:25.882559", "rc": 0, "start": "2024-09-21 08:25:25.842350" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 21 September 2024 08:25:25 -0400 (0:00:00.534) 0:00:36.198 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 21 September 2024 08:25:26 -0400 (0:00:00.097) 0:00:36.295 **** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 21 September 2024 08:25:26 -0400 (0:00:00.699) 0:00:36.995 **** included: /tmp/collections-h0J/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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 21 September 2024 08:25:26 -0400 (0:00:00.079) 0:00:37.074 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 21 September 2024 08:25:26 -0400 (0:00:00.142) 0:00:37.217 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 21 September 2024 08:25:27 -0400 (0:00:00.101) 0:00:37.319 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 21 September 2024 08:25:27 -0400 (0:00:00.063) 0:00:37.382 **** 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-h0J/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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 21 September 2024 08:25:27 -0400 (0:00:00.133) 0:00:37.516 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 21 September 2024 08:25:28 -0400 (0:00:01.622) 0:00:39.138 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 21 September 2024 08:25:29 -0400 (0:00:00.886) 0:00:40.024 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 21 September 2024 08:25:30 -0400 (0:00:00.527) 0:00:40.552 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 21 September 2024 08:25:30 -0400 (0:00:00.383) 0:00:40.936 **** 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-21 08:25:14 EDT", "ActiveEnterTimestampMonotonic": "240888661", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target basic.target dbus.service network.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-21 08:25:14 EDT", "AssertTimestampMonotonic": "240865548", "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-21 08:25:14 EDT", "ConditionTimestampMonotonic": "240865546", "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": "9823", "ExecMainStartTimestamp": "Sat 2024-09-21 08:25:14 EDT", "ExecMainStartTimestampMonotonic": "240866123", "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-21 08:25:14 EDT] ; stop_time=[n/a] ; pid=9823 ; 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-21 08:25:14 EDT", "InactiveExitTimestampMonotonic": "240866152", "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": "9823", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-09-21 08:25:14 EDT", "WatchdogTimestampMonotonic": "240888624", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 21 September 2024 08:25:31 -0400 (0:00:00.485) 0:00:41.422 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 21 September 2024 08:25:32 -0400 (0:00:01.553) 0:00:42.975 **** 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-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 21 September 2024 08:25:32 -0400 (0:00:00.104) 0:00:43.080 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 21 September 2024 08:25:32 -0400 (0:00:00.053) 0:00:43.134 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 21 September 2024 08:25:32 -0400 (0:00:00.056) 0:00:43.190 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 21 September 2024 08:25:33 -0400 (0:00:00.063) 0:00:43.253 **** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 21 September 2024 08:25:33 -0400 (0:00:00.672) 0:00:43.925 **** included: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 21 September 2024 08:25:33 -0400 (0:00:00.146) 0:00:44.072 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 21 September 2024 08:25:33 -0400 (0:00:00.032) 0:00:44.104 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 21 September 2024 08:25:33 -0400 (0:00:00.068) 0:00:44.173 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 21 September 2024 08:25:33 -0400 (0:00:00.071) 0:00:44.244 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 21 September 2024 08:25:34 -0400 (0:00:00.803) 0:00:45.048 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 21 September 2024 08:25:34 -0400 (0:00:00.067) 0:00:45.115 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921531.7745512, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4d80a58d1c1e7999e6d174e82b4617e56dd0897f", "ctime": 1726921531.8115513, "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": 1726921531.770551, "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": "18446744072421844405", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 21 September 2024 08:25:35 -0400 (0:00:00.411) 0:00:45.527 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 21 September 2024 08:25:35 -0400 (0:00:00.052) 0:00:45.580 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 21 September 2024 08:25:35 -0400 (0:00:00.053) 0:00:45.633 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 21 September 2024 08:25:35 -0400 (0:00:00.049) 0:00:45.683 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921531.7305508, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "61f5e202e21e3df5e5bae7445c7776faf0bb2c0c", "ctime": 1726921531.8125513, "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": 1726921531.770551, "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": "18446744072421844392", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 21 September 2024 08:25:35 -0400 (0:00:00.414) 0:00:46.097 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 21 September 2024 08:25:35 -0400 (0:00:00.088) 0:00:46.186 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.088) 0:00:46.274 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "51:B9:94:61:9B:CB:45:27:DF:FC:4F:BB:A0:93:45:2F:F4:2B:30:0D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "87:E4:2C:30:0B:C1:F6:F5:F4:6F:26:36:E1:A3:24:AF:C0:5B:0B:2D:35:61:63:20:01:4E:7B:A5:36:BA:8F:76:B1:A4:D5:00:A8:BD:11:7E:1A:CC:92:D5:3A:40:62:1B:3D:21:A2:A8:01:9F:C0:B7:E3:8E:A7:AD:37:5B:E9:95:96:DB:B7:A7:24:07:99:8B:2C:3D:66:5E:9D:38:86:A9:47:DD:E3:0D:34:63:0A:7C:93:AE:16:D9:D5:D5:6E:F9:AA:BA:06:E7:6A:80:11:45:8F:7C:B3:5A:B9:F6:EB:66:09:36:E2:A4:E8:BF:A7:91:1F:B3:62:F8:CF:4A:AB:91:46:D4:18:37:D5:30:E5:6D:4F:5E:58:8D:DD:2A:E2:CB:96:47:67:39:C6:80:6C:10:64:24:5A:AE:8B:0F:41:E5:63:F3:96:F1:96:EF:FE:D7:B8:19:18:F9:38:A7:DC:72:19:64:13:C7:3D:82:67:61:D1:3D:85:95:E3:72:CA:99:BE:A9:77:8D:62:FF:DD:7A:61:69:05:0C:3F:0B:D8:14:CE:D7:E1:36:0B:04:5E:1F:91:F6:16:F4:65:ED:60:77:A5:D3:F7:F8:E1:31:49:52:67:CA:6C:0D:F0:34:6F:5A:7C:0D:66:40:7F:1F:D9:F4:ED:5A:C9:E8:D4:E2:04:36" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122531Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.461) 0:00:46.736 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "51:B9:94:61:9B:CB:45:27:DF:FC:4F:BB:A0:93:45:2F:F4:2B:30:0D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "87:E4:2C:30:0B:C1:F6:F5:F4:6F:26:36:E1:A3:24:AF:C0:5B:0B:2D:35:61:63:20:01:4E:7B:A5:36:BA:8F:76:B1:A4:D5:00:A8:BD:11:7E:1A:CC:92:D5:3A:40:62:1B:3D:21:A2:A8:01:9F:C0:B7:E3:8E:A7:AD:37:5B:E9:95:96:DB:B7:A7:24:07:99:8B:2C:3D:66:5E:9D:38:86:A9:47:DD:E3:0D:34:63:0A:7C:93:AE:16:D9:D5:D5:6E:F9:AA:BA:06:E7:6A:80:11:45:8F:7C:B3:5A:B9:F6:EB:66:09:36:E2:A4:E8:BF:A7:91:1F:B3:62:F8:CF:4A:AB:91:46:D4:18:37:D5:30:E5:6D:4F:5E:58:8D:DD:2A:E2:CB:96:47:67:39:C6:80:6C:10:64:24:5A:AE:8B:0F:41:E5:63:F3:96:F1:96:EF:FE:D7:B8:19:18:F9:38:A7:DC:72:19:64:13:C7:3D:82:67:61:D1:3D:85:95:E3:72:CA:99:BE:A9:77:8D:62:FF:DD:7A:61:69:05:0C:3F:0B:D8:14:CE:D7:E1:36:0B:04:5E:1F:91:F6:16:F4:65:ED:60:77:A5:D3:F7:F8:E1:31:49:52:67:CA:6C:0D:F0:34:6F:5A:7C:0D:66:40:7F:1F:D9:F4:ED:5A:C9:E8:D4:E2:04:36" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122531Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.075) 0:00:46.811 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.077) 0:00:46.889 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.077) 0:00:46.966 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.077) 0:00:47.044 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.086) 0:00:47.131 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 21 September 2024 08:25:36 -0400 (0:00:00.095) 0:00:47.226 **** 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.043629", "end": "2024-09-21 08:25:37.414272", "rc": 0, "start": "2024-09-21 08:25:37.370643" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 21 September 2024 08:25:37 -0400 (0:00:00.489) 0:00:47.716 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 21 September 2024 08:25:37 -0400 (0:00:00.060) 0:00:47.776 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 21 September 2024 08:25:37 -0400 (0:00:00.028) 0:00:47.805 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 21 September 2024 08:25:37 -0400 (0:00:00.068) 0:00:47.873 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 21 September 2024 08:25:37 -0400 (0:00:00.075) 0:00:47.949 **** 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-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 21 September 2024 08:25:38 -0400 (0:00:00.797) 0:00:48.747 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 21 September 2024 08:25:38 -0400 (0:00:00.066) 0:00:48.813 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921532.5625556, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0a7a83dc090a11e61a43154f7ecd2915dd1cffe2", "ctime": 1726921532.5585556, "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": 1726921532.5585556, "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": "18446744072421844443", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 21 September 2024 08:25:39 -0400 (0:00:00.492) 0:00:49.306 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 21 September 2024 08:25:39 -0400 (0:00:00.136) 0:00:49.442 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 21 September 2024 08:25:39 -0400 (0:00:00.087) 0:00:49.529 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 21 September 2024 08:25:39 -0400 (0:00:00.112) 0:00:49.642 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726921532.5195553, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "65fe895e7108f9fd545a59dceb9436ae47b89224", "ctime": 1726921532.5585556, "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": 1726921532.5585556, "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": "18446744072421844430", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 21 September 2024 08:25:39 -0400 (0:00:00.352) 0:00:49.994 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 21 September 2024 08:25:39 -0400 (0:00:00.075) 0:00:50.070 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 21 September 2024 08:25:39 -0400 (0:00:00.075) 0:00:50.146 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "95:FA:BD:66:54:30:E5:27:7F:C2:FA:52:AE:B4:34:93:44:E0:B9:A1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "45:00:A8:D2:53:B0:F9:B4:A3:B8:08:7B:6E:49:F1:D7:F1:49:C2:4A:00:C1:88:0A:D9:77:C7:5A:B6:D0:7B:AD:91:77:A7:7A:D7:34:13:BF:21:4C:4B:3A:4B:8C:92:D1:D0:E8:9C:12:08:B4:83:34:47:8D:42:FF:F4:24:C7:9A:17:78:1A:F0:2E:8E:B2:74:41:5C:61:C5:80:4D:16:12:0B:42:E6:D3:43:43:E1:A7:6E:48:F1:D6:AF:D2:37:9D:AF:CD:A5:06:D8:30:7A:77:4B:21:D1:87:0D:88:B5:F7:C0:61:43:7A:58:32:82:26:36:F9:73:72:68:4E:B0:67:E1:1A:42:09:6B:53:7B:CF:FD:61:52:EE:3D:F9:72:4D:B3:D9:2A:AF:BA:C0:7E:A4:24:12:BD:98:5D:6D:7C:DE:49:3E:0C:B4:0A:98:37:B1:AC:26:D8:4A:8A:76:C6:50:01:7D:1A:8D:DD:BA:C8:84:73:9A:01:47:10:C2:11:85:9E:54:0F:BE:04:B7:71:86:CA:ED:86:8B:99:D5:5E:D9:D8:7C:66:23:8F:93:28:3E:CB:33:AC:51:02:5D:D2:FF:8C:E5:47:89:FB:16:3C:3C:F4:24:B8:01:81:4F:C0:48:59:BC:23:D1:40:51:54:6C:0F:70:C0:54:9E:DC:A7:70" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122532Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 21 September 2024 08:25:40 -0400 (0:00:00.420) 0:00:50.566 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "80:0B:D8:1E:D0:DC:A8:9B:F8:99:46:8B:B3:63:6D:A2:32:21:56:9F" }, "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": "95:FA:BD:66:54:30:E5:27:7F:C2:FA:52:AE:B4:34:93:44:E0:B9:A1" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "45:00:A8:D2:53:B0:F9:B4:A3:B8:08:7B:6E:49:F1:D7:F1:49:C2:4A:00:C1:88:0A:D9:77:C7:5A:B6:D0:7B:AD:91:77:A7:7A:D7:34:13:BF:21:4C:4B:3A:4B:8C:92:D1:D0:E8:9C:12:08:B4:83:34:47:8D:42:FF:F4:24:C7:9A:17:78:1A:F0:2E:8E:B2:74:41:5C:61:C5:80:4D:16:12:0B:42:E6:D3:43:43:E1:A7:6E:48:F1:D6:AF:D2:37:9D:AF:CD:A5:06:D8:30:7A:77:4B:21:D1:87:0D:88:B5:F7:C0:61:43:7A:58:32:82:26:36:F9:73:72:68:4E:B0:67:E1:1A:42:09:6B:53:7B:CF:FD:61:52:EE:3D:F9:72:4D:B3:D9:2A:AF:BA:C0:7E:A4:24:12:BD:98:5D:6D:7C:DE:49:3E:0C:B4:0A:98:37:B1:AC:26:D8:4A:8A:76:C6:50:01:7D:1A:8D:DD:BA:C8:84:73:9A:01:47:10:C2:11:85:9E:54:0F:BE:04:B7:71:86:CA:ED:86:8B:99:D5:5E:D9:D8:7C:66:23:8F:93:28:3E:CB:33:AC:51:02:5D:D2:FF:8C:E5:47:89:FB:16:3C:3C:F4:24:B8:01:81:4F:C0:48:59:BC:23:D1:40:51:54:6C:0F:70:C0:54:9E:DC:A7:70" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921122514Z", "not_valid_before": "20240921122532Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 21 September 2024 08:25:40 -0400 (0:00:00.059) 0:00:50.626 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 21 September 2024 08:25:40 -0400 (0:00:00.060) 0:00:50.687 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 21 September 2024 08:25:40 -0400 (0:00:00.062) 0:00:50.750 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 21 September 2024 08:25:40 -0400 (0:00:00.052) 0:00:50.802 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 21 September 2024 08:25:40 -0400 (0:00:00.061) 0:00:50.864 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 21 September 2024 08:25:40 -0400 (0:00:00.077) 0:00:50.941 **** 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.043281", "end": "2024-09-21 08:25:41.101999", "rc": 0, "start": "2024-09-21 08:25:41.058718" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 21 September 2024 08:25:41 -0400 (0:00:00.553) 0:00:51.494 **** 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 21 September 2024 08:25:41 -0400 (0:00:00.075) 0:00:51.570 **** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed -- 10.61s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 7.39s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.09s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.62s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.60s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.55s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Ensure user exists ------------------------------------------------------ 1.44s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Parse certificate ------------------------------------------------------- 0.98s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.96s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.89s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.85s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.80s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.80s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.70s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Gathering Facts --------------------------------------------------------- 0.67s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Ensure python3 is installed --------------------------------------------- 0.67s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.62s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Ensure group "somegroup" exists ----------------------------------------- 0.60s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Gathering Facts --------------------------------------------------------- 0.59s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Retrieve auto-renew flag ------------------------------------------------ 0.57s /tmp/collections-h0J/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143