[WARNING]: Skipping plugin (/tmp/collections-Wiv/ansible_collections/ansible/posix/plugins/callback/cgroup_perf_recap.py), cannot load: cannot import name 'json' from 'ansible.parsing.ajson' (/usr/local/lib/python3.13/site-packages/ansible/parsing/ajson.py) ansible-playbook [core 2.19.0b5] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.13/site-packages/ansible ansible collection location = /tmp/collections-Wiv executable location = /usr/local/bin/ansible-playbook python version = 3.13.3 (main, Apr 22 2025, 00:00:00) [GCC 15.0.1 20250418 (Red Hat 15.0.1-0)] (/usr/bin/python3.13) jinja version = 3.1.6 pyyaml version = 6.0.2 (with libyaml v0.2.5) No config file found; using defaults running playbook inside collection fedora.linux_system_roles Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'jsonl', as we already have a stdout callback. 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-Wiv/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml PLAY [Set smtpd banner] ******************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:2 Monday 09 June 2025 11:42:45 -0400 (0:00:00.027) 0:00:00.027 *********** [WARNING]: Host 'managed-node3' is using the discovered Python interpreter at '/usr/bin/python3.13', but future installation of another Python interpreter could cause a different interpreter to be discovered. See https://docs.ansible.com/ansible-core/devel/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node3] TASK [Run the role with test smtpd_banner] ************************************* task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:12 Monday 09 June 2025 11:42:46 -0400 (0:00:01.622) 0:00:01.649 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Monday 09 June 2025 11:42:47 -0400 (0:00:00.055) 0:00:01.705 *********** included: /tmp/collections-Wiv/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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Monday 09 June 2025 11:42:47 -0400 (0:00:00.023) 0:00:01.729 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Monday 09 June 2025 11:42:47 -0400 (0:00:00.031) 0:00:01.760 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Monday 09 June 2025 11:42:47 -0400 (0:00:00.602) 0:00:02.363 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Monday 09 June 2025 11:42:47 -0400 (0:00:00.026) 0:00:02.389 *********** ok: [managed-node3] => (item=RedHat.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "submission" ] }, "ansible_included_var_files": [ "/tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [managed-node3] => (item=Fedora.yml) => { "ansible_facts": { "__postfix_smtp_services": [ "smtp", "smtps", "submission" ] }, "ansible_included_var_files": [ "/tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/Fedora.yml" ], "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml" } skipping: [managed-node3] => (item=Fedora_42.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__postfix_vars_file is file", "item": "Fedora_42.yml", "skip_reason": "Conditional result was False" } skipping: [managed-node3] => (item=Fedora_42.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__postfix_vars_file is file", "item": "Fedora_42.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.postfix : Get status of package(s) ['postfix']] *** task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Monday 09 June 2025 11:42:47 -0400 (0:00:00.056) 0:00:02.446 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 Monday 09 June 2025 11:42:47 -0400 (0:00:00.071) 0:00:02.517 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 Monday 09 June 2025 11:42:47 -0400 (0:00:00.029) 0:00:02.547 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Monday 09 June 2025 11:42:47 -0400 (0:00:00.034) 0:00:02.582 *********** skipping: [managed-node3] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.postfix : Configure firewall] ****************** task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Monday 09 June 2025 11:42:47 -0400 (0:00:00.029) 0:00:02.612 *********** included: /tmp/collections-Wiv/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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 Monday 09 June 2025 11:42:47 -0400 (0:00:00.023) 0:00:02.635 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:57 Monday 09 June 2025 11:42:47 -0400 (0:00:00.033) 0:00:02.668 *********** included: /tmp/collections-Wiv/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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:12 Monday 09 June 2025 11:42:47 -0400 (0:00:00.027) 0:00:02.695 *********** 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=submission) => { "ansible_loop_var": "item", "changed": false, "false_condition": "postfix_manage_firewall | bool", "item": "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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:33 Monday 09 June 2025 11:42:48 -0400 (0:00:00.041) 0:00:02.737 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:37 Monday 09 June 2025 11:42:48 -0400 (0:00:00.027) 0:00:02.764 *********** 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': '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": "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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:46 Monday 09 June 2025 11:42:48 -0400 (0:00:00.040) 0:00:02.805 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/selinux.yml:55 Monday 09 June 2025 11:42:48 -0400 (0:00:00.038) 0:00:02.843 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:2 Monday 09 June 2025 11:42:48 -0400 (0:00:00.085) 0:00:02.928 *********** included: /tmp/collections-Wiv/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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:2 Monday 09 June 2025 11:42:48 -0400 (0:00:00.037) 0:00:02.966 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/set_facts_packages.yml:7 Monday 09 June 2025 11:42:48 -0400 (0:00:00.039) 0:00:03.005 *********** included: /tmp/collections-Wiv/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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:5 Monday 09 June 2025 11:42:48 -0400 (0:00:00.079) 0:00:03.085 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:10 Monday 09 June 2025 11:42:48 -0400 (0:00:00.498) 0:00:03.583 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:17 Monday 09 June 2025 11:42:48 -0400 (0:00:00.038) 0:00:03.622 *********** ok: [managed-node3] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.selinux : Set flag if transactional-update exists] *** task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:22 Monday 09 June 2025 11:42:49 -0400 (0:00:00.464) 0:00:04.086 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:26 Monday 09 June 2025 11:42:49 -0400 (0:00:00.038) 0:00:04.125 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:35 Monday 09 June 2025 11:42:49 -0400 (0:00:00.031) 0:00:04.157 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:46 Monday 09 June 2025 11:42:54 -0400 (0:00:05.515) 0:00:09.672 *********** skipping: [managed-node3] => { "changed": false, "false_condition": "ansible_os_family == \"Suse\"", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.selinux : Ensure grubby used to modify selinux kernel parameter] *** task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:58 Monday 09 June 2025 11:42:55 -0400 (0:00:00.053) 0:00:09.725 *********** ok: [managed-node3] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.selinux : Install SELinux tool semanage] ******* task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:67 Monday 09 June 2025 11:42:56 -0400 (0:00:01.331) 0:00:11.056 *********** changed: [managed-node3] => { "changed": true, "rc": 0, "results": [ "Installed: policycoreutils-python-utils-3.8-1.fc42.noarch" ] } TASK [fedora.linux_system_roles.selinux : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:81 Monday 09 June 2025 11:42:58 -0400 (0:00:01.891) 0:00:12.948 *********** skipping: [managed-node3] => { "false_condition": "__selinux_is_transactional | d(false)" } TASK [fedora.linux_system_roles.selinux : Reboot transactional update systems] *** task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:86 Monday 09 June 2025 11:42:58 -0400 (0:00:00.033) 0:00:12.981 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:91 Monday 09 June 2025 11:42:58 -0400 (0:00:00.028) 0:00:13.009 *********** 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-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/ensure_selinux_packages.yml:98 Monday 09 June 2025 11:42:58 -0400 (0:00:00.028) 0:00:13.038 *********** ok: [managed-node3] TASK [fedora.linux_system_roles.selinux : Set permanent SELinux state if enabled] *** task path: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9 Monday 09 June 2025 11:42:59 -0400 (0:00:01.062) 0:00:14.101 *********** [ERROR]: Task failed: Conditional result was 'None' of type 'NoneType', which evaluates to False. Conditionals must have a boolean result. Task failed. Origin: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9:7 7 __update_kernel_param: "{{ ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version... 8 block: 9 - name: Set permanent SELinux state if enabled ^ column 7 <<< caused by >>> Conditional result was 'None' of type 'NoneType', which evaluates to False. Conditionals must have a boolean result. Origin: /tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:18:11 16 when: 17 - ansible_selinux.status == "enabled" 18 - selinux_state or selinux_policy ^ column 11 Broken conditionals can be temporarily allowed with the `ALLOW_BROKEN_CONDITIONALS` configuration option. fatal: [managed-node3]: FAILED! => { "changed": false } MSG: Task failed: Conditional result was 'None' of type 'NoneType', which evaluates to False. Conditionals must have a boolean result. PLAY RECAP ********************************************************************* managed-node3 : ok=20 changed=1 unreachable=0 failed=1 skipped=15 rescued=0 ignored=0 SYSTEM ROLES ERRORS BEGIN v1 [ { "ansible_version": "2.19.0b5", "end_time": "2025-06-09T15:42:59.444482+00:00Z", "host": "managed-node3", "message": "Task failed: Conditional result was 'None' of type 'NoneType', which evaluates to False. Conditionals must have a boolean result.", "start_time": "2025-06-09T15:42:59.400546+00:00Z", "task_name": "Set permanent SELinux state if enabled", "task_path": "/tmp/collections-Wiv/ansible_collections/fedora/linux_system_roles/roles/selinux/tasks/main.yml:9" } ] SYSTEM ROLES ERRORS END v1