[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.3] 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-L1S executable location = /usr/local/bin/ansible-playbook python version = 3.12.5 (main, Aug 23 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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-L1S/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml PLAY [Set smtpd banner] ******************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 Wednesday 04 September 2024 12:26:58 -0400 (0:00:00.009) 0:00:00.009 *** [WARNING]: Platform linux on host managed-node3 is using the discovered Python interpreter at /usr/bin/python3.12, 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-node3] TASK [Run the role with test smtpd_banner] ************************************* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 Wednesday 04 September 2024 12:27:01 -0400 (0:00:02.727) 0:00:02.737 *** included: fedora.linux_system_roles.postfix for managed-node3 TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts required by role] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.076) 0:00:02.813 *** included: /tmp/collections-L1S/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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.020) 0:00:02.833 *** skipping: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.036) 0:00:02.870 *** 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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.450) 0:00:03.321 *** 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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.034) 0:00:03.355 *** ok: [managed-node3] => (item=RedHat.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "submission"]}, "ansible_included_var_files": ["/tmp/collections-L1S/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, "false_condition": "__postfix_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False"} ok: [managed-node3] => (item=CentOS_9.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "smtp-submission"]}, "ansible_included_var_files": ["/tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_9.yml"], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml"} ok: [managed-node3] => (item=CentOS_9.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "smtp-submission"]}, "ansible_included_var_files": ["/tmp/collections-L1S/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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.070) 0:00:03.425 *** skipping: [managed-node3] => (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-node3] => {"changed": false, "msg": "All items skipped"} TASK [fedora.linux_system_roles.postfix : Remove package(s) to reset original confs ['postfix']] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.026) 0:00:03.452 *** skipping: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.020) 0:00:03.472 *** skipping: [managed-node3] => (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-node3] => {"changed": false, "msg": "All items skipped"} TASK [fedora.linux_system_roles.postfix : Remove config files - make empty] **** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Wednesday 04 September 2024 12:27:01 -0400 (0:00:00.044) 0:00:03.517 *** skipping: [managed-node3] => {"changed": false, "skipped_reason": "No items in the list"} TASK [fedora.linux_system_roles.postfix : Configure firewall] ****************** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.046) 0:00:03.564 *** included: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml for managed-node3 TASK [Ensure the postfix ports status with the firewall role] ****************** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.017) 0:00:03.581 *** skipping: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.029) 0:00:03.611 *** included: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml for managed-node3 TASK [fedora.linux_system_roles.postfix : Get the smtp related tcp service ports] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.020) 0:00:03.632 *** skipping: [managed-node3] => (item=smtp) => {"ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | bool", "item": "smtp", "skip_reason": "Conditional result was False"} skipping: [managed-node3] => (item=smtps) => {"ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | bool", "item": "smtps", "skip_reason": "Conditional result was False"} skipping: [managed-node3] => (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-node3] => {"changed": false, "msg": "All items skipped"} TASK [fedora.linux_system_roles.postfix : Initialize _postfix_selinux] ********* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.039) 0:00:03.671 *** skipping: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.030) 0:00:03.701 *** skipping: [managed-node3] => (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-node3] => (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-node3] => (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-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.039) 0:00:03.741 *** ok: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.036) 0:00:03.778 *** 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-node3 TASK [fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.067) 0:00:03.845 *** included: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml for managed-node3 TASK [fedora.linux_system_roles.selinux : Ensure ansible_facts used by role] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.043) 0:00:03.889 *** skipping: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.034) 0:00:03.923 *** included: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml for managed-node3 TASK [fedora.linux_system_roles.selinux : Check if system is ostree] *********** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.046) 0:00:03.970 *** ok: [managed-node3] => {"changed": false, "stat": {"exists": false}} TASK [fedora.linux_system_roles.selinux : Set flag to indicate system is ostree] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.367) 0:00:04.337 *** ok: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Wednesday 04 September 2024 12:27:02 -0400 (0:00:00.038) 0:00:04.375 *** ok: [managed-node3] => {"changed": false, "stat": {"exists": false}} TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Wednesday 04 September 2024 12:27:03 -0400 (0:00:00.366) 0:00:04.742 *** ok: [managed-node3] => {"ansible_facts": {"__selinux_is_transactional": false}, "changed": false} TASK [fedora.linux_system_roles.selinux : Install SELinux python2 tools] ******* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Wednesday 04 September 2024 12:27:03 -0400 (0:00:00.037) 0:00:04.780 *** skipping: [managed-node3] => {"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-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Wednesday 04 September 2024 12:27:03 -0400 (0:00:00.034) 0:00:04.815 *** ok: [managed-node3] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] ******* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Wednesday 04 September 2024 12:27:07 -0400 (0:00:04.277) 0:00:09.092 *** skipping: [managed-node3] => {"changed": false, "false_condition": "ansible_os_family == \"Suse\"", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Wednesday 04 September 2024 12:27:07 -0400 (0:00:00.034) 0:00:09.126 *** ok: [managed-node3] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:72 Wednesday 04 September 2024 12:27:09 -0400 (0:00:01.623) 0:00:10.750 *** skipping: [managed-node3] => {"false_condition": "__selinux_is_transactional | d(false)"} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:77 Wednesday 04 September 2024 12:27:09 -0400 (0:00:00.039) 0:00:10.789 *** skipping: [managed-node3] => {"changed": false, "false_condition": "__selinux_is_transactional | d(false)", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Fail if reboot is needed and not set] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:82 Wednesday 04 September 2024 12:27:09 -0400 (0:00:00.036) 0:00:10.825 *** skipping: [managed-node3] => {"changed": false, "false_condition": "__selinux_is_transactional | d(false)", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Refresh facts] *********************** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Wednesday 04 September 2024 12:27:09 -0400 (0:00:00.036) 0:00:10.862 *** ok: [managed-node3] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.841) 0:00:11.704 *** skipping: [managed-node3] => {"changed": false, "false_condition": "ansible_selinux.status == \"enabled\" and (selinux_state or selinux_policy)", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:13 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.042) 0:00:11.746 *** skipping: [managed-node3] => {"changed": false, "false_condition": "ansible_selinux.status == \"disabled\" and selinux_state", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Set selinux_reboot_required] ********* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:21 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.047) 0:00:11.793 *** ok: [managed-node3] => {"ansible_facts": {"selinux_reboot_required": false}, "changed": false} TASK [fedora.linux_system_roles.selinux : Fail if reboot is required] ********** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:25 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.056) 0:00:11.850 *** skipping: [managed-node3] => {"changed": false, "false_condition": "selinux_reboot_required", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Warn if SELinux is disabled] ********* task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:30 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.045) 0:00:11.896 *** skipping: [managed-node3] => {"false_condition": "ansible_selinux.status == \"disabled\""} TASK [fedora.linux_system_roles.selinux : Drop all local modifications] ******** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.049) 0:00:11.945 *** skipping: [managed-node3] => {"changed": false, "false_condition": "selinux_all_purge | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:43 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.043) 0:00:11.991 *** skipping: [managed-node3] => {"changed": false, "false_condition": "selinux_booleans_purge | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:48 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.049) 0:00:12.040 *** skipping: [managed-node3] => {"changed": false, "false_condition": "selinux_fcontexts_purge | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Purge all SELinux port local modifications] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:53 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.048) 0:00:12.089 *** skipping: [managed-node3] => {"changed": false, "false_condition": "selinux_ports_purge | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Purge all SELinux login local modifications] *** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:58 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.048) 0:00:12.138 *** skipping: [managed-node3] => {"changed": false, "false_condition": "selinux_logins_purge | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.selinux : Set SELinux booleans] **************** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:63 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.049) 0:00:12.187 *** skipping: [managed-node3] => {"changed": false, "skipped_reason": "No items in the list"} TASK [fedora.linux_system_roles.selinux : Set SELinux file contexts] *********** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:74 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.019) 0:00:12.207 *** skipping: [managed-node3] => {"changed": false, "skipped_reason": "No items in the list"} TASK [fedora.linux_system_roles.selinux : Set an SELinux label on a port] ****** task path: /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 Wednesday 04 September 2024 12:27:10 -0400 (0:00:00.017) 0:00:12.224 *** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'selinux' failed: [managed-node3] (item={'ports': 25, 'proto': 'tcp', 'setype': 'smtp_port_t', 'state': 'present', 'local': 'true'}) => {"__selinux_item": {"local": "true", "ports": 25, "proto": "tcp", "setype": "smtp_port_t", "state": "present"}, "ansible_loop_var": "__selinux_item", "changed": false, "msg": "Failed to import the required Python library (libselinux-python) on ip-10-31-15-21.us-east-1.aws.redhat.com's Python /usr/bin/python3.12. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"} An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'selinux' failed: [managed-node3] (item={'ports': 465, 'proto': 'tcp', 'setype': 'smtp_port_t', 'state': 'present', 'local': 'true'}) => {"__selinux_item": {"local": "true", "ports": 465, "proto": "tcp", "setype": "smtp_port_t", "state": "present"}, "ansible_loop_var": "__selinux_item", "changed": false, "msg": "Failed to import the required Python library (libselinux-python) on ip-10-31-15-21.us-east-1.aws.redhat.com's Python /usr/bin/python3.12. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"} An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ModuleNotFoundError: No module named 'selinux' failed: [managed-node3] (item={'ports': 587, 'proto': 'tcp', 'setype': 'smtp_port_t', 'state': 'present', 'local': 'true'}) => {"__selinux_item": {"local": "true", "ports": 587, "proto": "tcp", "setype": "smtp_port_t", "state": "present"}, "ansible_loop_var": "__selinux_item", "changed": false, "msg": "Failed to import the required Python library (libselinux-python) on ip-10-31-15-21.us-east-1.aws.redhat.com's Python /usr/bin/python3.12. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"} PLAY RECAP ********************************************************************* managed-node3 : ok=20 changed=0 unreachable=0 failed=1 skipped=26 rescued=0 ignored=0 Wednesday 04 September 2024 12:27:11 -0400 (0:00:01.208) 0:00:13.433 *** =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 4.28s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Gathering Facts --------------------------------------------------------- 2.73s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 1.62s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 fedora.linux_system_roles.selinux : Set an SELinux label on a port ------ 1.21s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.84s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 fedora.linux_system_roles.postfix : Check if system is ostree ----------- 0.45s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.37s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 fedora.linux_system_roles.selinux : Check if transactional-update exists in /sbin --- 0.37s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Run the role with test smtpd_banner ------------------------------------- 0.08s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.07s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Ensure the service and the ports status with the selinux role ----------- 0.07s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 fedora.linux_system_roles.selinux : Set selinux_reboot_required --------- 0.06s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:21 fedora.linux_system_roles.selinux : Purge all SELinux login local modifications --- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:58 fedora.linux_system_roles.selinux : Warn if SELinux is disabled --------- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:30 fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications --- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:43 fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications --- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:48 fedora.linux_system_roles.selinux : Purge all SELinux port local modifications --- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:53 fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled --- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:13 fedora.linux_system_roles.postfix : Remove config files - make empty ---- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 fedora.linux_system_roles.selinux : Ensure SELinux packages ------------- 0.05s /tmp/collections-L1S/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7