This commit is contained in:
2026-02-16 01:38:01 +01:00
parent 6bf6fa68f1
commit b536200753

View File

@@ -49,7 +49,7 @@
# Install Zabbix repository
# ==========================================================
- name: Install Zabbix repository1
- name: Install Zabbix repository
ansible.builtin.dnf:
name: "https://repo.zabbix.com/zabbix/{{ zabbix_version }}/release/rocky/9/noarch/zabbix-release-{{ zabbix_version }}-3.el9.noarch.rpm"
state: present
@@ -198,13 +198,6 @@
state: present
when: ansible_selinux.status == "enabled"
- name: Add SELinux file context for Zabbix config
sefcontext:
target: "{{ zabbix_config_path }}(/.*)?"
setype: zabbix_etc_t
state: present
when: ansible_selinux.status == "enabled"
- name: Add SELinux file context for Zabbix logs
sefcontext:
target: "{{ zabbix_log_path }}(/.*)?"
@@ -216,8 +209,6 @@
command: restorecon -R {{ item }}
loop:
- "{{ zabbix_var_lib_path }}"
- "{{ zabbix_config_path }}"
- "{{ zabbix_log_path }}"
when: ansible_selinux.status == "enabled"
- name: Restart Zabbix proxy