[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.4] 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-PRj 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-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml PLAY [Set smtpd banner] ******************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 Tuesday 10 September 2024 03:23:31 -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-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 Tuesday 10 September 2024 03:23:33 -0400 (0:00:01.965) 0:00:01.972 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.059) 0:00:02.032 ***** included: /tmp/collections-PRj/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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.017) 0:00:02.049 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.031) 0:00:02.081 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.439) 0:00:02.520 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.024) 0:00:02.544 ***** ok: [managed-node3] => (item=RedHat.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "submission"]}, "ansible_included_var_files": ["/tmp/collections-PRj/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-PRj/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-PRj/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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.039) 0:00:02.584 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.019) 0:00:02.603 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.016) 0:00:02.619 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.032) 0:00:02.652 ***** skipping: [managed-node3] => {"changed": false, "skipped_reason": "No items in the list"} TASK [fedora.linux_system_roles.postfix : Configure firewall] ****************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.033) 0:00:02.685 ***** included: /tmp/collections-PRj/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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.016) 0:00:02.702 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.027) 0:00:02.729 ***** included: /tmp/collections-PRj/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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.019) 0:00:02.749 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.037) 0:00:02.786 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.028) 0:00:02.815 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.038) 0:00:02.853 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.034) 0:00:02.888 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.064) 0:00:02.952 ***** included: /tmp/collections-PRj/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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.041) 0:00:02.993 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.031) 0:00:03.025 ***** included: /tmp/collections-PRj/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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Tuesday 10 September 2024 03:23:35 -0400 (0:00:00.044) 0:00:03.069 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Tuesday 10 September 2024 03:23:35 -0400 (0:00:00.340) 0:00:03.410 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Tuesday 10 September 2024 03:23:35 -0400 (0:00:00.037) 0:00:03.447 ***** ok: [managed-node3] => {"changed": false, "stat": {"exists": false}} TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Tuesday 10 September 2024 03:23:35 -0400 (0:00:00.340) 0:00:03.788 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Tuesday 10 September 2024 03:23:35 -0400 (0:00:00.037) 0:00:03.825 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Tuesday 10 September 2024 03:23:35 -0400 (0:00:00.032) 0:00:03.858 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Tuesday 10 September 2024 03:23:40 -0400 (0:00:05.070) 0:00:08.929 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Tuesday 10 September 2024 03:23:40 -0400 (0:00:00.087) 0:00:09.016 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:72 Tuesday 10 September 2024 03:23:42 -0400 (0:00:01.669) 0:00:10.686 ***** skipping: [managed-node3] => {"false_condition": "__selinux_is_transactional | d(false)"} TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:77 Tuesday 10 September 2024 03:23:42 -0400 (0:00:00.064) 0:00:10.751 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:82 Tuesday 10 September 2024 03:23:42 -0400 (0:00:00.084) 0:00:10.836 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89 Tuesday 10 September 2024 03:23:42 -0400 (0:00:00.071) 0:00:10.907 ***** ok: [managed-node3] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.814) 0:00:11.721 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:13 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.030) 0:00:11.752 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:21 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.029) 0:00:11.782 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:25 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.035) 0:00:11.817 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:30 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.029) 0:00:11.847 ***** skipping: [managed-node3] => {"false_condition": "ansible_selinux.status == \"disabled\""} TASK [fedora.linux_system_roles.selinux : Drop all local modifications] ******** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.028) 0:00:11.876 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:43 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.031) 0:00:11.907 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:48 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.030) 0:00:11.938 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:53 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.030) 0:00:11.968 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:58 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.030) 0:00:11.999 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:63 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.031) 0:00:12.030 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:74 Tuesday 10 September 2024 03:23:43 -0400 (0:00:00.011) 0:00:12.042 ***** 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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 Tuesday 10 September 2024 03:23:44 -0400 (0:00:00.012) 0:00:12.055 ***** 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-185.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-185.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-185.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 Tuesday 10 September 2024 03:23:45 -0400 (0:00:01.121) 0:00:13.177 ***** =============================================================================== fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 5.07s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Gathering Facts --------------------------------------------------------- 1.97s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 1.67s /tmp/collections-PRj/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.12s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.81s /tmp/collections-PRj/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.44s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 fedora.linux_system_roles.selinux : Check if system is ostree ----------- 0.34s /tmp/collections-PRj/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.34s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 0.09s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.08s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:77 fedora.linux_system_roles.selinux : Fail if reboot is needed and not set --- 0.07s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:82 fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes --- 0.06s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:72 Ensure the service and the ports status with the selinux role ----------- 0.06s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Run the role with test smtpd_banner ------------------------------------- 0.06s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 fedora.linux_system_roles.selinux : Ensure SELinux packages ------------- 0.04s /tmp/collections-PRj/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.04s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.04s /tmp/collections-PRj/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-PRj/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-PRj/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-PRj/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22