ansible-playbook [core 2.17.7] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-LaQ executable location = /usr/local/bin/ansible-playbook python version = 3.12.8 (main, Dec 3 2024, 00:00:00) [GCC 14.2.1 20241104 (Red Hat 14.2.1-6)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles statically imported: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_basic_ipa.yml ************************************************** 1 plays in /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml PLAY [Test using IPA to issue certs] ******************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:2 Saturday 11 January 2025 07:26:08 -0500 (0:00:00.008) 0:00:00.008 ****** [WARNING]: Platform linux on host managed-node1 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node1] TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:13 Saturday 11 January 2025 07:26:11 -0500 (0:00:03.168) 0:00:03.176 ****** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Skip if not supported] *************************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:18 Saturday 11 January 2025 07:26:11 -0500 (0:00:00.482) 0:00:03.658 ****** META: end_host conditional evaluated to False, continuing execution for managed-node1 skipping: [managed-node1] => { "skip_reason": "end_host conditional evaluated to False, continuing execution for managed-node1" } MSG: end_host conditional evaluated to false, continuing execution for managed-node1 TASK [Set __is_beaker_env] ***************************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:2 Saturday 11 January 2025 07:26:11 -0500 (0:00:00.012) 0:00:03.671 ****** ok: [managed-node1] => { "ansible_facts": { "__is_beaker_env": true }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:9 Saturday 11 January 2025 07:26:11 -0500 (0:00:00.056) 0:00:03.727 ****** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:14 Saturday 11 January 2025 07:26:12 -0500 (0:00:00.386) 0:00:04.114 ****** ok: [managed-node1] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [Install ansible-freeipa] ************************************************* task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:18 Saturday 11 January 2025 07:26:12 -0500 (0:00:00.021) 0:00:04.135 ****** changed: [managed-node1 -> 127.0.0.1] => { "changed": true, "rc": 0, "results": [ "Installed: python3-packaging-23.2-6.el10.noarch", "Installed: python3-cffi-1.16.0-7.el10.x86_64", "Installed: python3-ply-3.11-25.el10.noarch", "Installed: python3-pycparser-2.20-16.el10.noarch", "Installed: ansible-core-1:2.16.14-1.el10.noarch", "Installed: python3-resolvelib-1.0.1-6.el10.noarch", "Installed: python3-cryptography-43.0.0-4.el10.x86_64", "Installed: ansible-freeipa-1.14.1-1.el10.noarch" ] } lsrpackages: ansible-freeipa TASK [Ensure freeipa-repo is absent] ******************************************* task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:24 Saturday 11 January 2025 07:26:18 -0500 (0:00:05.878) 0:00:10.014 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "not __is_beaker_env", "skip_reason": "Conditional result was False" } TASK [Clone ansible-freeipa repo] ********************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:32 Saturday 11 January 2025 07:26:18 -0500 (0:00:00.013) 0:00:10.027 ****** skipping: [managed-node1] => { "changed": false, "false_condition": "not __is_beaker_env", "skip_reason": "Conditional result was False" } TASK [Create role symlinks] **************************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:41 Saturday 11 January 2025 07:26:18 -0500 (0:00:00.014) 0:00:10.042 ****** skipping: [managed-node1] => (item=ipaserver) => { "ansible_loop_var": "item", "changed": false, "false_condition": "not __is_beaker_env", "item": "ipaserver", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=ipaclient) => { "ansible_loop_var": "item", "changed": false, "false_condition": "not __is_beaker_env", "item": "ipaclient", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [Ensure hostname package is installed] ************************************ task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:53 Saturday 11 January 2025 07:26:18 -0500 (0:00:00.016) 0:00:10.058 ****** ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: hostname TASK [Set hostname] ************************************************************ task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:59 Saturday 11 January 2025 07:26:21 -0500 (0:00:03.762) 0:00:13.820 ****** changed: [managed-node1] => { "ansible_facts": { "ansible_domain": "test.local", "ansible_fqdn": "ipaserver.test.local", "ansible_hostname": "ipaserver", "ansible_nodename": "ipaserver.test.local" }, "changed": true, "name": "ipaserver.test.local" } TASK [Ensure nss package is up-to-date] **************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:65 Saturday 11 January 2025 07:26:22 -0500 (0:00:00.999) 0:00:14.819 ****** changed: [managed-node1] => { "changed": true, "rc": 0, "results": [ "Installed: nss-softokn-3.101.0-13.el10.x86_64", "Installed: nss-softokn-freebl-3.101.0-13.el10.x86_64", "Installed: nss-sysinit-3.101.0-13.el10.x86_64", "Installed: nspr-4.35.0-34.el10.x86_64", "Installed: nss-3.101.0-13.el10.x86_64", "Installed: nss-util-3.101.0-13.el10.x86_64" ] } lsrpackages: nss TASK [Include ipaserver role] ************************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:82 Saturday 11 January 2025 07:26:24 -0500 (0:00:01.814) 0:00:16.634 ****** ERROR! the role 'ipaserver' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate The error appears to be in '/tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml': line 84, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: ipaserver ^ here fatal: [managed-node1]: FAILED! => { "changed": false, "reason": "the role 'ipaserver' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate\n\nThe error appears to be in '/tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml': line 84, column 15, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n include_role:\n name: ipaserver\n ^ here\n" } TASK [FAILURE - check entropy] ************************************************* task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:86 Saturday 11 January 2025 07:26:24 -0500 (0:00:00.016) 0:00:16.650 ****** ok: [managed-node1] => { "changed": false, "cmd": [ "cat", "/proc/sys/kernel/random/entropy_avail" ], "delta": "0:00:00.003951", "end": "2025-01-11 07:26:25.201236", "rc": 0, "start": "2025-01-11 07:26:25.197285" } STDOUT: 256 TASK [FAILURE - get logs for debugging] **************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:89 Saturday 11 January 2025 07:26:25 -0500 (0:00:00.500) 0:00:17.150 ****** ok: [managed-node1] => { "changed": false, "cmd": "set -euo pipefail\ncd /var/log\ntar -czf /tmp/ipalogs.tgz $( [[ -e messages ]] && echo messages ) $( [[ -e ipaserver-install.log ]] && echo ipaserver-install.log ) $( [[ -e ipaclient-install.log ]] && echo ipaclient-install.log ) $( [[ -e pki ]] && echo pki )\nchmod '0644' /tmp/ipalogs.tgz", "delta": "0:00:00.017514", "end": "2025-01-11 07:26:25.624297", "rc": 0, "start": "2025-01-11 07:26:25.606783" } TASK [FAILURE - grab archive] ************************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:100 Saturday 11 January 2025 07:26:25 -0500 (0:00:00.420) 0:00:17.571 ****** changed: [managed-node1] => { "changed": true, "checksum": "8f269734c1bf458690d5ba1f27eb80cd680a43fb", "dest": "/tmp/ipalogs.tgz", "md5sum": "764cd248528fc6e345d13091d4de28fa", "remote_checksum": "8f269734c1bf458690d5ba1f27eb80cd680a43fb", "remote_md5sum": null } TASK [FAILURE - unpack archive] ************************************************ task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:105 Saturday 11 January 2025 07:26:26 -0500 (0:00:00.514) 0:00:18.085 ****** ok: [managed-node1 -> 127.0.0.1] => { "changed": false, "cmd": "set -euo pipefail\ncd \"/tmp\"\ntar -xvzf ipalogs.tgz\nchmod 0644 *", "delta": "0:00:01.121324", "end": "2025-01-11 07:26:27.536804", "rc": 0, "start": "2025-01-11 07:26:26.415480" } STDOUT: messages TASK [Failed] ****************************************************************** task path: /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:113 Saturday 11 January 2025 07:26:27 -0500 (0:00:01.371) 0:00:19.457 ****** fatal: [managed-node1]: FAILED! => { "changed": false } MSG: failed PLAY RECAP ********************************************************************* managed-node1 : ok=13 changed=4 unreachable=0 failed=2 skipped=3 rescued=0 ignored=0 TASKS RECAP ******************************************************************** Saturday 11 January 2025 07:26:27 -0500 (0:00:00.011) 0:00:19.469 ****** =============================================================================== Install ansible-freeipa ------------------------------------------------- 5.88s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:18 Ensure hostname package is installed ------------------------------------ 3.76s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:53 Gathering Facts --------------------------------------------------------- 3.17s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:2 Ensure nss package is up-to-date ---------------------------------------- 1.81s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:65 FAILURE - unpack archive ------------------------------------------------ 1.37s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:105 Set hostname ------------------------------------------------------------ 1.00s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:59 FAILURE - grab archive -------------------------------------------------- 0.51s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:100 FAILURE - check entropy ------------------------------------------------- 0.50s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:86 Check if system is ostree ----------------------------------------------- 0.48s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:13 FAILURE - get logs for debugging ---------------------------------------- 0.42s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:89 Check if system is ostree ----------------------------------------------- 0.39s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:9 Set __is_beaker_env ----------------------------------------------------- 0.06s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:2 Set flag to indicate system is ostree ----------------------------------- 0.02s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:14 Create role symlinks ---------------------------------------------------- 0.02s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:41 Include ipaserver role -------------------------------------------------- 0.02s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:82 Clone ansible-freeipa repo ---------------------------------------------- 0.01s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:32 Ensure freeipa-repo is absent ------------------------------------------- 0.01s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:24 Skip if not supported --------------------------------------------------- 0.01s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tests_basic_ipa.yml:18 Failed ------------------------------------------------------------------ 0.01s /tmp/collections-LaQ/ansible_collections/fedora/linux_system_roles/tests/certificate/tasks/setup_ipa.yml:113