Changed zabbix agent roles after some troubleshooting.

This commit is contained in:
Adam Saleh 2021-03-16 22:57:35 +01:00
parent 912414cfed
commit 5ae390bcea
3 changed files with 7 additions and 4 deletions

View file

@ -86,8 +86,6 @@
- bodhi2/backend
- role: zabbix/zabbix-agent
zabbix_server: apache
zabbix_server_ip: apache
when: env == "staging"
- role: push-container-registry

View file

@ -38,6 +38,11 @@
state: yes
when: ansible_selinux.status == "enabled"
- name: Ensures config directory
file:
path: "{{ zabbix_agentd_dir }}"
state: directory
- name: Configuring Zabbix agentd
template:
src: zabbix_agentd.conf.j2

View file

@ -8,6 +8,6 @@ zabbix_pkgs_list:
- bc
- ncurses-compat-libs # Needed for some megacli tools and raid monitoring checks through zabbix_sender
zabbix_agentd: /etc/zabbix_agentd.conf
zabbix_agentd: /etc/zabbix/zabbix_agentd.conf
zabbix_agentd_dir: /etc/zabbix/
zabbix_agentd_dir: /etc/zabbix/zabbix_agentd.d