mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user