mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-13 05:42:46 +01:00
build
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
# Install Zabbix repository
|
# Install Zabbix repository
|
||||||
# ==========================================================
|
# ==========================================================
|
||||||
|
|
||||||
- name: Install Zabbix repository1
|
- name: Install Zabbix repository
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name: "https://repo.zabbix.com/zabbix/{{ zabbix_version }}/release/rocky/9/noarch/zabbix-release-{{ zabbix_version }}-3.el9.noarch.rpm"
|
name: "https://repo.zabbix.com/zabbix/{{ zabbix_version }}/release/rocky/9/noarch/zabbix-release-{{ zabbix_version }}-3.el9.noarch.rpm"
|
||||||
state: present
|
state: present
|
||||||
@@ -198,13 +198,6 @@
|
|||||||
state: present
|
state: present
|
||||||
when: ansible_selinux.status == "enabled"
|
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
|
- name: Add SELinux file context for Zabbix logs
|
||||||
sefcontext:
|
sefcontext:
|
||||||
target: "{{ zabbix_log_path }}(/.*)?"
|
target: "{{ zabbix_log_path }}(/.*)?"
|
||||||
@@ -216,8 +209,6 @@
|
|||||||
command: restorecon -R {{ item }}
|
command: restorecon -R {{ item }}
|
||||||
loop:
|
loop:
|
||||||
- "{{ zabbix_var_lib_path }}"
|
- "{{ zabbix_var_lib_path }}"
|
||||||
- "{{ zabbix_config_path }}"
|
|
||||||
- "{{ zabbix_log_path }}"
|
|
||||||
when: ansible_selinux.status == "enabled"
|
when: ansible_selinux.status == "enabled"
|
||||||
|
|
||||||
- name: Restart Zabbix proxy
|
- name: Restart Zabbix proxy
|
||||||
|
|||||||
Reference in New Issue
Block a user