[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-iWD 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-iWD/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml PLAY [Set smtpd banner] ******************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 Thursday 05 September 2024 13:34:47 -0400 (0:00:00.006) 0:00:00.006 **** [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-iWD/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 Thursday 05 September 2024 13:34:51 -0400 (0:00:03.998) 0:00:04.005 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.052) 0:00:04.057 **** included: /tmp/collections-iWD/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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.018) 0:00:04.075 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.033) 0:00:04.109 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.429) 0:00:04.538 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.021) 0:00:04.560 **** ok: [managed-node3] => (item=RedHat.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "submission"]}, "ansible_included_var_files": ["/tmp/collections-iWD/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-iWD/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-iWD/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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.042) 0:00:04.602 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.023) 0:00:04.625 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.025) 0:00:04.651 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.035) 0:00:04.686 **** skipping: [managed-node3] => {"changed": false, "skipped_reason": "No items in the list"} TASK [fedora.linux_system_roles.postfix : Configure firewall] ****************** task path: /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.035) 0:00:04.722 **** included: /tmp/collections-iWD/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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.017) 0:00:04.739 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.029) 0:00:04.769 **** included: /tmp/collections-iWD/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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.021) 0:00:04.790 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.039) 0:00:04.830 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.030) 0:00:04.860 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.040) 0:00:04.901 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Thursday 05 September 2024 13:34:51 -0400 (0:00:00.037) 0:00:04.938 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.068) 0:00:05.006 **** included: /tmp/collections-iWD/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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.043) 0:00:05.050 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.033) 0:00:05.083 **** included: /tmp/collections-iWD/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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.046) 0:00:05.129 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.352) 0:00:05.482 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.038) 0:00:05.520 **** ok: [managed-node3] => {"changed": false, "stat": {"exists": false}} TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.352) 0:00:05.872 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.037) 0:00:05.910 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Thursday 05 September 2024 13:34:52 -0400 (0:00:00.032) 0:00:05.943 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Thursday 05 September 2024 13:34:57 -0400 (0:00:04.556) 0:00:10.499 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Thursday 05 September 2024 13:34:57 -0400 (0:00:00.046) 0:00:10.546 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:72 Thursday 05 September 2024 13:34:59 -0400 (0:00:01.611) 0:00:12.158 **** skipping: [managed-node3] => {"false_condition": "__selinux_is_transactional | d(false)"} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:77 Thursday 05 September 2024 13:34:59 -0400 (0:00:00.032) 0:00:12.190 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:82 Thursday 05 September 2024 13:34:59 -0400 (0:00:00.032) 0:00:12.222 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Thursday 05 September 2024 13:34:59 -0400 (0:00:00.030) 0:00:12.253 **** ok: [managed-node3] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.782) 0:00:13.036 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:13 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.045) 0:00:13.082 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:21 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.049) 0:00:13.131 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:25 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.057) 0:00:13.188 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:30 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.046) 0:00:13.235 **** skipping: [managed-node3] => {"false_condition": "ansible_selinux.status == \"disabled\""} TASK [fedora.linux_system_roles.selinux : Drop all local modifications] ******** task path: /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.045) 0:00:13.281 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:43 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.048) 0:00:13.329 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:48 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.047) 0:00:13.377 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:53 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.051) 0:00:13.429 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:58 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.048) 0:00:13.478 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:63 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.048) 0:00:13.527 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:74 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.017) 0:00:13.544 **** 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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 Thursday 05 September 2024 13:35:00 -0400 (0:00:00.018) 0:00:13.563 **** 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-46-252.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-46-252.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-46-252.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 Thursday 05 September 2024 13:35:01 -0400 (0:00:01.142) 0:00:14.705 **** =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 4.56s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Gathering Facts --------------------------------------------------------- 4.00s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 1.61s /tmp/collections-iWD/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.14s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.78s /tmp/collections-iWD/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.43s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.35s /tmp/collections-iWD/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.35s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Ensure the service and the ports status with the selinux role ----------- 0.07s /tmp/collections-iWD/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-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:21 Run the role with test smtpd_banner ------------------------------------- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 fedora.linux_system_roles.selinux : Purge all SELinux file context local modifications --- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:48 fedora.linux_system_roles.selinux : Set permanent SELinux state if disabled --- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:13 fedora.linux_system_roles.selinux : Purge all SELinux login local modifications --- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:58 fedora.linux_system_roles.selinux : Purge all SELinux port local modifications --- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:53 fedora.linux_system_roles.selinux : Drop all local modifications -------- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 fedora.linux_system_roles.selinux : Purge all SELinux boolean local modifications --- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:43 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 fedora.linux_system_roles.selinux : Fail if reboot is required ---------- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:25 fedora.linux_system_roles.selinux : Ensure SELinux packages ------------- 0.05s /tmp/collections-iWD/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7