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-LhV/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-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:2 Friday 20 September 2024 20:14:16 -0400 (0:00:00.045) 0:00:00.045 ****** ok: [managed_node1] 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:17 -0400 (0:00:00.978) 0:00:01.024 ****** included: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for managed_node1 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:17 -0400 (0:00:00.048) 0:00:01.072 ****** skipping: [managed_node1] => { "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:17 -0400 (0:00:00.057) 0:00:01.130 ****** ok: [managed_node1] => { "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:14:17 -0400 (0:00:00.530) 0:00:01.661 ****** ok: [managed_node1] => { "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:14:17 -0400 (0:00:00.092) 0:00:01.753 ****** skipping: [managed_node1] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [managed_node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed_node1] => (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_node1] => (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:17 -0400 (0:00:00.120) 0:00:01.874 ****** ok: [managed_node1] => { "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:19 -0400 (0:00:01.957) 0:00:03.831 ****** ok: [managed_node1] => (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:20 -0400 (0:00:00.784) 0:00:04.616 ****** ok: [managed_node1] => (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:21 -0400 (0:00:00.584) 0:00:05.201 ****** ok: [managed_node1] => (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:21 -0400 (0:00:00.448) 0:00:05.649 ****** ok: [managed_node1] => (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:38 EDT", "ActiveEnterTimestampMonotonic": "260118864", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.service system.slice syslog.target network.target systemd-journald.socket", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Fri 2024-09-20 20:13:38 EDT", "AssertTimestampMonotonic": "260101381", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Fri 2024-09-20 20:13:38 EDT", "ConditionTimestampMonotonic": "260101379", "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": "9567", "ExecMainStartTimestamp": "Fri 2024-09-20 20:13:38 EDT", "ExecMainStartTimestampMonotonic": "260101978", "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:38 EDT] ; stop_time=[n/a] ; pid=9567 ; 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:38 EDT", "InactiveExitTimestampMonotonic": "260102029", "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": "9567", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Fri 2024-09-20 20:13:38 EDT", "WatchdogTimestampMonotonic": "260118672", "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:22 -0400 (0:00:00.832) 0:00:06.481 ****** changed: [managed_node1] => (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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 Friday 20 September 2024 20:14:23 -0400 (0:00:01.012) 0:00:07.494 ****** skipping: [managed_node1] => (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_node1] => (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_node1] => (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-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Friday 20 September 2024 20:14:23 -0400 (0:00:00.118) 0:00:07.612 ****** skipping: [managed_node1] => { "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:23 -0400 (0:00:00.124) 0:00:07.737 ****** skipping: [managed_node1] => { "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:23 -0400 (0:00:00.071) 0:00:07.808 ****** skipping: [managed_node1] => { "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_provider.yml:13 Friday 20 September 2024 20:14:23 -0400 (0:00:00.073) 0:00:07.882 ****** ok: [managed_node1] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:27 Friday 20 September 2024 20:14:24 -0400 (0:00:00.813) 0:00:08.696 ****** included: /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml for managed_node1 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:24 -0400 (0:00:00.122) 0:00:08.819 ****** ok: [managed_node1] => { "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:24 -0400 (0:00:00.045) 0:00:08.864 ****** skipping: [managed_node1] => { "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:24 -0400 (0:00:00.083) 0:00:08.947 ****** skipping: [managed_node1] => { "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:25 -0400 (0:00:00.061) 0:00:09.008 ****** ok: [managed_node1] => { "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:25 -0400 (0:00:00.648) 0:00:09.657 ****** skipping: [managed_node1] => { "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:25 -0400 (0:00:00.080) 0:00:09.738 ****** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1726877663.316912, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4c27cbdc1b06c9a8a6fe582ff435aad6730e8e13", "ctime": 1726877663.313912, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172749, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1726877663.313912, "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": "18446744072855827571", "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:26 -0400 (0:00:00.372) 0:00:10.110 ****** ok: [managed_node1] => { "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:26 -0400 (0:00:00.082) 0:00:10.192 ****** ok: [managed_node1] => { "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:26 -0400 (0:00:00.078) 0:00:10.271 ****** ok: [managed_node1] => { "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:26 -0400 (0:00:00.060) 0:00:10.331 ****** ok: [managed_node1] => { "changed": false, "stat": { "atime": 1726877663.2749119, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8996716d5de6d78b6a60023f5877a45ab372b7d9", "ctime": 1726877663.313912, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 172748, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1726877663.313912, "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": "18446744072855827558", "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:26 -0400 (0:00:00.567) 0:00:10.899 ****** ok: [managed_node1] => { "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:26 -0400 (0:00:00.065) 0:00:10.964 ****** ok: [managed_node1] => { "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:27 -0400 (0:00:00.065) 0:00:11.029 ****** ok: [managed_node1] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:92:58:F1:32:E4:94:BC:56:55:F7:74:78:43:2D:35:35:CC:BA:8D" }, "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": "2D:DC:32:23:3A:53:F2:B1:73:41:0B:40:B5:3F:35:90:58:A3:CF:BE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2F:B2:F7:21:C8:46:BF:2E:52:A6:CC:95:E9:6F:9D:00:B1:25:69:30:C2:42:D4:E0:1D:B8:EC:3C:D1:3F:08:46:3B:73:39:3B:A1:65:F1:37:20:8E:78:7D:3E:1D:35:40:4A:2A:B6:7A:93:D3:12:19:02:92:EC:96:A2:BE:A6:FC:FB:1C:6B:60:E2:5D:C7:BD:A5:07:DA:9F:46:AE:8B:80:67:B8:F0:C8:B3:66:E6:DD:1C:13:2F:41:CB:24:75:4C:6A:4F:64:C6:0A:C8:84:F8:A8:40:B6:0E:08:DF:CD:A0:2F:47:9D:5D:46:98:57:01:DA:27:91:B1:E2:2E:C4:53:33:43:8B:6D:A2:86:7F:96:B6:9F:9D:76:C0:22:F2:A1:58:78:4E:F9:73:6A:98:6B:CF:24:88:23:45:CA:5C:2C:A1:8F:05:7F:7C:B3:69:2D:EB:22:FD:57:DF:A9:E6:3A:70:83:72:AB:79:6B:85:C7:51:D6:75:6F:A9:A1:EE:05:CA:E8:7C:88:A7:1E:14:19:8B:7B:9B:F4:85:35:4C:DE:7D:B5:DE:C6:A6:49:FD:D5:B9:D8:96:E5:8F:52:E9:2B:FC:17:FD:72:9D:9B:4E:01:C6:14:A9:35:82:46:7F:63:B7:09:E1:37:66:0A:E5:9E:EA:64:20:72:28:92:58:27" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001338Z", "not_valid_before": "20240921001423Z" } }, "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:27 -0400 (0:00:00.524) 0:00:11.554 ****** ok: [managed_node1] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2F:92:58:F1:32:E4:94:BC:56:55:F7:74:78:43:2D:35:35:CC:BA:8D" }, "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": "2D:DC:32:23:3A:53:F2:B1:73:41:0B:40:B5:3F:35:90:58:A3:CF:BE" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "2F:B2:F7:21:C8:46:BF:2E:52:A6:CC:95:E9:6F:9D:00:B1:25:69:30:C2:42:D4:E0:1D:B8:EC:3C:D1:3F:08:46:3B:73:39:3B:A1:65:F1:37:20:8E:78:7D:3E:1D:35:40:4A:2A:B6:7A:93:D3:12:19:02:92:EC:96:A2:BE:A6:FC:FB:1C:6B:60:E2:5D:C7:BD:A5:07:DA:9F:46:AE:8B:80:67:B8:F0:C8:B3:66:E6:DD:1C:13:2F:41:CB:24:75:4C:6A:4F:64:C6:0A:C8:84:F8:A8:40:B6:0E:08:DF:CD:A0:2F:47:9D:5D:46:98:57:01:DA:27:91:B1:E2:2E:C4:53:33:43:8B:6D:A2:86:7F:96:B6:9F:9D:76:C0:22:F2:A1:58:78:4E:F9:73:6A:98:6B:CF:24:88:23:45:CA:5C:2C:A1:8F:05:7F:7C:B3:69:2D:EB:22:FD:57:DF:A9:E6:3A:70:83:72:AB:79:6B:85:C7:51:D6:75:6F:A9:A1:EE:05:CA:E8:7C:88:A7:1E:14:19:8B:7B:9B:F4:85:35:4C:DE:7D:B5:DE:C6:A6:49:FD:D5:B9:D8:96:E5:8F:52:E9:2B:FC:17:FD:72:9D:9B:4E:01:C6:14:A9:35:82:46:7F:63:B7:09:E1:37:66:0A:E5:9E:EA:64:20:72:28:92:58:27" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250921001338Z", "not_valid_before": "20240921001423Z" } } }, "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:27 -0400 (0:00:00.048) 0:00:11.603 ****** ok: [managed_node1] => { "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:27 -0400 (0:00:00.058) 0:00:11.661 ****** ok: [managed_node1] => { "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:27 -0400 (0:00:00.049) 0:00:11.710 ****** ok: [managed_node1] => { "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:27 -0400 (0:00:00.049) 0:00:11.760 ****** ok: [managed_node1] => { "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:27 -0400 (0:00:00.053) 0:00:11.813 ****** ok: [managed_node1] => { "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:27 -0400 (0:00:00.053) 0:00:11.866 ****** ok: [managed_node1] => { "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.043510", "end": "2024-09-20 20:14:28.300729", "rc": 0, "start": "2024-09-20 20:14:28.257219" } 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:28 -0400 (0:00:00.539) 0:00:12.406 ****** ok: [managed_node1] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node1 : ok=31 changed=1 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 Friday 20 September 2024 20:14:28 -0400 (0:00:00.057) 0:00:12.464 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 1.96s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.01s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:101 Gathering Facts --------------------------------------------------------- 0.98s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:2 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.83s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:90 Gathering Facts --------------------------------------------------------- 0.81s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:13 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 0.78s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:23 Ensure python3 is installed --------------------------------------------- 0.65s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.58s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:35 Retrieve key file stats ------------------------------------------------- 0.57s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:65 Retrieve auto-renew flag ------------------------------------------------ 0.54s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:143 fedora.linux_system_roles.certificate : Check if system is ostree ------- 0.53s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:10 Parse certificate ------------------------------------------------------- 0.52s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:86 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.45s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:61 Retrieve certificate file stats ----------------------------------------- 0.37s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:38 fedora.linux_system_roles.certificate : Create return data -------------- 0.12s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:160 Verify each certificate ------------------------------------------------- 0.12s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_provider.yml:27 fedora.linux_system_roles.certificate : Set platform/version specific variables --- 0.12s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:19 fedora.linux_system_roles.certificate : Slurp the contents of the files --- 0.12s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:152 fedora.linux_system_roles.certificate : Set flag to indicate system is ostree --- 0.09s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:15 Check if system is ostree ----------------------------------------------- 0.08s /tmp/collections-LhV/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/assert_certificate_parameters.yml:9