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_provider.yml *************************************************** 2 plays in /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml PLAY [Test issuing certificate with certmonger provider] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:2 Saturday 31 August 2024 08:25:29 -0400 (0:00:00.039) 0:00:00.039 ******* ok: [managed_node2] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 31 August 2024 08:25:29 -0400 (0:00:00.812) 0:00:00.851 ******* included: /tmp/collections-B9h/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-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 31 August 2024 08:25:29 -0400 (0:00:00.027) 0:00:00.878 ******* 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-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Saturday 31 August 2024 08:25:29 -0400 (0:00:00.039) 0:00:00.918 ******* 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-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Saturday 31 August 2024 08:25:30 -0400 (0:00:00.421) 0:00:01.340 ******* 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-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Saturday 31 August 2024 08:25:30 -0400 (0:00:00.067) 0:00:01.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-B9h/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-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 31 August 2024 08:25:30 -0400 (0:00:00.105) 0:00:01.512 ******* ok: [managed_node2] => { "changed": false, "rc": 0, "results": [ "python2-pyasn1-0.1.9-7.el7.noarch providing python-pyasn1 is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python-cryptography is already installed", "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Saturday 31 August 2024 08:25:34 -0400 (0:00:04.416) 0:00:05.929 ******* ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [ "certmonger-0.78.4-17.el7_9.x86_64 providing certmonger is already installed" ] } lsrpackages: certmonger TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Saturday 31 August 2024 08:25:35 -0400 (0:00:00.586) 0:00:06.516 ******* 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-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.455) 0:00:06.971 ******* 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-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Saturday 31 August 2024 08:25:36 -0400 (0:00:00.420) 0:00:07.391 ******* ok: [managed_node2] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-08-31 08:24:48 EDT", "ActiveEnterTimestampMonotonic": "228396290", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service syslog.target network.target systemd-journald.socket basic.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-08-31 08:24:48 EDT", "AssertTimestampMonotonic": "228365620", "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": "Sat 2024-08-31 08:24:48 EDT", "ConditionTimestampMonotonic": "228365618", "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": "9802", "ExecMainStartTimestamp": "Sat 2024-08-31 08:24:48 EDT", "ExecMainStartTimestampMonotonic": "228367211", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /var/run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-08-31 08:24:48 EDT] ; stop_time=[n/a] ; pid=9802 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-08-31 08:24:48 EDT", "InactiveExitTimestampMonotonic": "228367250", "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": "9802", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Sat 2024-08-31 08:24:48 EDT", "WatchdogTimestampMonotonic": "228396239", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Saturday 31 August 2024 08:25:37 -0400 (0:00:00.805) 0:00:08.197 ******* changed: [managed_node2] => (item={u'ca': u'self-sign', u'name': u'mycert_provider', u'dns': u'www.example.com', u'provider': u'certmonger'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } } MSG: Certificate requested (new). TASK [fedora.linux_system_roles.certificate : Slurp the contents of the files] *** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Saturday 31 August 2024 08:25:38 -0400 (0:00:01.195) 0:00:09.392 ******* skipping: [managed_node2] => (item=[u'cert', {u'ca': u'self-sign', u'name': u'mycert_provider', u'dns': u'www.example.com', u'provider': u'certmonger'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'key', {u'ca': u'self-sign', u'name': u'mycert_provider', u'dns': u'www.example.com', u'provider': u'certmonger'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } ], "skip_reason": "Conditional result was False" } skipping: [managed_node2] => (item=[u'ca', {u'ca': u'self-sign', u'name': u'mycert_provider', u'dns': u'www.example.com', u'provider': u'certmonger'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_provider", "provider": "certmonger" } ], "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Create return data] ************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Saturday 31 August 2024 08:25:38 -0400 (0:00:00.080) 0:00:09.473 ******* skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Stop tracking certificates] ****** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:176 Saturday 31 August 2024 08:25:38 -0400 (0:00:00.061) 0:00:09.535 ******* skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Remove files] ******************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:181 Saturday 31 August 2024 08:25:38 -0400 (0:00:00.073) 0:00:09.608 ******* 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-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:13 Saturday 31 August 2024 08:25:38 -0400 (0:00:00.067) 0:00:09.676 ******* ok: [managed_node2] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:27 Saturday 31 August 2024 08:25:39 -0400 (0:00:00.601) 0:00:10.277 ******* included: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node2 TASK [Set virtualenv_path] ***************************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:2 Saturday 31 August 2024 08:25:39 -0400 (0:00:00.103) 0:00:10.381 ******* ok: [managed_node2] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9 Saturday 31 August 2024 08:25:39 -0400 (0:00:00.022) 0:00:10.404 ******* skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:14 Saturday 31 August 2024 08:25:39 -0400 (0:00:00.051) 0:00:10.455 ******* skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Saturday 31 August 2024 08:25:39 -0400 (0:00:00.041) 0:00:10.496 ******* ok: [managed_node2] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:28 Saturday 31 August 2024 08:25:40 -0400 (0:00:00.692) 0:00:11.189 ******* skipping: [managed_node2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Saturday 31 August 2024 08:25:40 -0400 (0:00:00.043) 0:00:11.232 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107138.1899755, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "201df7594b510495ee3d0f56bba875aa7dc937f9", "ctime": 1725107138.1849756, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172753, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1725107138.1849756, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_provider.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "18446744072958608843", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:43 Saturday 31 August 2024 08:25:40 -0400 (0:00:00.396) 0:00:11.628 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 Saturday 31 August 2024 08:25:40 -0400 (0:00:00.070) 0:00:11.699 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:59 Saturday 31 August 2024 08:25:40 -0400 (0:00:00.130) 0:00:11.829 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Saturday 31 August 2024 08:25:40 -0400 (0:00:00.071) 0:00:11.900 ******* ok: [managed_node2] => { "changed": false, "stat": { "atime": 1725107138.1449754, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "0d85ad5106e1dbdc723c139ec8602409beeda668", "ctime": 1725107138.1849756, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172752, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1725107138.1849756, "nlink": 1, "path": "/etc/pki/tls/private/mycert_provider.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "18446744072958608830", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:70 Saturday 31 August 2024 08:25:41 -0400 (0:00:00.361) 0:00:12.262 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:76 Saturday 31 August 2024 08:25:41 -0400 (0:00:00.044) 0:00:12.306 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Saturday 31 August 2024 08:25:41 -0400 (0:00:00.051) 0:00:12.358 ******* ok: [managed_node2] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "62:39:B3:0E:07:39:FF:8A:AF:57:52:67:DB:43:1A:9B:81:9F:08:C7" }, "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": "A4:75:2B:C0:7C:FF:73:17:E2:75:92:6E:DA:56:AF:62:DF:BF:24:7D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "9F:32:0B:EF:6D:E7:52:99:21:4D:E9:41:E6:86:6B:94:0D:8E:EF:72:C4:CB:5D:40:DF:A0:CC:68:21:5B:DC:68:D7:06:CF:D1:FA:B6:D7:FC:3D:03:C8:C1:43:71:4E:F0:B3:A3:7F:88:13:D1:C3:4B:5E:53:FE:FD:4A:E7:62:58:6F:A9:03:D6:63:CC:AA:18:81:B5:0F:36:C9:00:7A:B2:E4:44:5F:CF:03:1E:07:B8:5B:0A:1E:51:53:D2:DF:13:E2:80:03:6D:01:EB:E8:1C:5B:9E:92:7A:F5:13:F4:E7:99:C8:1C:2D:5A:F9:2C:39:A0:4B:9A:33:8B:45:74:D0:19:D0:F7:FA:80:D2:32:10:98:C7:A4:68:5F:18:5A:2A:F1:3E:AF:8C:F4:85:70:1B:4C:84:60:53:44:AD:C3:C5:1A:93:1A:2F:C7:01:CE:B3:0A:0A:E8:E1:A0:06:28:F9:0C:4B:20:92:D1:06:6E:D8:7C:FB:13:16:0A:A1:A3:F7:3C:A4:A8:76:32:7B:ED:AE:FA:3B:B4:E1:88:B5:87:26:B7:C0:28:9C:C4:18:CC:BB:FE:C7:58:FC:2D:DF:89:24:6B:9B:36:06:1F:16:6B:1B:E4:7F:AC:61:40:00:40:4E:63:01:2F:D7:3E:EA:58:A2:39:FD:D5:A9:03:55:37:51" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122448Z", "not_valid_before": "20240831122538Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92 Saturday 31 August 2024 08:25:42 -0400 (0:00:00.708) 0:00:13.066 ******* ok: [managed_node2] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "62:39:B3:0E:07:39:FF:8A:AF:57:52:67:DB:43:1A:9B:81:9F:08:C7" }, "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": "A4:75:2B:C0:7C:FF:73:17:E2:75:92:6E:DA:56:AF:62:DF:BF:24:7D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "9F:32:0B:EF:6D:E7:52:99:21:4D:E9:41:E6:86:6B:94:0D:8E:EF:72:C4:CB:5D:40:DF:A0:CC:68:21:5B:DC:68:D7:06:CF:D1:FA:B6:D7:FC:3D:03:C8:C1:43:71:4E:F0:B3:A3:7F:88:13:D1:C3:4B:5E:53:FE:FD:4A:E7:62:58:6F:A9:03:D6:63:CC:AA:18:81:B5:0F:36:C9:00:7A:B2:E4:44:5F:CF:03:1E:07:B8:5B:0A:1E:51:53:D2:DF:13:E2:80:03:6D:01:EB:E8:1C:5B:9E:92:7A:F5:13:F4:E7:99:C8:1C:2D:5A:F9:2C:39:A0:4B:9A:33:8B:45:74:D0:19:D0:F7:FA:80:D2:32:10:98:C7:A4:68:5F:18:5A:2A:F1:3E:AF:8C:F4:85:70:1B:4C:84:60:53:44:AD:C3:C5:1A:93:1A:2F:C7:01:CE:B3:0A:0A:E8:E1:A0:06:28:F9:0C:4B:20:92:D1:06:6E:D8:7C:FB:13:16:0A:A1:A3:F7:3C:A4:A8:76:32:7B:ED:AE:FA:3B:B4:E1:88:B5:87:26:B7:C0:28:9C:C4:18:CC:BB:FE:C7:58:FC:2D:DF:89:24:6B:9B:36:06:1F:16:6B:1B:E4:7F:AC:61:40:00:40:4E:63:01:2F:D7:3E:EA:58:A2:39:FD:D5:A9:03:55:37:51" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250831122448Z", "not_valid_before": "20240831122538Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 Saturday 31 August 2024 08:25:42 -0400 (0:00:00.076) 0:00:13.142 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:104 Saturday 31 August 2024 08:25:42 -0400 (0:00:00.086) 0:00:13.228 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:112 Saturday 31 August 2024 08:25:42 -0400 (0:00:00.061) 0:00:13.290 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:119 Saturday 31 August 2024 08:25:42 -0400 (0:00:00.055) 0:00:13.345 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:130 Saturday 31 August 2024 08:25:42 -0400 (0:00:00.057) 0:00:13.403 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 Saturday 31 August 2024 08:25:42 -0400 (0:00:00.054) 0:00:13.457 ******* ok: [managed_node2] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_provider.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.045926", "end": "2024-08-31 08:25:42.998412", "rc": 0, "start": "2024-08-31 08:25:42.952486" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:152 Saturday 31 August 2024 08:25:43 -0400 (0:00:00.552) 0:00:14.010 ******* ok: [managed_node2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node2 : ok=31 changed=1 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Saturday 31 August 2024 08:25:43 -0400 (0:00:00.043) 0:00:14.054 ******* =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 4.42s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.20s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.81s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.81s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Parse certificate ------------------------------------------------------- 0.71s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 Ensure python3 is installed --------------------------------------------- 0.69s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.60s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:13 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.59s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Retrieve auto-renew flag ------------------------------------------------ 0.55s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.46s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.42s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.42s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.40s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 Retrieve key file stats ------------------------------------------------- 0.36s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Verify certificate file owner and group --------------------------------- 0.13s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:49 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.11s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 Verify each certificate ------------------------------------------------- 0.10s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:27 Verify certificate subject ---------------------------------------------- 0.09s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:96 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.08s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Load certificate YAML to cert_issued variable --------------------------- 0.08s /tmp/collections-B9h/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:92