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-C23
  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.debug to ansible.posix.debug
redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug
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-C23/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml

PLAY [Set smtpd banner] ********************************************************

TASK [Gathering Facts] *********************************************************
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2
Tuesday 10 September 2024  10:24:08 -0400 (0:00:00.010)       0:00:00.010 ***** 
[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-C23/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12
Tuesday 10 September 2024  10:24:11 -0400 (0:00:02.930)       0:00:02.941 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2
Tuesday 10 September 2024  10:24:11 -0400 (0:00:00.038)       0:00:02.979 ***** 
included: /tmp/collections-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3
Tuesday 10 September 2024  10:24:11 -0400 (0:00:00.018)       0:00:02.998 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11
Tuesday 10 September 2024  10:24:11 -0400 (0:00:00.035)       0:00:03.033 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.442)       0:00:03.475 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.022)       0:00:03.498 ***** 
ok: [managed-node3] => (item=RedHat.yml) => {
    "ansible_facts": {
        "__postfix_smtp_services": [
            "smtp",
            "smtps",
            "submission"
        ]
    },
    "ansible_included_var_files": [
        "/tmp/collections-C23/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-C23/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-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.056)       0:00:03.554 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.023)       0:00:03.578 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.017)       0:00:03.596 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.035)       0:00:03.631 ***** 
skipping: [managed-node3] => {
    "changed": false,
    "skipped_reason": "No items in the list"
}

TASK [fedora.linux_system_roles.postfix : Configure firewall] ******************
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.035)       0:00:03.667 ***** 
included: /tmp/collections-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.018)       0:00:03.685 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.030)       0:00:03.716 ***** 
included: /tmp/collections-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.022)       0:00:03.738 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.042)       0:00:03.780 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.032)       0:00:03.813 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.042)       0:00:03.856 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.038)       0:00:03.895 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.070)       0:00:03.965 ***** 
included: /tmp/collections-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.045)       0:00:04.011 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.036)       0:00:04.047 ***** 
included: /tmp/collections-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5
Tuesday 10 September 2024  10:24:12 -0400 (0:00:00.048)       0:00:04.095 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10
Tuesday 10 September 2024  10:24:13 -0400 (0:00:00.373)       0:00:04.469 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17
Tuesday 10 September 2024  10:24:13 -0400 (0:00:00.039)       0:00:04.508 ***** 
ok: [managed-node3] => {
    "changed": false,
    "stat": {
        "exists": false
    }
}

TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] ***
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22
Tuesday 10 September 2024  10:24:13 -0400 (0:00:00.371)       0:00:04.880 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26
Tuesday 10 September 2024  10:24:13 -0400 (0:00:00.040)       0:00:04.921 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35
Tuesday 10 September 2024  10:24:13 -0400 (0:00:00.035)       0:00:04.956 ***** 
ok: [managed-node3] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do

TASK [fedora.linux_system_roles.selinux : Install SELinux python3 tools] *******
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46
Tuesday 10 September 2024  10:24:18 -0400 (0:00:05.262)       0:00:10.218 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58
Tuesday 10 September 2024  10:24:19 -0400 (0:00:00.035)       0:00:10.254 ***** 
ok: [managed-node3] => {
    "changed": false,
    "rc": 0,
    "results": []
}

MSG:

Nothing to do

TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] ***
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:72
Tuesday 10 September 2024  10:24:20 -0400 (0:00:01.714)       0:00:11.969 ***** 
skipping: [managed-node3] => {
    "false_condition": "__selinux_is_transactional | d(false)"
}

TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] ***
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:77
Tuesday 10 September 2024  10:24:20 -0400 (0:00:00.049)       0:00:12.019 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:82
Tuesday 10 September 2024  10:24:20 -0400 (0:00:00.051)       0:00:12.071 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:89
Tuesday 10 September 2024  10:24:20 -0400 (0:00:00.051)       0:00:12.122 ***** 
ok: [managed-node3]

TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] ***
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:5
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.841)       0:00:12.963 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:13
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.034)       0:00:12.997 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:21
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.035)       0:00:13.032 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:25
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.042)       0:00:13.074 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:30
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.033)       0:00:13.108 ***** 
skipping: [managed-node3] => {
    "false_condition": "ansible_selinux.status == \"disabled\""
}

TASK [fedora.linux_system_roles.selinux : Drop all local modifications] ********
task path: /tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:35
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.033)       0:00:13.142 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:43
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.034)       0:00:13.176 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:48
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.032)       0:00:13.208 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:53
Tuesday 10 September 2024  10:24:21 -0400 (0:00:00.031)       0:00:13.240 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:58
Tuesday 10 September 2024  10:24:22 -0400 (0:00:00.031)       0:00:13.272 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:63
Tuesday 10 September 2024  10:24:22 -0400 (0:00:00.035)       0:00:13.307 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:74
Tuesday 10 September 2024  10:24:22 -0400 (0:00:00.013)       0:00:13.321 ***** 
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-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87
Tuesday 10 September 2024  10:24:22 -0400 (0:00:00.013)       0:00:13.334 ***** 
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-9-19.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-9-19.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-9-19.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  10:24:23 -0400 (0:00:01.231)       0:00:14.566 ***** 
=============================================================================== 
fedora.linux_system_roles.selinux : Install SELinux python3 tools ------- 5.26s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 
Gathering Facts --------------------------------------------------------- 2.93s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 
fedora.linux_system_roles.selinux : Install SELinux tool semanage ------- 1.71s
/tmp/collections-C23/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.23s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:87 
fedora.linux_system_roles.selinux : Refresh facts ----------------------- 0.84s
/tmp/collections-C23/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-C23/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-C23/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-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 
fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.06s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 
fedora.linux_system_roles.selinux : Reboot transactional update systems --- 0.05s
/tmp/collections-C23/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.05s
/tmp/collections-C23/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.05s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:72 
fedora.linux_system_roles.selinux : Ensure SELinux packages ------------- 0.05s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 
fedora.linux_system_roles.selinux : Set ansible_facts required by role and install packages --- 0.05s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 
fedora.linux_system_roles.postfix : Add the smtp related service ports to _postfix_selinux --- 0.04s
/tmp/collections-C23/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-C23/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 
fedora.linux_system_roles.selinux : Set selinux_reboot_required --------- 0.04s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:21 
fedora.linux_system_roles.selinux : Set flag if transactional-update exists --- 0.04s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 
fedora.linux_system_roles.selinux : Set flag to indicate system is ostree --- 0.04s
/tmp/collections-C23/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10