diff --git a/roles/zabbix_proxy/tasks/Rocky.yml b/roles/zabbix_proxy/tasks/Rocky.yml index 2b82271..c1ee508 100644 --- a/roles/zabbix_proxy/tasks/Rocky.yml +++ b/roles/zabbix_proxy/tasks/Rocky.yml @@ -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