ansible-playbook 2.9.27 config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.9/site-packages/ansible executable location = /usr/local/bin/ansible-playbook python version = 3.9.19 (main, May 16 2024, 11:40:09) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] No config file found; using defaults [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_custom_template.yml ******************************************** 1 plays in /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/tests/aide/tests_custom_template.yml PLAY [Ensure that the role runs with default parameters] *********************** META: ran handlers TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 Monday 11 November 2024 07:52:44 -0500 (0:00:00.034) 0:00:00.034 ******* included: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml for managed-node2 TASK [fedora.linux_system_roles.aide : Ensure ansible_facts used by role] ****** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 Monday 11 November 2024 07:52:45 -0500 (0:00:00.050) 0:00:00.085 ******* ok: [managed-node2] TASK [fedora.linux_system_roles.aide : Check if system is ostree] ************** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:10 Monday 11 November 2024 07:52:46 -0500 (0:00:01.030) 0:00:01.115 ******* ok: [managed-node2] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.aide : Set flag to indicate system is ostree] *** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:15 Monday 11 November 2024 07:52:46 -0500 (0:00:00.618) 0:00:01.733 ******* ok: [managed-node2] => { "ansible_facts": { "__aide_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.aide : Set platform/version specific variables] *** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19 Monday 11 November 2024 07:52:46 -0500 (0:00:00.067) 0:00:01.801 ******* 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" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node2] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.aide : Ensure required packages are installed] *** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 Monday 11 November 2024 07:52:46 -0500 (0:00:00.073) 0:00:01.874 ******* changed: [managed-node2] => { "changed": true, "rc": 0, "results": [ "Installed: aide-0.16-14.el8_5.1.x86_64" ] } TASK [fedora.linux_system_roles.aide : Ensure required services are enabled and started] *** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:15 Monday 11 November 2024 07:53:04 -0500 (0:00:17.318) 0:00:19.193 ******* TASK [fedora.linux_system_roles.aide : Generate "/etc/aide.conf"] ************** task path: /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:22 Monday 11 November 2024 07:53:04 -0500 (0:00:00.050) 0:00:19.244 ******* [DEPRECATION WARNING]: evaluating 'aide_custom_template' as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. fatal: [managed-node2]: FAILED! => {} MSG: The conditional check 'aide_custom_template' failed. The error was: error while evaluating conditional (aide_custom_template): 'files' is undefined The error appears to be in '/tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml': line 22, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Generate "/etc/{{ __aide_config }}" ^ here We could be wrong, but this one looks like it might be an issue with missing quotes. Always quote template expression brackets when they start a value. For instance: with_items: - {{ foo }} Should be written as: with_items: - "{{ foo }}" PLAY RECAP ********************************************************************* managed-node2 : ok=5 changed=1 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Monday 11 November 2024 07:53:04 -0500 (0:00:00.013) 0:00:19.257 ******* =============================================================================== fedora.linux_system_roles.aide : Ensure required packages are installed -- 17.32s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:7 fedora.linux_system_roles.aide : Ensure ansible_facts used by role ------ 1.03s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:2 fedora.linux_system_roles.aide : Check if system is ostree -------------- 0.62s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:10 fedora.linux_system_roles.aide : Set platform/version specific variables --- 0.07s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:19 fedora.linux_system_roles.aide : Set flag to indicate system is ostree --- 0.07s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/set_vars.yml:15 fedora.linux_system_roles.aide : Set platform/version specific variables --- 0.05s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:3 fedora.linux_system_roles.aide : Ensure required services are enabled and started --- 0.05s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:15 fedora.linux_system_roles.aide : Generate "/etc/aide.conf" -------------- 0.01s /tmp/collections-Lcc/ansible_collections/fedora/linux_system_roles/roles/aide/tasks/main.yml:22