Changed zabbix agent roles after some troubleshooting.
This commit is contained in:
parent
912414cfed
commit
5ae390bcea
3 changed files with 7 additions and 4 deletions
|
@ -86,8 +86,6 @@
|
||||||
- bodhi2/backend
|
- bodhi2/backend
|
||||||
|
|
||||||
- role: zabbix/zabbix-agent
|
- role: zabbix/zabbix-agent
|
||||||
zabbix_server: apache
|
|
||||||
zabbix_server_ip: apache
|
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
|
|
||||||
- role: push-container-registry
|
- role: push-container-registry
|
||||||
|
|
|
@ -38,6 +38,11 @@
|
||||||
state: yes
|
state: yes
|
||||||
when: ansible_selinux.status == "enabled"
|
when: ansible_selinux.status == "enabled"
|
||||||
|
|
||||||
|
- name: Ensures config directory
|
||||||
|
file:
|
||||||
|
path: "{{ zabbix_agentd_dir }}"
|
||||||
|
state: directory
|
||||||
|
|
||||||
- name: Configuring Zabbix agentd
|
- name: Configuring Zabbix agentd
|
||||||
template:
|
template:
|
||||||
src: zabbix_agentd.conf.j2
|
src: zabbix_agentd.conf.j2
|
||||||
|
|
|
@ -8,6 +8,6 @@ zabbix_pkgs_list:
|
||||||
- bc
|
- bc
|
||||||
- ncurses-compat-libs # Needed for some megacli tools and raid monitoring checks through zabbix_sender
|
- 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
|
Loading…
Add table
Add a link
Reference in a new issue