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-vXN/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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Saturday 14 September 2024 08:26:25 -0400 (0:00:00.022) 0:00:00.022 **** ok: [managed_node2] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Saturday 14 September 2024 08:26:26 -0400 (0:00:01.574) 0:00:01.597 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Saturday 14 September 2024 08:26:27 -0400 (0:00:01.243) 0:00:02.841 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Saturday 14 September 2024 08:26:28 -0400 (0:00:00.522) 0:00:03.364 **** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 14 September 2024 08:26:29 -0400 (0:00:00.543) 0:00:03.907 **** included: /tmp/collections-vXN/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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 14 September 2024 08:26:29 -0400 (0:00:00.028) 0:00:03.936 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 14 September 2024 08:26:29 -0400 (0:00:00.042) 0:00:03.978 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 14 September 2024 08:26:29 -0400 (0:00:00.383) 0:00:04.362 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 14 September 2024 08:26:29 -0400 (0:00:00.045) 0:00:04.408 **** 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-vXN/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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 14 September 2024 08:26:29 -0400 (0:00:00.075) 0:00:04.483 **** 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.0 MB/s | 1.2 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/7 \n Installing : python-enum34-1.0.4-1.el7.noarch 2/7 \n Installing : python-ply-3.4-11.el7.noarch 3/7 \n Installing : python-pycparser-2.14-1.el7.noarch 4/7 \n Installing : python-cffi-1.6.0-5.el7.x86_64 5/7 \n Installing : python-idna-2.4-1.el7.noarch 6/7 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n Verifying : python-idna-2.4-1.el7.noarch 1/7 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/7 \n Verifying : python-ply-3.4-11.el7.noarch 3/7 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/7 \n Verifying : python-enum34-1.0.4-1.el7.noarch 5/7 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 6/7 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 7/7 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-enum34.noarch 0:1.0.4-1.el7 \n python-idna.noarch 0:2.4-1.el7 python-ply.noarch 0:3.4-11.el7 \n python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 14 September 2024 08:26:40 -0400 (0:00:11.315) 0:00:15.799 **** changed: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "changes": { "installed": [ "certmonger" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * epel: d2lzkl7pfhq30w.cloudfront.net\n * epel-debuginfo: d2lzkl7pfhq30w.cloudfront.net\n * epel-source: d2lzkl7pfhq30w.cloudfront.net\nResolving Dependencies\n--> Running transaction check\n---> Package certmonger.x86_64 0:0.78.4-17.el7_9 will be installed\n--> Processing Dependency: psmisc for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_util.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_client.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Running transaction check\n---> Package libtalloc.x86_64 0:2.1.16-1.el7 will be installed\n---> Package libtevent.x86_64 0:0.9.39-1.el7 will be installed\n---> Package psmisc.x86_64 0:22.20-17.el7 will be installed\n---> Package xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n---> Package xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n certmonger x86_64 0.78.4-17.el7_9 updates 608 k\nInstalling for dependencies:\n libtalloc x86_64 2.1.16-1.el7 base 33 k\n libtevent x86_64 0.9.39-1.el7 base 41 k\n psmisc x86_64 22.20-17.el7 base 141 k\n xmlrpc-c x86_64 1.32.5-1905.svn2451.el7 base 130 k\n xmlrpc-c-client x86_64 1.32.5-1905.svn2451.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+5 Dependent packages)\n\nTotal download size: 984 k\nInstalled size: 3.7 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 2.8 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 14 September 2024 08:26:49 -0400 (0:00:08.908) 0:00:24.707 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 14 September 2024 08:26:50 -0400 (0:00:00.564) 0:00:25.272 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 14 September 2024 08:26:50 -0400 (0:00:00.343) 0:00:25.615 **** 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": "systemd-journald.socket syslog.target basic.target network.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 14 September 2024 08:26:51 -0400 (0:00:00.948) 0:00:26.564 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 14 September 2024 08:26:53 -0400 (0:00:02.134) 0:00:28.699 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 14 September 2024 08:26:53 -0400 (0:00:00.132) 0:00:28.831 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 14 September 2024 08:26:54 -0400 (0:00:00.056) 0:00:28.888 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 14 September 2024 08:26:54 -0400 (0:00:00.065) 0:00:28.953 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Saturday 14 September 2024 08:26:54 -0400 (0:00:00.070) 0:00:29.023 **** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Saturday 14 September 2024 08:26:54 -0400 (0:00:00.588) 0:00:29.612 **** included: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:26:54 -0400 (0:00:00.122) 0:00:29.735 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:26:54 -0400 (0:00:00.028) 0:00:29.763 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:26:54 -0400 (0:00:00.059) 0:00:29.823 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:26:55 -0400 (0:00:00.053) 0:00:29.876 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:26:55 -0400 (0:00:00.620) 0:00:30.497 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:26:55 -0400 (0:00:00.085) 0:00:30.583 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316812.7849543, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5527965fc9d67737f034bc0ae7cec11ffff9fa40", "ctime": 1726316812.879955, "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": 1726316812.7809544, "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": "627348305", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.528) 0:00:31.111 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.060) 0:00:31.172 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.052) 0:00:31.225 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.047) 0:00:31.273 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316812.741954, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1b522b63cd575c9991b2230fc4938d5e3a4dfb98", "ctime": 1726316812.880955, "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": 1726316812.7809544, "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": "627348292", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.408) 0:00:31.681 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.044) 0:00:31.726 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:26:56 -0400 (0:00:00.057) 0:00:31.783 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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": "7A:A1:A2:D1:11:A4:6F:CB:86:2D:D5:C2:8B:5E:BD:A3:73:3E:43:16" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:BB:3D:EB:EC:93:DC:D4:EF:7F:14:64:21:32:3D:30:9A:DD:87:3F:FA:57:FA:9C:61:E5:78:EB:41:3C:F0:B3:63:C0:FB:E9:44:2E:5D:1A:31:52:8B:5D:1A:D1:B8:BB:C9:6A:A7:FC:69:FD:C2:FF:13:B7:1E:26:FA:34:32:F0:FC:D5:61:3F:02:26:E1:55:58:AF:A6:3F:FB:28:94:44:38:7C:0E:D5:31:28:AE:9F:A6:D7:E6:20:F0:73:18:EA:7E:E5:99:17:CC:4B:0E:F5:AF:6F:62:61:9E:F9:32:47:4F:CD:18:72:96:E9:D7:02:56:20:51:FA:30:CD:06:0A:51:B8:30:F3:5C:2F:FB:55:80:20:EC:BD:11:20:B8:91:2F:B9:BC:E2:48:B3:B3:FB:5C:A2:FE:F8:EB:6C:BC:98:3B:FF:8E:89:CB:E7:24:DE:C9:31:C2:59:AC:5B:13:75:E8:66:50:75:BB:BE:7E:C8:8F:0C:55:F9:37:E9:E1:F6:4E:18:89:90:69:3F:A6:C4:B7:F8:8A:D3:6E:A1:C1:F7:59:85:9C:35:FC:94:8F:B5:F7:87:F6:98:96:DC:AA:B1:39:85:0A:83:73:D5:66:48:C8:D6:C3:47:23:51:26:67:59:60:79:79:FB:C0:97:F9:C8:63:DF:C5:A1:D1:2D:03" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122652Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:26:57 -0400 (0:00:00.764) 0:00:32.548 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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": "7A:A1:A2:D1:11:A4:6F:CB:86:2D:D5:C2:8B:5E:BD:A3:73:3E:43:16" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AA:BB:3D:EB:EC:93:DC:D4:EF:7F:14:64:21:32:3D:30:9A:DD:87:3F:FA:57:FA:9C:61:E5:78:EB:41:3C:F0:B3:63:C0:FB:E9:44:2E:5D:1A:31:52:8B:5D:1A:D1:B8:BB:C9:6A:A7:FC:69:FD:C2:FF:13:B7:1E:26:FA:34:32:F0:FC:D5:61:3F:02:26:E1:55:58:AF:A6:3F:FB:28:94:44:38:7C:0E:D5:31:28:AE:9F:A6:D7:E6:20:F0:73:18:EA:7E:E5:99:17:CC:4B:0E:F5:AF:6F:62:61:9E:F9:32:47:4F:CD:18:72:96:E9:D7:02:56:20:51:FA:30:CD:06:0A:51:B8:30:F3:5C:2F:FB:55:80:20:EC:BD:11:20:B8:91:2F:B9:BC:E2:48:B3:B3:FB:5C:A2:FE:F8:EB:6C:BC:98:3B:FF:8E:89:CB:E7:24:DE:C9:31:C2:59:AC:5B:13:75:E8:66:50:75:BB:BE:7E:C8:8F:0C:55:F9:37:E9:E1:F6:4E:18:89:90:69:3F:A6:C4:B7:F8:8A:D3:6E:A1:C1:F7:59:85:9C:35:FC:94:8F:B5:F7:87:F6:98:96:DC:AA:B1:39:85:0A:83:73:D5:66:48:C8:D6:C3:47:23:51:26:67:59:60:79:79:FB:C0:97:F9:C8:63:DF:C5:A1:D1:2D:03" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122652Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:26:57 -0400 (0:00:00.144) 0:00:32.692 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:26:57 -0400 (0:00:00.076) 0:00:32.769 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:26:57 -0400 (0:00:00.071) 0:00:32.841 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.087) 0:00:32.928 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.113) 0:00:33.042 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.094) 0:00:33.136 **** 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.039809", "end": "2024-09-14 08:26:58.852824", "rc": 0, "start": "2024-09-14 08:26:58.813015" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.636) 0:00:33.773 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:26:58 -0400 (0:00:00.065) 0:00:33.838 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.028) 0:00:33.867 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.060) 0:00:33.928 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.077) 0:00:34.005 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:26:59 -0400 (0:00:00.791) 0:00:34.797 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:27:00 -0400 (0:00:00.062) 0:00:34.860 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316813.6299605, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c7af38ab678933055ff05999c08545815ff57123", "ctime": 1726316813.7249613, "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": 1726316813.6259606, "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": "627348343", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:27:00 -0400 (0:00:00.356) 0:00:35.217 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:27:00 -0400 (0:00:00.070) 0:00:35.288 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:27:00 -0400 (0:00:00.128) 0:00:35.416 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:27:00 -0400 (0:00:00.140) 0:00:35.556 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316813.5869603, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b62c501ac31f0a46e40dd0ea1b48c8a1e60710c7", "ctime": 1726316813.7259612, "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": 1726316813.6259606, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1708, "uid": 1040, "version": "627348330", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.413) 0:00:35.970 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.071) 0:00:36.042 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.079) 0:00:36.121 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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": "8A:9B:F7:21:4B:0B:C3:79:CE:3A:2D:3A:95:D9:8E:E2:D3:0E:3F:2F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "70:BD:34:98:36:6D:B1:1E:9A:A3:D9:39:37:1D:EA:FB:1A:72:98:98:DE:0D:08:94:29:AF:60:A8:F9:07:84:72:3E:65:A7:2D:22:C3:D3:45:99:74:B1:A6:33:E6:06:B4:D6:36:7D:90:D9:01:52:BC:61:62:37:5C:C7:4F:2B:3C:A6:6A:FA:CF:28:16:1E:AF:C3:F2:BA:62:E7:44:6E:6E:09:6C:A5:23:FD:1C:BE:7C:D4:B6:57:54:6C:73:ED:CA:A3:C2:BA:D4:9B:3A:2F:D9:8D:9B:3A:41:7D:C2:68:6A:57:B0:BF:CF:FA:D0:8C:1A:D3:7C:70:29:CC:B0:AD:A3:66:3F:93:98:43:A3:E8:FC:A4:61:4B:FF:D5:22:01:63:9A:26:71:E7:32:71:B9:0D:6F:DF:2E:3F:20:52:E1:34:46:A3:44:40:9E:45:B0:AC:A7:0F:F6:26:3E:09:3E:F1:1E:14:55:5B:31:E7:6C:2E:84:55:AE:1C:E1:B2:5C:9B:6E:44:00:D5:65:4A:5C:46:A0:AE:48:89:29:C8:97:63:D7:07:E3:CF:9F:5E:3B:49:DF:E7:4F:FB:7A:E7:39:81:52:B2:69:A1:A9:0A:47:FF:1A:8B:A6:36:0A:6B:FA:04:0C:66:51:BD:C8:38:F5:4D:0A:65:0F:A6:32:B8:9E:88" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122653Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.423) 0:00:36.545 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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": "8A:9B:F7:21:4B:0B:C3:79:CE:3A:2D:3A:95:D9:8E:E2:D3:0E:3F:2F" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "70:BD:34:98:36:6D:B1:1E:9A:A3:D9:39:37:1D:EA:FB:1A:72:98:98:DE:0D:08:94:29:AF:60:A8:F9:07:84:72:3E:65:A7:2D:22:C3:D3:45:99:74:B1:A6:33:E6:06:B4:D6:36:7D:90:D9:01:52:BC:61:62:37:5C:C7:4F:2B:3C:A6:6A:FA:CF:28:16:1E:AF:C3:F2:BA:62:E7:44:6E:6E:09:6C:A5:23:FD:1C:BE:7C:D4:B6:57:54:6C:73:ED:CA:A3:C2:BA:D4:9B:3A:2F:D9:8D:9B:3A:41:7D:C2:68:6A:57:B0:BF:CF:FA:D0:8C:1A:D3:7C:70:29:CC:B0:AD:A3:66:3F:93:98:43:A3:E8:FC:A4:61:4B:FF:D5:22:01:63:9A:26:71:E7:32:71:B9:0D:6F:DF:2E:3F:20:52:E1:34:46:A3:44:40:9E:45:B0:AC:A7:0F:F6:26:3E:09:3E:F1:1E:14:55:5B:31:E7:6C:2E:84:55:AE:1C:E1:B2:5C:9B:6E:44:00:D5:65:4A:5C:46:A0:AE:48:89:29:C8:97:63:D7:07:E3:CF:9F:5E:3B:49:DF:E7:4F:FB:7A:E7:39:81:52:B2:69:A1:A9:0A:47:FF:1A:8B:A6:36:0A:6B:FA:04:0C:66:51:BD:C8:38:F5:4D:0A:65:0F:A6:32:B8:9E:88" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122653Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.079) 0:00:36.624 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.057) 0:00:36.682 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.061) 0:00:36.744 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.053) 0:00:36.797 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:27:01 -0400 (0:00:00.054) 0:00:36.851 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:27:02 -0400 (0:00:00.062) 0:00:36.914 **** 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-14 08:27:02.424015", "rc": 0, "start": "2024-09-14 08:27:02.383806" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:27:02 -0400 (0:00:00.423) 0:00:37.338 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Saturday 14 September 2024 08:27:02 -0400 (0:00:00.081) 0:00:37.419 **** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.652) 0:00:38.072 **** included: /tmp/collections-vXN/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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.049) 0:00:38.121 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.067) 0:00:38.189 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.057) 0:00:38.247 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.067) 0:00:38.314 **** 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-vXN/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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 14 September 2024 08:27:03 -0400 (0:00:00.157) 0:00:38.472 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 14 September 2024 08:27:05 -0400 (0:00:01.480) 0:00:39.952 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 14 September 2024 08:27:05 -0400 (0:00:00.723) 0:00:40.676 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 14 September 2024 08:27:06 -0400 (0:00:00.507) 0:00:41.183 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 14 September 2024 08:27:06 -0400 (0:00:00.447) 0:00:41.630 **** 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-14 08:26:51 EDT", "ActiveEnterTimestampMonotonic": "256873454", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service systemd-journald.socket network.target system.slice syslog.target basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-09-14 08:26:51 EDT", "AssertTimestampMonotonic": "256848711", "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-14 08:26:51 EDT", "ConditionTimestampMonotonic": "256848709", "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": "9809", "ExecMainStartTimestamp": "Sat 2024-09-14 08:26:51 EDT", "ExecMainStartTimestampMonotonic": "256849583", "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-14 08:26:51 EDT] ; stop_time=[n/a] ; pid=9809 ; 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-14 08:26:51 EDT", "InactiveExitTimestampMonotonic": "256849612", "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": "9809", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-09-14 08:26:51 EDT", "WatchdogTimestampMonotonic": "256873425", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 14 September 2024 08:27:07 -0400 (0:00:00.617) 0:00:42.247 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 14 September 2024 08:27:08 -0400 (0:00:01.389) 0:00:43.637 **** 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-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 14 September 2024 08:27:08 -0400 (0:00:00.126) 0:00:43.763 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 14 September 2024 08:27:08 -0400 (0:00:00.058) 0:00:43.822 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.052) 0:00:43.874 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.052) 0:00:43.927 **** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.623) 0:00:44.551 **** included: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.129) 0:00:44.681 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.028) 0:00:44.709 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.067) 0:00:44.777 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:27:09 -0400 (0:00:00.056) 0:00:44.833 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:27:10 -0400 (0:00:00.625) 0:00:45.459 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:27:10 -0400 (0:00:00.085) 0:00:45.544 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316828.028067, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "623fb30d0de0a7c30570dd7c18a13a8509c782b2", "ctime": 1726316828.1060677, "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": 1726316828.024067, "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": "627348468", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.342) 0:00:45.887 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.069) 0:00:45.957 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.064) 0:00:46.021 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.082) 0:00:46.104 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316827.9860668, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "28c0d63e617dd9d9c7fa83b3b629aea08768515c", "ctime": 1726316828.1070676, "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": 1726316828.024067, "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": "627348455", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.454) 0:00:46.558 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.072) 0:00:46.631 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:27:11 -0400 (0:00:00.086) 0:00:46.717 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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": "56:AB:23:27:78:BC:88:7E:0E:47:FE:CF:09:4E:23:C4:1E:A1:CB:D4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3F:27:AF:33:16:11:2C:45:8F:39:18:EC:7C:3F:C6:2E:D6:16:0E:42:D6:51:18:9F:53:8F:A9:38:A3:22:73:59:A2:2F:89:14:3B:ED:1E:A0:9B:CD:BC:9A:E6:61:A1:D5:93:0B:53:F9:04:61:A8:56:C5:89:83:5F:D0:2A:DA:50:DB:23:D8:F7:52:63:01:4A:B1:43:2E:B6:8C:47:23:36:50:AD:E7:42:06:56:4C:87:C4:B9:11:1D:5B:8E:6A:12:B1:E3:78:1E:76:1D:C4:B0:DB:C4:D0:4A:BB:FA:C0:4D:5B:86:F1:AA:34:BB:72:D7:0E:5C:C5:35:3E:86:E7:C1:88:F6:82:64:9F:ED:70:09:95:FE:D4:3D:EA:B1:FB:D8:75:23:B7:60:E3:8C:F6:83:EA:A8:64:14:B2:2C:07:F8:73:66:A3:AB:70:99:43:1F:3D:DE:85:65:CD:62:E9:5D:A4:4B:54:9E:81:7D:98:A8:B9:A6:06:66:23:AF:7B:E9:6C:48:23:41:75:7D:63:4B:E4:84:33:EF:71:65:DB:27:AB:0D:FD:89:88:09:34:87:28:EF:36:EA:61:FD:C6:95:BE:87:45:0B:F0:98:8A:8A:BC:24:5D:B2:2C:6C:8D:67:E2:30:FE:10:DA:EB:51:E6:85:D0:F2:08:C3:0A:A8:D2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122708Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:27:12 -0400 (0:00:00.437) 0:00:47.154 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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": "56:AB:23:27:78:BC:88:7E:0E:47:FE:CF:09:4E:23:C4:1E:A1:CB:D4" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3F:27:AF:33:16:11:2C:45:8F:39:18:EC:7C:3F:C6:2E:D6:16:0E:42:D6:51:18:9F:53:8F:A9:38:A3:22:73:59:A2:2F:89:14:3B:ED:1E:A0:9B:CD:BC:9A:E6:61:A1:D5:93:0B:53:F9:04:61:A8:56:C5:89:83:5F:D0:2A:DA:50:DB:23:D8:F7:52:63:01:4A:B1:43:2E:B6:8C:47:23:36:50:AD:E7:42:06:56:4C:87:C4:B9:11:1D:5B:8E:6A:12:B1:E3:78:1E:76:1D:C4:B0:DB:C4:D0:4A:BB:FA:C0:4D:5B:86:F1:AA:34:BB:72:D7:0E:5C:C5:35:3E:86:E7:C1:88:F6:82:64:9F:ED:70:09:95:FE:D4:3D:EA:B1:FB:D8:75:23:B7:60:E3:8C:F6:83:EA:A8:64:14:B2:2C:07:F8:73:66:A3:AB:70:99:43:1F:3D:DE:85:65:CD:62:E9:5D:A4:4B:54:9E:81:7D:98:A8:B9:A6:06:66:23:AF:7B:E9:6C:48:23:41:75:7D:63:4B:E4:84:33:EF:71:65:DB:27:AB:0D:FD:89:88:09:34:87:28:EF:36:EA:61:FD:C6:95:BE:87:45:0B:F0:98:8A:8A:BC:24:5D:B2:2C:6C:8D:67:E2:30:FE:10:DA:EB:51:E6:85:D0:F2:08:C3:0A:A8:D2" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122708Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:27:12 -0400 (0:00:00.067) 0:00:47.221 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:27:12 -0400 (0:00:00.074) 0:00:47.296 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:27:12 -0400 (0:00:00.100) 0:00:47.396 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:27:12 -0400 (0:00:00.108) 0:00:47.504 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:27:12 -0400 (0:00:00.077) 0:00:47.582 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:27:12 -0400 (0:00:00.076) 0:00:47.659 **** 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.042936", "end": "2024-09-14 08:27:13.179227", "rc": 0, "start": "2024-09-14 08:27:13.136291" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:27:13 -0400 (0:00:00.432) 0:00:48.091 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 14 September 2024 08:27:13 -0400 (0:00:00.093) 0:00:48.185 **** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 14 September 2024 08:27:13 -0400 (0:00:00.073) 0:00:48.259 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 14 September 2024 08:27:13 -0400 (0:00:00.087) 0:00:48.346 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 14 September 2024 08:27:13 -0400 (0:00:00.083) 0:00:48.430 **** 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-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 14 September 2024 08:27:14 -0400 (0:00:00.719) 0:00:49.150 **** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 14 September 2024 08:27:14 -0400 (0:00:00.051) 0:00:49.202 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316828.6610718, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "6ddfd01972131abf28abcaad5c48f609ac9a6349", "ctime": 1726316828.6580718, "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": 1726316828.6580718, "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": "627348506", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 14 September 2024 08:27:14 -0400 (0:00:00.340) 0:00:49.542 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 14 September 2024 08:27:14 -0400 (0:00:00.059) 0:00:49.601 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 14 September 2024 08:27:14 -0400 (0:00:00.062) 0:00:49.663 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 14 September 2024 08:27:14 -0400 (0:00:00.049) 0:00:49.713 **** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726316828.6200714, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1c19470f0374c6baec366229b82c8bc9e0b205af", "ctime": 1726316828.6580718, "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": 1726316828.6580718, "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": "627348493", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 14 September 2024 08:27:15 -0400 (0:00:00.378) 0:00:50.092 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 14 September 2024 08:27:15 -0400 (0:00:00.110) 0:00:50.202 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 14 September 2024 08:27:15 -0400 (0:00:00.098) 0:00:50.301 **** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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:8A:5C:3E:AF:C3:9C:88:FD:2D:C0:80:F0:BB:B7:1F:DF:8A:EA:70" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "18:86:44:D8:D2:09:87:5D:43:3E:06:5D:B7:9A:95:07:03:F8:F9:55:9C:5F:C6:95:7E:37:81:C3:76:90:48:3B:7B:89:AD:E2:7E:2E:8E:C7:A4:9C:10:A3:BF:6E:B3:65:AC:31:AF:7F:F8:51:09:46:31:ED:38:53:00:2D:84:81:B1:D0:79:EA:FE:63:07:48:BA:E2:B9:9E:77:7F:B9:F6:81:AE:CA:C3:C5:E9:3A:E2:68:F7:4C:1D:19:2A:DB:9D:25:92:F1:DB:48:AD:42:FD:4A:0A:9B:4B:E0:4A:A2:31:50:9D:B0:01:97:69:1F:72:19:B9:5B:96:10:90:D9:E9:DA:EA:61:57:BF:BE:0A:C5:27:59:8E:A1:72:33:2C:0C:CF:12:52:B2:16:C8:55:6B:F8:EB:3B:51:AF:AE:4B:8D:BC:50:A6:8A:54:23:DA:F8:67:7C:5D:7A:7E:6B:5C:DC:C8:0A:3E:4F:AC:F2:37:75:5E:B7:E2:46:72:B7:65:7F:76:76:83:AD:25:AE:CB:90:CC:BD:8E:0E:82:81:07:64:E2:57:22:2A:20:1F:1F:E4:14:99:62:BE:EA:FF:CD:71:ED:0E:24:44:96:24:B8:56:90:05:26:4F:D7:0A:C2:1D:52:19:73:0F:10:48:A5:86:36:D5:70:97:F9:8E:11:C7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122708Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 14 September 2024 08:27:15 -0400 (0:00:00.463) 0:00:50.764 **** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:BC:B6:E7:B6:74:90:B4:F7:9C:D4:88:8B:70:A3:82:C1:49:81:44" }, "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:8A:5C:3E:AF:C3:9C:88:FD:2D:C0:80:F0:BB:B7:1F:DF:8A:EA:70" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "18:86:44:D8:D2:09:87:5D:43:3E:06:5D:B7:9A:95:07:03:F8:F9:55:9C:5F:C6:95:7E:37:81:C3:76:90:48:3B:7B:89:AD:E2:7E:2E:8E:C7:A4:9C:10:A3:BF:6E:B3:65:AC:31:AF:7F:F8:51:09:46:31:ED:38:53:00:2D:84:81:B1:D0:79:EA:FE:63:07:48:BA:E2:B9:9E:77:7F:B9:F6:81:AE:CA:C3:C5:E9:3A:E2:68:F7:4C:1D:19:2A:DB:9D:25:92:F1:DB:48:AD:42:FD:4A:0A:9B:4B:E0:4A:A2:31:50:9D:B0:01:97:69:1F:72:19:B9:5B:96:10:90:D9:E9:DA:EA:61:57:BF:BE:0A:C5:27:59:8E:A1:72:33:2C:0C:CF:12:52:B2:16:C8:55:6B:F8:EB:3B:51:AF:AE:4B:8D:BC:50:A6:8A:54:23:DA:F8:67:7C:5D:7A:7E:6B:5C:DC:C8:0A:3E:4F:AC:F2:37:75:5E:B7:E2:46:72:B7:65:7F:76:76:83:AD:25:AE:CB:90:CC:BD:8E:0E:82:81:07:64:E2:57:22:2A:20:1F:1F:E4:14:99:62:BE:EA:FF:CD:71:ED:0E:24:44:96:24:B8:56:90:05:26:4F:D7:0A:C2:1D:52:19:73:0F:10:48:A5:86:36:D5:70:97:F9:8E:11:C7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250914122651Z", "not_valid_before": "20240914122708Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 14 September 2024 08:27:15 -0400 (0:00:00.086) 0:00:50.850 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 14 September 2024 08:27:16 -0400 (0:00:00.110) 0:00:50.960 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 14 September 2024 08:27:16 -0400 (0:00:00.102) 0:00:51.063 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 14 September 2024 08:27:16 -0400 (0:00:00.065) 0:00:51.129 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 14 September 2024 08:27:16 -0400 (0:00:00.084) 0:00:51.213 **** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 14 September 2024 08:27:16 -0400 (0:00:00.090) 0:00:51.303 **** 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.042385", "end": "2024-09-14 08:27:16.810247", "rc": 0, "start": "2024-09-14 08:27:16.767862" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 14 September 2024 08:27:16 -0400 (0:00:00.418) 0:00:51.721 **** 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 14 September 2024 08:27:16 -0400 (0:00:00.056) 0:00:51.778 **** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed -- 11.32s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 8.91s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.13s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 1.58s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.48s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.39s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Ensure user exists ------------------------------------------------------ 1.24s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.95s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure python3 is installed --------------------------------------------- 0.79s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Parse certificate ------------------------------------------------------- 0.76s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.72s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.72s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.65s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Retrieve auto-renew flag ------------------------------------------------ 0.64s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Ensure python3 is installed --------------------------------------------- 0.63s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.62s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Ensure python3 is installed --------------------------------------------- 0.62s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.62s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.59s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.56s /tmp/collections-vXN/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35