diff --git a/roles/zabbix_agent/tasks/Linux.yml b/roles/zabbix_agent/tasks/Linux.yml index 75e599747..4973f2f01 100644 --- a/roles/zabbix_agent/tasks/Linux.yml +++ b/roles/zabbix_agent/tasks/Linux.yml @@ -86,7 +86,7 @@ - name: "Configure SELinux when enabled" ansible.builtin.include_tasks: selinux.yml when: - - zabbix_agent_selinux | bool | default (false) + - zabbix_agent_selinux | default (false) | bool - name: "Adding zabbix group" ansible.builtin.group: diff --git a/roles/zabbix_proxy/tasks/main.yml b/roles/zabbix_proxy/tasks/main.yml index 31cd13d34..3dd82e107 100644 --- a/roles/zabbix_proxy/tasks/main.yml +++ b/roles/zabbix_proxy/tasks/main.yml @@ -57,7 +57,7 @@ - name: "Configure SELinux when enabled" ansible.builtin.include_tasks: selinux.yml when: - - zabbix_proxy_selinux | bool | default (false) + - zabbix_proxy_selinux | default (false) | bool - ansiblle_os_family == "RedHat" - name: "Install zabbix-proxy packages" diff --git a/roles/zabbix_server/tasks/main.yml b/roles/zabbix_server/tasks/main.yml index 35e66f310..349110491 100644 --- a/roles/zabbix_server/tasks/main.yml +++ b/roles/zabbix_server/tasks/main.yml @@ -39,7 +39,7 @@ - name: "Configure SELinux when enabled" ansible.builtin.include_tasks: selinux.yml when: - - zabbix_server_selinux | bool | default (false) + - zabbix_server_selinux | default (false) | bool - ansiblle_os_family == "RedHat" - name: Install zabbix-server packages diff --git a/roles/zabbix_web/tasks/RedHat.yml b/roles/zabbix_web/tasks/RedHat.yml index 3917efaad..873f42cc0 100644 --- a/roles/zabbix_web/tasks/RedHat.yml +++ b/roles/zabbix_web/tasks/RedHat.yml @@ -42,4 +42,4 @@ - name: "Configure SELinux when enabled" ansible.builtin.include_tasks: selinux.yml when: - - zabbix_web_selinux | bool | default (false) + - zabbix_web_selinux | default (false) | bool