ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_set_banner.yml ************************************************* 1 plays in /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml PLAY [Set smtpd banner] ******************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 Saturday 28 June 2025 13:17:25 -0400 (0:00:00.022) 0:00:00.022 ********* ok: [managed-node1] META: ran handlers TASK [Run the role with test smtpd_banner] ************************************* task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.836) 0:00:00.858 ********* TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts required by role] *** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.109) 0:00:00.968 ********* included: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml for managed-node1 TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.027) 0:00:00.996 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Check if system is ostree] *********** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.040) 0:00:01.036 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.postfix : Set flag to indicate system is ostree] *** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.375) 0:00:01.411 ********* ok: [managed-node1] => { "ansible_facts": { "__postfix_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.postfix : Set platform/version specific variables] *** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.043) 0:00:01.455 ********* ok: [managed-node1] => (item=RedHat.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "submission" ] }, "ansible_included_var_files": [ "/tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } skipping: [managed-node1] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [managed-node1] => (item=CentOS_7.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "smtp-submission" ] }, "ansible_included_var_files": [ "/tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [managed-node1] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Get status of package(s) [u'postfix']] *** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.088) 0:00:01.543 ********* skipping: [managed-node1] => (item=postfix) => { "ansible_loop_var": "item", "changed": false, "item": "postfix", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Remove package(s) to reset original confs [u'postfix']] *** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.067) 0:00:01.611 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Get status of config files] ********** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.020) 0:00:01.631 ********* skipping: [managed-node1] => (item=postfix) => { "ansible_loop_var": "item", "changed": false, "item": "postfix", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Remove config files - make empty] **** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.024) 0:00:01.656 ********* TASK [fedora.linux_system_roles.postfix : Configure firewall] ****************** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.018) 0:00:01.675 ********* included: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml for managed-node1 TASK [Ensure the postfix ports status with the firewall role] ****************** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.026) 0:00:01.701 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Configure selinux] ******************* task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.017) 0:00:01.719 ********* included: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml for managed-node1 TASK [fedora.linux_system_roles.postfix : Get the smtp related tcp service ports] *** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 Saturday 28 June 2025 13:17:26 -0400 (0:00:00.030) 0:00:01.750 ********* skipping: [managed-node1] => (item=smtp) => { "ansible_loop_var": "item", "changed": false, "item": "smtp", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=smtps) => { "ansible_loop_var": "item", "changed": false, "item": "smtps", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=smtp-submission) => { "ansible_loop_var": "item", "changed": false, "item": "smtp-submission", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Initialize _postfix_selinux] ********* task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 Saturday 28 June 2025 13:17:27 -0400 (0:00:00.036) 0:00:01.786 ********* skipping: [managed-node1] => { "changed": false, "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-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37 Saturday 28 June 2025 13:17:27 -0400 (0:00:00.020) 0:00:01.806 ********* skipping: [managed-node1] => (item={u'skip_reason': u'Conditional result was False', u'item': u'smtp', u'skipped': True, u'ansible_loop_var': u'item', u'changed': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "smtp", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'skip_reason': u'Conditional result was False', u'item': u'smtps', u'skipped': True, u'ansible_loop_var': u'item', u'changed': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "smtps", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'skip_reason': u'Conditional result was False', u'item': u'smtp-submission', u'skipped': True, u'ansible_loop_var': u'item', u'changed': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "smtp-submission", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } 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-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 Saturday 28 June 2025 13:17:27 -0400 (0:00:00.039) 0:00:01.846 ********* ok: [managed-node1] => { "ansible_facts": { "_postfix_selinux": [ { "local": "true", "ports": 25, "proto": "tcp", "setype": "smtp_port_t", "state": "present" }, { "local": "true", "ports": 465, "proto": "tcp", "setype": "smtp_port_t", "state": "present" }, { "local": "true", "ports": 587, "proto": "tcp", "setype": "smtp_port_t", "state": "present" } ] }, "changed": false } TASK [Ensure the service and the ports status with the selinux role] *********** task path: /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Saturday 28 June 2025 13:17:27 -0400 (0:00:00.027) 0:00:01.873 ********* ERROR! the role 'fedora.linux_system_roles.selinux' was not found in fedora.linux_system_roles:ansible.legacy:/tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/tests/postfix/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/tests/postfix The error appears to be in '/tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml': line 57, column 15, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: include_role: name: fedora.linux_system_roles.selinux ^ here PLAY RECAP ********************************************************************* managed-node1 : ok=8 changed=0 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [] SYSTEM ROLES ERRORS END v1 TASKS RECAP ******************************************************************** Saturday 28 June 2025 13:17:27 -0400 (0:00:00.025) 0:00:01.899 ********* =============================================================================== Gathering Facts --------------------------------------------------------- 0.84s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 fedora.linux_system_roles.postfix : Check if system is ostree ----------- 0.38s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Run the role with test smtpd_banner ------------------------------------- 0.11s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.09s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 fedora.linux_system_roles.postfix : Get status of package(s) [u'postfix'] --- 0.07s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 fedora.linux_system_roles.postfix : Set flag to indicate system is ostree --- 0.04s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present --- 0.04s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 fedora.linux_system_roles.postfix : Add the smtp related service ports to _postfix_selinux --- 0.04s /tmp/collections-Fad/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-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 fedora.linux_system_roles.postfix : Configure selinux ------------------- 0.03s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 fedora.linux_system_roles.postfix : Ensure ansible_facts required by role --- 0.03s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 fedora.linux_system_roles.postfix : Set hardcoded ports to _postfix_selinux for no firewall or rhel-6 or not redhat --- 0.03s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 fedora.linux_system_roles.postfix : Configure firewall ------------------ 0.03s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Ensure the service and the ports status with the selinux role ----------- 0.03s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 fedora.linux_system_roles.postfix : Get status of config files ---------- 0.02s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 fedora.linux_system_roles.postfix : Remove package(s) to reset original confs [u'postfix'] --- 0.02s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 fedora.linux_system_roles.postfix : Initialize _postfix_selinux --------- 0.02s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 fedora.linux_system_roles.postfix : Remove config files - make empty ---- 0.02s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Ensure the postfix ports status with the firewall role ------------------ 0.02s /tmp/collections-Fad/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3