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_banner.yml ************************************************* 1 plays in /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml PLAY [Set smtpd banner] ******************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 Saturday 24 May 2025 13:15:19 -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 smtpd_banner] ************************************* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 Saturday 24 May 2025 13:15:21 -0400 (0:00:01.092) 0:00:01.111 ********** 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:21 -0400 (0:00:00.058) 0:00:01.169 ********** 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:21 -0400 (0:00:00.018) 0:00:01.188 ********** 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:21 -0400 (0:00:00.035) 0:00:01.224 ********** 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:21 -0400 (0:00:00.464) 0:00:01.689 ********** 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:21 -0400 (0:00:00.022) 0:00:01.711 ********** 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:21 -0400 (0:00:00.042) 0:00:01.754 ********** 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:21 -0400 (0:00:00.019) 0:00:01.774 ********** 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:21 -0400 (0:00:00.016) 0:00:01.790 ********** 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:21 -0400 (0:00:00.037) 0:00:01.827 ********** 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:21 -0400 (0:00:00.035) 0:00:01.863 ********** 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:21 -0400 (0:00:00.017) 0:00:01.881 ********** 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:21 -0400 (0:00:00.030) 0:00:01.911 ********** 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:21 -0400 (0:00:00.022) 0:00:01.934 ********** skipping: [managed-node1] => (item=smtp) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | bool", "item": "smtp", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=smtps) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | 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_firewall | 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:21 -0400 (0:00:00.040) 0:00:01.975 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "postfix_manage_firewall | 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:21 -0400 (0:00:00.032) 0:00:02.007 ********** skipping: [managed-node1] => (item={'changed': False, 'skipped': True, 'skip_reason': 'Conditional result was False', 'false_condition': 'postfix_manage_firewall | bool', 'item': 'smtp', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | bool", "item": { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | 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_firewall | bool', 'item': 'smtps', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | bool", "item": { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | 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_firewall | bool', 'item': 'smtp-submission', 'ansible_loop_var': 'item'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | bool", "item": { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | 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:22 -0400 (0:00:00.042) 0:00:02.050 ********** ok: [managed-node1] => { "ansible_facts": { "_postfix_selinux": [ { "local": "true", "ports": 25, "proto": "tcp", "setype": "smtp_port_t", "state": "present" }, { "local": "true", "ports": 465, "proto": "tcp", "setype": "smtp_port_t", "state": "present" }, { "local": "true", "ports": 587, "proto": "tcp", "setype": "smtp_port_t", "state": "present" } ] }, "changed": 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:22 -0400 (0:00:00.038) 0:00:02.089 ********** redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.selinux to ansible.posix.selinux redirecting (type: modules) ansible.builtin.seboolean to ansible.posix.seboolean included: fedora.linux_system_roles.selinux for managed-node1 TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Saturday 24 May 2025 13:15:22 -0400 (0:00:00.070) 0:00:02.159 ********** included: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for managed-node1 TASK [fedora.linux_system_roles.selinux : Ensure ansible_facts used by role] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Saturday 24 May 2025 13:15:22 -0400 (0:00:00.046) 0:00:02.206 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "__selinux_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure SELinux packages] ************* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Saturday 24 May 2025 13:15:22 -0400 (0:00:00.037) 0:00:02.243 ********** included: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml for managed-node1 TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Saturday 24 May 2025 13:15:22 -0400 (0:00:00.048) 0:00:02.291 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Saturday 24 May 2025 13:15:22 -0400 (0:00:00.384) 0:00:02.676 ********** ok: [managed-node1] => { "ansible_facts": { "__selinux_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Saturday 24 May 2025 13:15:22 -0400 (0:00:00.039) 0:00:02.716 ********** ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Saturday 24 May 2025 13:15:23 -0400 (0:00:00.390) 0:00:03.106 ********** ok: [managed-node1] => { "ansible_facts": { "__selinux_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Saturday 24 May 2025 13:15:23 -0400 (0:00:00.040) 0:00:03.146 ********** skipping: [managed-node1] => { "changed": false, "false_condition": "ansible_python_version is version('3', '<')", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Saturday 24 May 2025 13:15:23 -0400 (0:00:00.034) 0:00:03.181 ********** 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=16 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:27.020763+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:23.133325+00:00Z", "task_name": "Install SELinux python3 tools", "task_path": "/tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35" } ] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 24 May 2025 13:15:27 -0400 (0:00:03.889) 0:00:07.070 ********** =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 3.89s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Gathering Facts --------------------------------------------------------- 1.09s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.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 fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin --- 0.39s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.38s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Ensure the service and the ports status with the selinux role ----------- 0.07s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Run the role with test smtpd_banner ------------------------------------- 0.06s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 fedora.linux_system_roles.selinux : Ensure SELinux packages ------------- 0.05s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages --- 0.05s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 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 : 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 : 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.selinux : Set flag if transactional-update exists --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 fedora.linux_system_roles.postfix : Set hardcoded ports to _postfix_selinux for no firewall or rhel-6 or not redhat --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 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.selinux : Ensure ansible_facts used by role --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present --- 0.04s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 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.selinux : Install SELinux python2 tools ------- 0.03s /tmp/collections-18B/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26