Skip to content

Commit

Permalink
RedHat: Remove zabbix-{{ ..._http_server }}-conf
Browse files Browse the repository at this point in the history
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?
  • Loading branch information
eb4x committed Jun 9, 2024
1 parent 542f21f commit 780c9c7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions roles/zabbix_web/tasks/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 780c9c7

Please sign in to comment.