ansible-playbook [core 2.17.12] 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-18B executable location = /usr/local/bin/ansible-playbook python version = 3.12.10 (main, May 9 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)] (/usr/bin/python3.12) jinja version = 3.1.6 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. 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_set_file.yml *************************************************** 1 plays in /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml PLAY [Create a postmapped file] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:2 Saturday 24 May 2025 13:15:28 -0400 (0:00:00.018) 0:00:00.018 ********** [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 [Run the role with test postmap file] ************************************* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:13 Saturday 24 May 2025 13:15:29 -0400 (0:00:01.121) 0:00:01.139 ********** included: fedora.linux_system_roles.postfix for managed-node1 TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts required by role] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.056) 0:00:01.196 ********** included: /tmp/collections-18B/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-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.018) 0:00:01.215 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__postfix_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Check if system is ostree] *********** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.033) 0:00:01.249 ********** 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-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.458) 0:00:01.707 ********** 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-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.022) 0:00:01.730 ********** ok: [managed-node1] => (item=RedHat.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "submission" ] }, "ansible_included_var_files": [ "/tmp/collections-18B/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, "false_condition": "__postfix_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item=CentOS_9.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "smtp-submission" ] }, "ansible_included_var_files": [ "/tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [managed-node1] => (item=CentOS_9.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "smtp-submission" ] }, "ansible_included_var_files": [ "/tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [fedora.linux_system_roles.postfix : Get status of package(s) ['postfix']] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.043) 0:00:01.773 ********** skipping: [managed-node1] => (item=postfix) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_conf.previous is defined", "item": "postfix", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.postfix : Remove package(s) to reset original confs ['postfix']] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.021) 0:00:01.794 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postfix_conf.previous is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Get status of config files] ********** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.017) 0:00:01.811 ********** skipping: [managed-node1] => (item=postfix) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_conf.previous | d() == \"replaced\"", "item": "postfix", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.postfix : Remove config files - make empty] **** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.035) 0:00:01.847 ********** skipping: [managed-node1] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.postfix : Configure firewall] ****************** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.036) 0:00:01.883 ********** included: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml for managed-node1 TASK [Ensure the postfix ports status with the firewall role] ****************** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.019) 0:00:01.902 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postfix_manage_firewall | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Configure selinux] ******************* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.030) 0:00:01.933 ********** included: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml for managed-node1 TASK [fedora.linux_system_roles.postfix : Get the smtp related tcp service ports] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.023) 0:00:01.956 ********** skipping: [managed-node1] => (item=smtp) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": "smtp", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=smtps) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": "smtps", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=smtp-submission) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": "smtp-submission", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.postfix : Initialize _postfix_selinux] ********* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 Saturday 24 May 2025 13:15:29 -0400 (0:00:00.039) 0:00:01.996 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postfix_manage_selinux | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Add the smtp related service ports to _postfix_selinux] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37 Saturday 24 May 2025 13:15:30 -0400 (0:00:00.030) 0:00:02.026 ********** skipping: [managed-node1] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'false_condition': 'postfix_manage_selinux | bool', 'item': 'smtp', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": "smtp", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'false_condition': 'postfix_manage_selinux | bool', 'item': 'smtps', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": "smtps", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'false_condition': 'postfix_manage_selinux | bool', 'item': 'smtp-submission', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_selinux | bool", "item": "smtp-submission", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.postfix : Set hardcoded ports to _postfix_selinux for no firewall or rhel-6 or not redhat] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 Saturday 24 May 2025 13:15:30 -0400 (0:00:00.040) 0:00:02.067 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postfix_manage_selinux | bool", "skip_reason": "Conditional result was False" } TASK [Ensure the service and the ports status with the selinux role] *********** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Saturday 24 May 2025 13:15:30 -0400 (0:00:00.030) 0:00:02.097 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postfix_manage_selinux | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Install Postfix] ********************* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:60 Saturday 24 May 2025 13:15:30 -0400 (0:00:00.029) 0:00:02.127 ********** fatal: [managed-node1]: FAILED! => { "changed": false, "rc": 1, "results": [] } MSG: Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried PLAY RECAP ********************************************************************* managed-node1 : ok=8 changed=0 unreachable=0 failed=1 skipped=11 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.17.12", "end_time": "2025-05-24T17:15:35.926184+00:00Z", "host": "managed-node1", "message": "Failed to download metadata for repo 'highavailability': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried", "rc": 1, "start_time": "2025-05-24T17:15:30.123871+00:00Z", "task_name": "Install Postfix", "task_path": "/tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:60" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 24 May 2025 13:15:35 -0400 (0:00:05.804) 0:00:07.931 ********** =============================================================================== fedora.linux_system_roles.postfix : Install Postfix --------------------- 5.80s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:60 Gathering Facts --------------------------------------------------------- 1.12s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:2 fedora.linux_system_roles.postfix : Check if system is ostree ----------- 0.46s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Run the role with test postmap file ------------------------------------- 0.06s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_file.yml:13 fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 fedora.linux_system_roles.postfix : Add the smtp related service ports to _postfix_selinux --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37 fedora.linux_system_roles.postfix : Get the smtp related tcp service ports --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 fedora.linux_system_roles.postfix : Remove config files - make empty ---- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 fedora.linux_system_roles.postfix : Get status of config files ---------- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present --- 0.03s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Ensure the postfix ports status with the firewall role ------------------ 0.03s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 fedora.linux_system_roles.postfix : Initialize _postfix_selinux --------- 0.03s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 fedora.linux_system_roles.postfix : Set hardcoded ports to _postfix_selinux for no firewall or rhel-6 or not redhat --- 0.03s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 Ensure the service and the ports status with the selinux role ----------- 0.03s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 fedora.linux_system_roles.postfix : Configure selinux ------------------- 0.02s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 fedora.linux_system_roles.postfix : Set flag to indicate system is ostree --- 0.02s /tmp/collections-18B/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-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 fedora.linux_system_roles.postfix : Configure firewall ------------------ 0.02s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 fedora.linux_system_roles.postfix : Ensure ansible_facts required by role --- 0.02s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 fedora.linux_system_roles.postfix : Remove package(s) to reset original confs ['postfix'] --- 0.02s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23