ansible-playbook [core 2.17.5] 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-7yx executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)] (/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 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_include_vars_from_parent.yml *********************************** 1 plays in /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml PLAY [Test role include variable override] ************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml:2 Saturday 26 October 2024 07:24:13 -0400 (0:00:00.007) 0:00:00.007 ****** [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 [Create var file in caller that can override the one in called role] ****** task path: /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml:6 Saturday 26 October 2024 07:24:16 -0400 (0:00:03.027) 0:00:03.035 ****** changed: [managed-node1 -> localhost] => (item=CentOS-10) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/vars/CentOS-10.yml", "gid": 0, "group": "root", "item": "CentOS-10", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1729941856.5622134-6686-87359883912225/.source.yml", "state": "file", "uid": 0 } changed: [managed-node1 -> localhost] => (item=CentOS_10) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/vars/CentOS_10.yml", "gid": 0, "group": "root", "item": "CentOS_10", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1729941857.1186733-6686-136400721153729/.source.yml", "state": "file", "uid": 0 } changed: [managed-node1 -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/vars/CentOS.yml", "gid": 0, "group": "root", "item": "CentOS", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1729941857.490124-6686-87893285280299/.source.yml", "state": "file", "uid": 0 } changed: [managed-node1 -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/vars/RedHat.yml", "gid": 0, "group": "root", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1729941857.8626044-6686-56792535034875/.source.yml", "state": "file", "uid": 0 } TASK [Include role] ************************************************************ task path: /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/tasks/main.yml:4 Saturday 26 October 2024 07:24:18 -0400 (0:00:01.749) 0:00:04.784 ****** included: fedora.linux_system_roles.aide for managed-node1 TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 Saturday 26 October 2024 07:24:18 -0400 (0:00:00.027) 0:00:04.811 ****** included: /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml for managed-node1 TASK [fedora.linux_system_roles.aide : Ensure ansible_facts used by role] ****** task path: /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Saturday 26 October 2024 07:24:18 -0400 (0:00:00.020) 0:00:04.832 ****** fatal: [managed-node1]: FAILED! => {} MSG: The conditional check '__template_required_facts | difference(ansible_facts.keys() | list) | length > 0' failed. The error was: error while evaluating conditional (__template_required_facts | difference(ansible_facts.keys() | list) | length > 0): '__template_required_facts' is undefined The error appears to be in '/tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml': line 2, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: --- - name: Ensure ansible_facts used by role ^ here PLAY RECAP ********************************************************************* managed-node1 : ok=4 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 Saturday 26 October 2024 07:24:18 -0400 (0:00:00.030) 0:00:04.863 ****** =============================================================================== Gathering Facts --------------------------------------------------------- 3.03s /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml:2 Create var file in caller that can override the one in called role ------ 1.75s /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml:6 fedora.linux_system_roles.aide : Ensure ansible_facts used by role ------ 0.03s /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Include role ------------------------------------------------------------ 0.03s /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/tasks/main.yml:4 fedora.linux_system_roles.aide : Set platform/version specific variables --- 0.02s /tmp/collections-7yx/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3