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_set_file.yml *************************************************** 1 plays in /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml PLAY [Create a postmapped file] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:2 Monday 02 December 2024 18:38:40 -0500 (0:00:00.020) 0:00:00.020 ******* ok: [managed-node3] META: ran handlers TASK [Run the role with test postmap file] ************************************* task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:15 Monday 02 December 2024 18:38:41 -0500 (0:00:00.903) 0:00:00.923 ******* TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts required by role] *** task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Monday 02 December 2024 18:38:41 -0500 (0:00:00.055) 0:00:00.979 ******* included: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml for managed-node3 TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Monday 02 December 2024 18:38:41 -0500 (0:00:00.040) 0:00:01.019 ******* skipping: [managed-node3] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Check if system is ostree] *********** task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Monday 02 December 2024 18:38:41 -0500 (0:00:00.056) 0:00:01.076 ******* ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postfix : Set flag to indicate system is ostree] *** task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Monday 02 December 2024 18:38:41 -0500 (0:00:00.536) 0:00:01.613 ******* ok: [managed-node3] => { "ansible_facts": { "__postfix_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.postfix : Set platform/version specific variables] *** task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Monday 02 December 2024 18:38:41 -0500 (0:00:00.039) 0:00:01.652 ******* ok: [managed-node3] => (item=RedHat.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "submission" ] }, "ansible_included_var_files": [ "/tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [managed-node3] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node3] => (item=CentOS_8.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "smtp-submission" ] }, "ansible_included_var_files": [ "/tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } ok: [managed-node3] => (item=CentOS_8.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "smtp-submission" ] }, "ansible_included_var_files": [ "/tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml" } TASK [fedora.linux_system_roles.postfix : Get status of package(s) ['postfix']] *** task path: /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Monday 02 December 2024 18:38:41 -0500 (0:00:00.082) 0:00:01.734 ******* fatal: [managed-node3]: FAILED! => {} MSG: The conditional check 'postfix_conf.previous is defined' failed. The error was: error while evaluating conditional (postfix_conf.previous is defined): {'relay_domains': '{{ postfix_default_database_type }}:/etc/postfix/relay_domains'}: 'postfix_default_database_type' is undefined The error appears to be in '/tmp/collections-tbR/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-node3 : ok=5 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0 Monday 02 December 2024 18:38:41 -0500 (0:00:00.017) 0:00:01.752 ******* =============================================================================== Gathering Facts --------------------------------------------------------- 0.90s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:2 fedora.linux_system_roles.postfix : Check if system is ostree ----------- 0.54s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.08s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present --- 0.06s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Run the role with test postmap file ------------------------------------- 0.06s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:15 fedora.linux_system_roles.postfix : Ensure ansible_facts required by role --- 0.04s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 fedora.linux_system_roles.postfix : Set flag to indicate system is ostree --- 0.04s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 fedora.linux_system_roles.postfix : Get status of package(s) ['postfix'] --- 0.02s /tmp/collections-tbR/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16