From 780c9c73093ff6aedd512cbfae0bc3b43e73b24c Mon Sep 17 00:00:00 2001 From: Erik Berg Date: Sun, 9 Jun 2024 18:34:24 +0200 Subject: [PATCH] RedHat: Remove zabbix-{{ ..._http_server }}-conf I'm not sure what this when condition is for; when: - zabbix_web_version is version('6.0', '!=') - ansible_distribution_major_version == '9' But we're installing the package anyway. So just drop this task, maybe? --- roles/zabbix_web/tasks/RedHat.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/roles/zabbix_web/tasks/RedHat.yml b/roles/zabbix_web/tasks/RedHat.yml index 0669b7160..0afa475b8 100644 --- a/roles/zabbix_web/tasks/RedHat.yml +++ b/roles/zabbix_web/tasks/RedHat.yml @@ -4,25 +4,6 @@ tags: - always -- name: "RedHat | Install zabbix-web-configuration" - ansible.builtin.yum: - name: - - "zabbix-{{ zabbix_web_http_server }}-conf" - state: "{{ zabbix_web_package_state }}" - update_cache: true - disablerepo: "{{ zabbix_web_disable_repo | default(omit) }}" - environment: - http_proxy: "{{ zabbix_http_proxy | default(None) | default(omit) }}" - https_proxy: "{{ zabbix_https_proxy | default(None) | default(omit) }}" - register: zabbix_web_package_install - until: zabbix_web_package_install is succeeded - become: true - when: - - zabbix_web_version is version('6.0', '!=') - - ansible_distribution_major_version == '9' - tags: - - install - - name: "Configure SELinux when enabled" ansible.builtin.include_tasks: selinux.yml when: ansible_facts.selinux.status | default('disabled') == 'enabled'