Making the config-file path configurable.
This commit is contained in:
parent
c258ef5c6a
commit
88d1e79ea4
3 changed files with 10 additions and 2 deletions
|
@ -41,7 +41,7 @@
|
||||||
- name: Configuring Zabbix agentd
|
- name: Configuring Zabbix agentd
|
||||||
template:
|
template:
|
||||||
src: zabbix_agentd.conf.j2
|
src: zabbix_agentd.conf.j2
|
||||||
dest: /etc/zabbix/zabbix_agentd.conf
|
dest: "{{ zabbix_agentd }}"
|
||||||
notify: restart_zabbix_agent
|
notify: restart_zabbix_agent
|
||||||
|
|
||||||
- name: Ensuring we have a directory to put zabbix scripts
|
- name: Ensuring we have a directory to put zabbix scripts
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
- name: Adding some other conf files under zabbix_agentd.d
|
- name: Adding some other conf files under zabbix_agentd.d
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}.j2"
|
src: "{{ item }}.j2"
|
||||||
dest: "/etc/zabbix/zabbix_agentd.d/{{ item }}"
|
dest: "{{ zabbix_agentd_dir }}/{{ item }}"
|
||||||
owner: zabbix
|
owner: zabbix
|
||||||
mode: 0666
|
mode: 0666
|
||||||
notify: restart_zabbix_agent
|
notify: restart_zabbix_agent
|
||||||
|
|
|
@ -6,3 +6,7 @@ zabbix_pkgs_list:
|
||||||
- zabbix-sender
|
- zabbix-sender
|
||||||
- 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/zabbix_agentd.conf
|
||||||
|
|
||||||
|
zabbix_agentd_dir: /etc/zabbix/zabbix_agentd.d
|
|
@ -7,3 +7,7 @@ zabbix_pkgs_list:
|
||||||
- zabbix-selinux
|
- zabbix-selinux
|
||||||
- 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_dir: /etc/zabbix/
|
Loading…
Add table
Add a link
Reference in a new issue