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-dVo executable location = /usr/local/bin/ansible-playbook python version = 3.12.6 (main, Sep 9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/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-dVo/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-dVo/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml:2 Saturday 02 November 2024 07:22:11 -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.9, 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-dVo/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml:6 Saturday 02 November 2024 07:22:14 -0400 (0:00:02.627) 0:00:02.634 ***** changed: [managed-node1 -> localhost] => (item=CentOS-9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/vars/CentOS-9.yml", "gid": 0, "group": "root", "item": "CentOS-9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1730546534.2556453-6713-27355939974636/.source.yml", "state": "file", "uid": 0 } changed: [managed-node1 -> localhost] => (item=CentOS_9) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/vars/CentOS_9.yml", "gid": 0, "group": "root", "item": "CentOS_9", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1730546534.8230886-6713-215807433373519/.source.yml", "state": "file", "uid": 0 } changed: [managed-node1 -> localhost] => (item=CentOS) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-dVo/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-1730546535.2137423-6713-100924002096678/.source.yml", "state": "file", "uid": 0 } changed: [managed-node1 -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/collections-dVo/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-1730546535.601322-6713-82858010345599/.source.yml", "state": "file", "uid": 0 } TASK [Include role] ************************************************************ task path: /tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/tasks/main.yml:4 Saturday 02 November 2024 07:22:15 -0400 (0:00:01.821) 0:00:04.456 ***** included: fedora.linux_system_roles.aide for managed-node1 TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 Saturday 02 November 2024 07:22:16 -0400 (0:00:00.042) 0:00:04.498 ***** included: /tmp/collections-dVo/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-dVo/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Saturday 02 November 2024 07:22:16 -0400 (0:00:00.020) 0:00:04.519 ***** 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-dVo/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 02 November 2024 07:22:16 -0400 (0:00:00.030) 0:00:04.550 ***** =============================================================================== Gathering Facts --------------------------------------------------------- 2.63s /tmp/collections-dVo/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.82s /tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/tests/aide/tests_include_vars_from_parent.yml:6 Include role ------------------------------------------------------------ 0.04s /tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/tests/aide/roles/caller/tasks/main.yml:4 fedora.linux_system_roles.aide : Ensure ansible_facts used by role ------ 0.03s /tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 fedora.linux_system_roles.aide : Set platform/version specific variables --- 0.02s /tmp/collections-dVo/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3