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-LhV/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-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Friday 20 September 2024 20:13:26 -0400 (0:00:00.036) 0:00:00.036 ****** ok: [managed_node2] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Friday 20 September 2024 20:13:27 -0400 (0:00:01.323) 0:00:01.359 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:9 Friday 20 September 2024 20:13:28 -0400 (0:00:01.222) 0:00:02.582 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Friday 20 September 2024 20:13:29 -0400 (0:00:00.557) 0:00:03.140 ****** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Friday 20 September 2024 20:13:29 -0400 (0:00:00.587) 0:00:03.727 ****** included: /tmp/collections-LhV/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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Friday 20 September 2024 20:13:29 -0400 (0:00:00.051) 0:00:03.778 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Friday 20 September 2024 20:13:29 -0400 (0:00:00.064) 0:00:03.842 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Friday 20 September 2024 20:13:30 -0400 (0:00:00.502) 0:00:04.345 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Friday 20 September 2024 20:13:30 -0400 (0:00:00.061) 0:00:04.407 ****** 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-LhV/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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Friday 20 September 2024 20:13:30 -0400 (0:00:00.084) 0:00:04.491 ****** 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" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Friday 20 September 2024 20:13:44 -0400 (0:00:14.311) 0:00:18.803 ****** 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.7 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" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Friday 20 September 2024 20:13:54 -0400 (0:00:09.484) 0:00:28.287 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Friday 20 September 2024 20:13:55 -0400 (0:00:00.846) 0:00:29.134 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Friday 20 September 2024 20:13:55 -0400 (0:00:00.431) 0:00:29.565 ****** 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": "dbus.service system.slice basic.target syslog.target network.target systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Friday 20 September 2024 20:13:56 -0400 (0:00:00.839) 0:00:30.405 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Friday 20 September 2024 20:13:58 -0400 (0:00:02.007) 0:00:32.412 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Friday 20 September 2024 20:13:58 -0400 (0:00:00.140) 0:00:32.552 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Friday 20 September 2024 20:13:58 -0400 (0:00:00.089) 0:00:32.642 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Friday 20 September 2024 20:13:58 -0400 (0:00:00.065) 0:00:32.707 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Friday 20 September 2024 20:13:58 -0400 (0:00:00.059) 0:00:32.767 ****** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:61 Friday 20 September 2024 20:13:59 -0400 (0:00:00.592) 0:00:33.360 ****** included: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Friday 20 September 2024 20:13:59 -0400 (0:00:00.151) 0:00:33.511 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Friday 20 September 2024 20:13:59 -0400 (0:00:00.030) 0:00:33.542 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Friday 20 September 2024 20:13:59 -0400 (0:00:00.080) 0:00:33.623 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Friday 20 September 2024 20:13:59 -0400 (0:00:00.068) 0:00:33.691 ****** 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" ] } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Friday 20 September 2024 20:14:00 -0400 (0:00:00.639) 0:00:34.331 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Friday 20 September 2024 20:14:00 -0400 (0:00:00.113) 0:00:34.445 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877637.7461686, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "896ba59159e0bf572de8f9e635c47a708977ddd1", "ctime": 1726877637.7961686, "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": 1726877637.7421687, "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": "1699536283", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Friday 20 September 2024 20:14:01 -0400 (0:00:00.555) 0:00:35.001 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Friday 20 September 2024 20:14:01 -0400 (0:00:00.071) 0:00:35.072 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Friday 20 September 2024 20:14:01 -0400 (0:00:00.139) 0:00:35.212 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Friday 20 September 2024 20:14:01 -0400 (0:00:00.132) 0:00:35.345 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877637.7031686, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a1f84066ed89d2c23ab72253ab7c38242a3b2170", "ctime": 1726877637.7961686, "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": 1726877637.7421687, "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": "1699536270", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Friday 20 September 2024 20:14:02 -0400 (0:00:00.519) 0:00:35.864 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Friday 20 September 2024 20:14:02 -0400 (0:00:00.064) 0:00:35.928 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Friday 20 September 2024 20:14:02 -0400 (0:00:00.060) 0:00:35.989 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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": "7D:94:EE:40:83:68:A1:29:B9:94:43:6C:BB:FF:AE:11:F2:1A:5F:8C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "03:83:5A:47:45:A4:B6:7A:CF:39:F0:35:9B:D9:8A:CE:EA:CD:37:B8:0C:7F:06:9E:DB:65:6B:42:E2:32:C0:DA:44:F5:33:74:9C:B4:A9:E7:70:0D:E0:25:32:7A:B5:FF:32:6C:9F:6A:6D:FF:41:44:39:46:56:A1:5A:13:EC:FC:F5:FF:74:54:8A:F8:77:29:71:9E:5F:EA:F7:6E:69:45:97:01:B8:52:4B:30:F5:EB:ED:B7:48:40:BB:37:9A:10:02:34:7B:B8:A4:C0:84:12:23:46:9C:B3:08:A0:6E:C6:AD:E8:8E:31:B1:99:8C:BA:A1:35:4F:27:36:83:5B:3A:71:D6:4B:D2:40:F5:15:2B:8C:E6:4C:C2:38:91:66:7E:B1:A8:09:BC:6D:FE:DC:54:89:F0:B7:06:02:76:0F:38:89:22:51:AA:05:68:02:25:F6:92:4D:EA:D6:25:AD:69:87:83:7D:36:C4:41:9F:FA:23:EF:A4:81:45:EE:7D:B5:5C:A4:56:FF:60:2E:7B:C4:32:FD:16:24:06:CF:C8:D1:82:0E:9A:DB:0C:38:90:73:D5:BE:65:73:E7:30:39:E6:12:3A:44:B6:82:30:6A:6C:36:FD:3C:42:14:48:94:E4:1A:F1:C6:04:E7:22:A3:7C:3F:06:92:97:3A:84:51:0E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001357Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Friday 20 September 2024 20:14:03 -0400 (0:00:00.857) 0:00:36.847 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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": "7D:94:EE:40:83:68:A1:29:B9:94:43:6C:BB:FF:AE:11:F2:1A:5F:8C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "03:83:5A:47:45:A4:B6:7A:CF:39:F0:35:9B:D9:8A:CE:EA:CD:37:B8:0C:7F:06:9E:DB:65:6B:42:E2:32:C0:DA:44:F5:33:74:9C:B4:A9:E7:70:0D:E0:25:32:7A:B5:FF:32:6C:9F:6A:6D:FF:41:44:39:46:56:A1:5A:13:EC:FC:F5:FF:74:54:8A:F8:77:29:71:9E:5F:EA:F7:6E:69:45:97:01:B8:52:4B:30:F5:EB:ED:B7:48:40:BB:37:9A:10:02:34:7B:B8:A4:C0:84:12:23:46:9C:B3:08:A0:6E:C6:AD:E8:8E:31:B1:99:8C:BA:A1:35:4F:27:36:83:5B:3A:71:D6:4B:D2:40:F5:15:2B:8C:E6:4C:C2:38:91:66:7E:B1:A8:09:BC:6D:FE:DC:54:89:F0:B7:06:02:76:0F:38:89:22:51:AA:05:68:02:25:F6:92:4D:EA:D6:25:AD:69:87:83:7D:36:C4:41:9F:FA:23:EF:A4:81:45:EE:7D:B5:5C:A4:56:FF:60:2E:7B:C4:32:FD:16:24:06:CF:C8:D1:82:0E:9A:DB:0C:38:90:73:D5:BE:65:73:E7:30:39:E6:12:3A:44:B6:82:30:6A:6C:36:FD:3C:42:14:48:94:E4:1A:F1:C6:04:E7:22:A3:7C:3F:06:92:97:3A:84:51:0E" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001357Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Friday 20 September 2024 20:14:03 -0400 (0:00:00.068) 0:00:36.916 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Friday 20 September 2024 20:14:03 -0400 (0:00:00.057) 0:00:36.973 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Friday 20 September 2024 20:14:03 -0400 (0:00:00.059) 0:00:37.033 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Friday 20 September 2024 20:14:03 -0400 (0:00:00.061) 0:00:37.094 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Friday 20 September 2024 20:14:03 -0400 (0:00:00.053) 0:00:37.147 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Friday 20 September 2024 20:14:03 -0400 (0:00:00.057) 0:00:37.205 ****** 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.039485", "end": "2024-09-20 20:14:03.976312", "rc": 0, "start": "2024-09-20 20:14:03.936827" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Friday 20 September 2024 20:14:04 -0400 (0:00:00.675) 0:00:37.880 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Friday 20 September 2024 20:14:04 -0400 (0:00:00.061) 0:00:37.941 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Friday 20 September 2024 20:14:04 -0400 (0:00:00.027) 0:00:37.968 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Friday 20 September 2024 20:14:04 -0400 (0:00:00.042) 0:00:38.011 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Friday 20 September 2024 20:14:04 -0400 (0:00:00.042) 0:00:38.054 ****** 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" ] } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Friday 20 September 2024 20:14:04 -0400 (0:00:00.613) 0:00:38.667 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Friday 20 September 2024 20:14:04 -0400 (0:00:00.051) 0:00:38.718 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877638.378167, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "27a3bd32b602fee6850771b2edc92c31aa20595e", "ctime": 1726877638.4871666, "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": 1726877638.374167, "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": "1699536322", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Friday 20 September 2024 20:14:05 -0400 (0:00:00.319) 0:00:39.037 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Friday 20 September 2024 20:14:05 -0400 (0:00:00.091) 0:00:39.129 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Friday 20 September 2024 20:14:05 -0400 (0:00:00.086) 0:00:39.216 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Friday 20 September 2024 20:14:05 -0400 (0:00:00.082) 0:00:39.298 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877638.336167, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "02819f61938037e2e103ec6fed05f69b2ffcb67c", "ctime": 1726877638.4881668, "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": 1726877638.374167, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "1699536309", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Friday 20 September 2024 20:14:05 -0400 (0:00:00.352) 0:00:39.650 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Friday 20 September 2024 20:14:05 -0400 (0:00:00.110) 0:00:39.761 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Friday 20 September 2024 20:14:05 -0400 (0:00:00.078) 0:00:39.840 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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": "04:4A:0C:F9:E3:2B:47:9D:DD:AD:7B:D1:27:17:69:DE:58:9E:46:4C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "54:D3:59:98:17:AC:C9:5E:B7:C1:CC:3C:B6:08:14:CC:8C:19:A7:30:3C:86:9A:25:C7:37:E3:EA:59:6B:96:1D:1F:2F:78:60:69:A8:AC:15:20:DD:28:A2:49:1A:E7:5B:1C:C1:FD:2C:CB:54:1F:7E:3E:8D:CC:4F:47:16:89:BC:FE:7F:F7:F1:87:BC:6F:8D:9D:69:53:A8:0B:A3:75:9E:6A:4A:38:B8:38:22:80:28:1B:B9:D2:C7:1C:60:6E:3D:10:BB:90:76:4E:95:29:75:0E:5A:B1:AE:48:59:B4:04:57:A5:57:13:5D:BE:E2:0B:52:DD:58:E2:F7:41:02:4B:BB:E8:12:73:F0:3B:CC:39:D3:AE:B6:9F:FB:CC:0D:61:53:A1:97:82:32:A4:38:B9:1F:35:6D:5C:8D:2B:B0:FF:2C:C5:39:39:7B:45:E7:36:0E:C3:5D:A5:BA:1D:0A:D0:BE:52:9A:80:19:22:7D:97:9D:36:11:BB:68:31:3A:46:DA:D7:98:D3:B1:1C:99:89:68:B3:95:A5:A5:79:43:EA:FF:CA:D6:8A:6E:72:CE:39:59:CA:00:DA:8B:46:9E:FB:00:37:F4:89:32:42:BB:9F:8C:4A:AC:BA:40:39:60:69:BE:A9:9E:E7:E7:D8:65:65:69:CB:22:EE:94:48:E7:73" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001358Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Friday 20 September 2024 20:14:06 -0400 (0:00:00.434) 0:00:40.274 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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": "04:4A:0C:F9:E3:2B:47:9D:DD:AD:7B:D1:27:17:69:DE:58:9E:46:4C" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "54:D3:59:98:17:AC:C9:5E:B7:C1:CC:3C:B6:08:14:CC:8C:19:A7:30:3C:86:9A:25:C7:37:E3:EA:59:6B:96:1D:1F:2F:78:60:69:A8:AC:15:20:DD:28:A2:49:1A:E7:5B:1C:C1:FD:2C:CB:54:1F:7E:3E:8D:CC:4F:47:16:89:BC:FE:7F:F7:F1:87:BC:6F:8D:9D:69:53:A8:0B:A3:75:9E:6A:4A:38:B8:38:22:80:28:1B:B9:D2:C7:1C:60:6E:3D:10:BB:90:76:4E:95:29:75:0E:5A:B1:AE:48:59:B4:04:57:A5:57:13:5D:BE:E2:0B:52:DD:58:E2:F7:41:02:4B:BB:E8:12:73:F0:3B:CC:39:D3:AE:B6:9F:FB:CC:0D:61:53:A1:97:82:32:A4:38:B9:1F:35:6D:5C:8D:2B:B0:FF:2C:C5:39:39:7B:45:E7:36:0E:C3:5D:A5:BA:1D:0A:D0:BE:52:9A:80:19:22:7D:97:9D:36:11:BB:68:31:3A:46:DA:D7:98:D3:B1:1C:99:89:68:B3:95:A5:A5:79:43:EA:FF:CA:D6:8A:6E:72:CE:39:59:CA:00:DA:8B:46:9E:FB:00:37:F4:89:32:42:BB:9F:8C:4A:AC:BA:40:39:60:69:BE:A9:9E:E7:E7:D8:65:65:69:CB:22:EE:94:48:E7:73" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001358Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Friday 20 September 2024 20:14:06 -0400 (0:00:00.200) 0:00:40.474 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Friday 20 September 2024 20:14:06 -0400 (0:00:00.158) 0:00:40.633 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Friday 20 September 2024 20:14:06 -0400 (0:00:00.074) 0:00:40.708 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Friday 20 September 2024 20:14:06 -0400 (0:00:00.075) 0:00:40.783 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Friday 20 September 2024 20:14:07 -0400 (0:00:00.096) 0:00:40.880 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Friday 20 September 2024 20:14:07 -0400 (0:00:00.064) 0:00:40.945 ****** 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.039655", "end": "2024-09-20 20:14:07.421298", "rc": 0, "start": "2024-09-20 20:14:07.381643" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Friday 20 September 2024 20:14:07 -0400 (0:00:00.394) 0:00:41.340 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Friday 20 September 2024 20:14:07 -0400 (0:00:00.089) 0:00:41.429 ****** ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Friday 20 September 2024 20:14:08 -0400 (0:00:00.650) 0:00:42.080 ****** included: /tmp/collections-LhV/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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Friday 20 September 2024 20:14:08 -0400 (0:00:00.053) 0:00:42.133 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Friday 20 September 2024 20:14:08 -0400 (0:00:00.075) 0:00:42.209 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Friday 20 September 2024 20:14:08 -0400 (0:00:00.063) 0:00:42.273 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Friday 20 September 2024 20:14:08 -0400 (0:00:00.061) 0:00:42.334 ****** 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-LhV/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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Friday 20 September 2024 20:14:08 -0400 (0:00:00.153) 0:00:42.488 ****** 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" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Friday 20 September 2024 20:14:10 -0400 (0:00:01.621) 0:00:44.109 ****** 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" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Friday 20 September 2024 20:14:10 -0400 (0:00:00.689) 0:00:44.799 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Friday 20 September 2024 20:14:11 -0400 (0:00:00.534) 0:00:45.334 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Friday 20 September 2024 20:14:11 -0400 (0:00:00.376) 0:00:45.710 ****** ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Fri 2024-09-20 20:13:56 EDT", "ActiveEnterTimestampMonotonic": "283809105", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target system.slice syslog.target network.target systemd-journald.socket dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Fri 2024-09-20 20:13:56 EDT", "AssertTimestampMonotonic": "283783968", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Fri 2024-09-20 20:13:56 EDT", "ConditionTimestampMonotonic": "283783966", "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": "9755", "ExecMainStartTimestamp": "Fri 2024-09-20 20:13:56 EDT", "ExecMainStartTimestampMonotonic": "283784555", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Fri 2024-09-20 20:13:56 EDT] ; stop_time=[n/a] ; pid=9755 ; 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": "Fri 2024-09-20 20:13:56 EDT", "InactiveExitTimestampMonotonic": "283784583", "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": "9755", "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": "Fri 2024-09-20 20:13:56 EDT", "WatchdogTimestampMonotonic": "283809071", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Friday 20 September 2024 20:14:12 -0400 (0:00:00.500) 0:00:46.211 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Friday 20 September 2024 20:14:13 -0400 (0:00:01.629) 0:00:47.840 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Friday 20 September 2024 20:14:14 -0400 (0:00:00.101) 0:00:47.942 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Friday 20 September 2024 20:14:14 -0400 (0:00:00.053) 0:00:47.995 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Friday 20 September 2024 20:14:14 -0400 (0:00:00.059) 0:00:48.055 ****** 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-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:85 Friday 20 September 2024 20:14:14 -0400 (0:00:00.054) 0:00:48.109 ****** ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:112 Friday 20 September 2024 20:14:14 -0400 (0:00:00.581) 0:00:48.691 ****** included: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 included: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Friday 20 September 2024 20:14:15 -0400 (0:00:00.158) 0:00:48.850 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Friday 20 September 2024 20:14:15 -0400 (0:00:00.082) 0:00:48.933 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Friday 20 September 2024 20:14:15 -0400 (0:00:00.065) 0:00:48.998 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Friday 20 September 2024 20:14:15 -0400 (0:00:00.073) 0:00:49.072 ****** 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" ] } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Friday 20 September 2024 20:14:16 -0400 (0:00:00.836) 0:00:49.909 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Friday 20 September 2024 20:14:16 -0400 (0:00:00.088) 0:00:49.998 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877652.9193292, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d0c0c55072e156680022de6be5638fb774a204c1", "ctime": 1726877653.0653307, "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": 1726877652.9163291, "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": "1699536446", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Friday 20 September 2024 20:14:16 -0400 (0:00:00.392) 0:00:50.390 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Friday 20 September 2024 20:14:16 -0400 (0:00:00.061) 0:00:50.452 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Friday 20 September 2024 20:14:16 -0400 (0:00:00.059) 0:00:50.511 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Friday 20 September 2024 20:14:16 -0400 (0:00:00.051) 0:00:50.563 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877652.8783286, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0dd6744afc07d4518108292797bd88c7345d90f6", "ctime": 1726877653.0653307, "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": 1726877652.9163291, "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": "1699536433", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Friday 20 September 2024 20:14:17 -0400 (0:00:00.395) 0:00:50.959 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Friday 20 September 2024 20:14:17 -0400 (0:00:00.074) 0:00:51.033 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Friday 20 September 2024 20:14:17 -0400 (0:00:00.062) 0:00:51.095 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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:4F:76:39:96:8F:AA:78:98:4B:A3:56:8B:7E:4B:DF:4D:97:F2:41" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AF:1B:4D:2D:76:E7:4A:2C:F8:4D:D1:F7:91:F4:E8:B2:E3:8F:AA:54:E2:D5:9C:2F:66:7C:68:C1:D1:51:2A:3E:FF:87:CF:85:B4:0F:9E:6D:D0:83:4F:D9:2C:9F:92:3C:D0:A7:A6:3D:25:B8:55:FB:25:08:4C:AE:EA:67:0D:EC:79:94:6A:67:11:8B:AD:F3:A8:19:68:50:BA:A2:46:D2:8E:87:A0:9C:53:7B:D4:C0:43:0C:01:DC:75:27:BE:3C:07:93:A9:96:BA:2C:00:C9:A0:5E:3C:79:A5:03:FD:5D:24:D0:08:2C:B3:57:DE:91:71:09:C6:10:DA:6D:9A:6F:C1:37:94:D4:41:FD:6E:11:5E:08:29:C2:29:B8:9F:01:E2:E0:C7:E8:6E:01:A2:07:2C:DC:F4:A2:A4:B6:22:2F:36:1A:92:03:C1:F0:43:94:B9:9C:23:65:D3:E7:0A:3A:CC:62:86:7C:D7:A3:04:DE:48:5F:0A:09:C3:3F:7E:66:75:5A:E4:24:3E:D9:24:19:CF:43:75:38:1C:84:0D:F3:BA:08:FF:F4:1E:88:FE:78:86:06:C4:FF:F4:61:76:2F:B9:E6:D9:98:96:C3:3E:5D:C1:64:B1:C2:01:E8:66:0A:FB:20:C0:93:CF:40:DA:97:E3:FC:1A:14:21:63:94:3C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001412Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Friday 20 September 2024 20:14:17 -0400 (0:00:00.414) 0:00:51.510 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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:4F:76:39:96:8F:AA:78:98:4B:A3:56:8B:7E:4B:DF:4D:97:F2:41" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "AF:1B:4D:2D:76:E7:4A:2C:F8:4D:D1:F7:91:F4:E8:B2:E3:8F:AA:54:E2:D5:9C:2F:66:7C:68:C1:D1:51:2A:3E:FF:87:CF:85:B4:0F:9E:6D:D0:83:4F:D9:2C:9F:92:3C:D0:A7:A6:3D:25:B8:55:FB:25:08:4C:AE:EA:67:0D:EC:79:94:6A:67:11:8B:AD:F3:A8:19:68:50:BA:A2:46:D2:8E:87:A0:9C:53:7B:D4:C0:43:0C:01:DC:75:27:BE:3C:07:93:A9:96:BA:2C:00:C9:A0:5E:3C:79:A5:03:FD:5D:24:D0:08:2C:B3:57:DE:91:71:09:C6:10:DA:6D:9A:6F:C1:37:94:D4:41:FD:6E:11:5E:08:29:C2:29:B8:9F:01:E2:E0:C7:E8:6E:01:A2:07:2C:DC:F4:A2:A4:B6:22:2F:36:1A:92:03:C1:F0:43:94:B9:9C:23:65:D3:E7:0A:3A:CC:62:86:7C:D7:A3:04:DE:48:5F:0A:09:C3:3F:7E:66:75:5A:E4:24:3E:D9:24:19:CF:43:75:38:1C:84:0D:F3:BA:08:FF:F4:1E:88:FE:78:86:06:C4:FF:F4:61:76:2F:B9:E6:D9:98:96:C3:3E:5D:C1:64:B1:C2:01:E8:66:0A:FB:20:C0:93:CF:40:DA:97:E3:FC:1A:14:21:63:94:3C" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001412Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Friday 20 September 2024 20:14:17 -0400 (0:00:00.103) 0:00:51.614 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Friday 20 September 2024 20:14:17 -0400 (0:00:00.077) 0:00:51.691 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Friday 20 September 2024 20:14:17 -0400 (0:00:00.075) 0:00:51.766 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Friday 20 September 2024 20:14:17 -0400 (0:00:00.071) 0:00:51.838 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Friday 20 September 2024 20:14:18 -0400 (0:00:00.103) 0:00:51.941 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Friday 20 September 2024 20:14:18 -0400 (0:00:00.077) 0:00:52.018 ****** 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.043341", "end": "2024-09-20 20:14:18.619501", "rc": 0, "start": "2024-09-20 20:14:18.576160" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Friday 20 September 2024 20:14:18 -0400 (0:00:00.494) 0:00:52.513 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Friday 20 September 2024 20:14:18 -0400 (0:00:00.064) 0:00:52.577 ****** ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Friday 20 September 2024 20:14:18 -0400 (0:00:00.032) 0:00:52.610 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Friday 20 September 2024 20:14:18 -0400 (0:00:00.056) 0:00:52.666 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Friday 20 September 2024 20:14:18 -0400 (0:00:00.055) 0:00:52.722 ****** 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" ] } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Friday 20 September 2024 20:14:19 -0400 (0:00:00.585) 0:00:53.307 ****** skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Friday 20 September 2024 20:14:19 -0400 (0:00:00.062) 0:00:53.370 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877653.7743392, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "22edc9fa0385b5f411341f62cbe0f9def698b7e2", "ctime": 1726877653.770339, "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": 1726877653.770339, "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": "1699536485", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Friday 20 September 2024 20:14:19 -0400 (0:00:00.429) 0:00:53.800 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Friday 20 September 2024 20:14:20 -0400 (0:00:00.075) 0:00:53.875 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Friday 20 September 2024 20:14:20 -0400 (0:00:00.099) 0:00:53.974 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Friday 20 September 2024 20:14:20 -0400 (0:00:00.106) 0:00:54.081 ****** ok: [managed_node2] => { "changed": false, "stat": { "atime": 1726877653.7323387, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "33acdafdf3ba1a9b0e8cb7828331996e8bf2e064", "ctime": 1726877653.770339, "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": 1726877653.770339, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "1699536472", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Friday 20 September 2024 20:14:20 -0400 (0:00:00.312) 0:00:54.394 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Friday 20 September 2024 20:14:20 -0400 (0:00:00.059) 0:00:54.453 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Friday 20 September 2024 20:14:20 -0400 (0:00:00.081) 0:00:54.535 ****** ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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": "D8:B2:0F:12:E2:C7:4A:32:AD:B4:83:F6:54:DA:7C:52:96:93:00:A0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4B:4F:C1:F1:FB:93:49:70:C5:8C:D5:D2:B7:56:55:19:96:49:38:5F:79:E9:07:90:DF:19:9B:C3:C8:24:F5:FC:D1:96:10:4F:26:1C:56:1B:62:97:20:35:DD:09:3F:CD:F0:F9:58:E1:38:F1:85:03:C9:4C:A4:A8:2D:19:DF:81:F8:ED:DB:7A:3B:5F:F5:53:1C:23:2E:D8:73:7A:06:C5:72:56:73:E1:9B:6D:20:83:85:61:02:D7:FF:B0:E8:C7:08:55:20:4A:03:5F:67:0F:67:B5:21:9E:7C:D0:EA:C0:1C:E5:4E:DD:29:78:1D:4D:01:9C:56:84:42:A7:ED:D9:65:0C:5F:61:10:9E:45:D1:11:E3:73:2A:56:E4:D4:73:48:3C:F5:78:EB:53:EB:F2:43:D9:01:B4:3E:6A:C8:33:39:63:D8:BA:A8:20:98:B7:1C:9B:42:3F:2D:E1:B8:1A:CE:26:C5:87:23:8D:1A:A4:B5:B5:1E:86:B2:90:84:DE:D5:5A:C5:49:D6:A2:A4:5F:95:B1:0E:4D:77:F0:A3:AE:50:AA:D1:4B:03:57:1D:97:CF:94:FB:4A:C0:34:8B:6B:37:05:EE:32:A5:66:A7:A4:FA:57:DF:C6:B9:11:E3:FB:AD:51:95:65:4C:CB:AA:1C:D0:F7:0D:8F:A0:E8:D3:D7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001413Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Friday 20 September 2024 20:14:21 -0400 (0:00:00.605) 0:00:55.140 ****** ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "04:C3:AC:86:D8:CE:87:65:2A:71:08:BE:81:CC:C2:D6:0F:C2:85:FF" }, "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": "D8:B2:0F:12:E2:C7:4A:32:AD:B4:83:F6:54:DA:7C:52:96:93:00:A0" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4B:4F:C1:F1:FB:93:49:70:C5:8C:D5:D2:B7:56:55:19:96:49:38:5F:79:E9:07:90:DF:19:9B:C3:C8:24:F5:FC:D1:96:10:4F:26:1C:56:1B:62:97:20:35:DD:09:3F:CD:F0:F9:58:E1:38:F1:85:03:C9:4C:A4:A8:2D:19:DF:81:F8:ED:DB:7A:3B:5F:F5:53:1C:23:2E:D8:73:7A:06:C5:72:56:73:E1:9B:6D:20:83:85:61:02:D7:FF:B0:E8:C7:08:55:20:4A:03:5F:67:0F:67:B5:21:9E:7C:D0:EA:C0:1C:E5:4E:DD:29:78:1D:4D:01:9C:56:84:42:A7:ED:D9:65:0C:5F:61:10:9E:45:D1:11:E3:73:2A:56:E4:D4:73:48:3C:F5:78:EB:53:EB:F2:43:D9:01:B4:3E:6A:C8:33:39:63:D8:BA:A8:20:98:B7:1C:9B:42:3F:2D:E1:B8:1A:CE:26:C5:87:23:8D:1A:A4:B5:B5:1E:86:B2:90:84:DE:D5:5A:C5:49:D6:A2:A4:5F:95:B1:0E:4D:77:F0:A3:AE:50:AA:D1:4B:03:57:1D:97:CF:94:FB:4A:C0:34:8B:6B:37:05:EE:32:A5:66:A7:A4:FA:57:DF:C6:B9:11:E3:FB:AD:51:95:65:4C:CB:AA:1C:D0:F7:0D:8F:A0:E8:D3:D7" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001356Z", "not_valid_before": "20240921001413Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Friday 20 September 2024 20:14:21 -0400 (0:00:00.064) 0:00:55.205 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Friday 20 September 2024 20:14:21 -0400 (0:00:00.059) 0:00:55.264 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Friday 20 September 2024 20:14:21 -0400 (0:00:00.053) 0:00:55.317 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Friday 20 September 2024 20:14:21 -0400 (0:00:00.055) 0:00:55.372 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Friday 20 September 2024 20:14:21 -0400 (0:00:00.084) 0:00:55.457 ****** ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Friday 20 September 2024 20:14:21 -0400 (0:00:00.140) 0:00:55.598 ****** 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.042976", "end": "2024-09-20 20:14:22.247244", "rc": 0, "start": "2024-09-20 20:14:22.204268" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Friday 20 September 2024 20:14:22 -0400 (0:00:00.548) 0:00:56.146 ****** 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 Friday 20 September 2024 20:14:22 -0400 (0:00:00.046) 0:00:56.193 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed -- 14.31s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 9.48s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 2.01s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.63s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.62s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.32s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:2 Ensure user exists ------------------------------------------------------ 1.22s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:5 Parse certificate ------------------------------------------------------- 0.86s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.85s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.84s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Ensure python3 is installed --------------------------------------------- 0.84s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.69s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Retrieve auto-renew flag ------------------------------------------------ 0.68s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Gathering Facts --------------------------------------------------------- 0.65s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:67 Ensure python3 is installed --------------------------------------------- 0.64s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.61s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Parse certificate ------------------------------------------------------- 0.61s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Gathering Facts --------------------------------------------------------- 0.59s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:32 Gathering Facts --------------------------------------------------------- 0.59s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_fs_attrs.yml:14 Ensure python3 is installed --------------------------------------------- 0.59s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18