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_set_file.yml *************************************************** 1 plays in /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml PLAY [Create a postmapped file] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:2 Monday 02 December 2024 18:37:48 -0500 (0:00:00.024) 0:00:00.024 ******* ok: [managed-node1] META: ran handlers TASK [Run the role with test postmap file] ************************************* task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:15 Monday 02 December 2024 18:37:49 -0500 (0:00:01.186) 0:00:01.210 ******* TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts required by role] *** task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Monday 02 December 2024 18:37:49 -0500 (0:00:00.060) 0:00:01.270 ******* included: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml for managed-node1 TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Monday 02 December 2024 18:37:49 -0500 (0:00:00.028) 0:00:01.299 ******* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Check if system is ostree] *********** task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Monday 02 December 2024 18:37:49 -0500 (0:00:00.042) 0:00:01.341 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postfix : Set flag to indicate system is ostree] *** task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Monday 02 December 2024 18:37:50 -0500 (0:00:00.530) 0:00:01.872 ******* ok: [managed-node1] => { "ansible_facts": { "__postfix_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.postfix : Set platform/version specific variables] *** task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Monday 02 December 2024 18:37:50 -0500 (0:00:00.070) 0:00:01.943 ******* ok: [managed-node1] => (item=RedHat.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "submission" ] }, "ansible_included_var_files": [ "/tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } 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": { "__postfix_smtp_services": [ "smtp", "smtps", "smtp-submission" ] }, "ansible_included_var_files": [ "/tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/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.postfix : Get status of package(s) [u'postfix']] *** task path: /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Monday 02 December 2024 18:37:50 -0500 (0:00:00.142) 0:00:02.085 ******* fatal: [managed-node1]: FAILED! => {} MSG: The conditional check 'postfix_conf.previous is defined' failed. The error was: error while evaluating conditional (postfix_conf.previous is defined): {u'relay_domains': u'{{ postfix_default_database_type }}:/etc/postfix/relay_domains'}: 'postfix_default_database_type' is undefined The error appears to be in '/tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml': line 16, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: # packages need to be added to this check - name: Get status of package(s) {{ __postfix_packages }} ^ 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-node1 : ok=5 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0 Monday 02 December 2024 18:37:50 -0500 (0:00:00.026) 0:00:02.112 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 1.19s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:2 fedora.linux_system_roles.postfix : Check if system is ostree ----------- 0.53s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.14s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 fedora.linux_system_roles.postfix : Set flag to indicate system is ostree --- 0.07s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Run the role with test postmap file ------------------------------------- 0.06s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:15 fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present --- 0.04s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 fedora.linux_system_roles.postfix : Ensure ansible_facts required by role --- 0.03s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 fedora.linux_system_roles.postfix : Get status of package(s) [u'postfix'] --- 0.03s /tmp/collections-VBg/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16