mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 03:23:08 +08:00
Making the config-file path configurable.
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
- name: Configuring Zabbix agentd
|
||||
template:
|
||||
src: zabbix_agentd.conf.j2
|
||||
dest: /etc/zabbix/zabbix_agentd.conf
|
||||
dest: "{{ zabbix_agentd }}"
|
||||
notify: restart_zabbix_agent
|
||||
|
||||
- name: Ensuring we have a directory to put zabbix scripts
|
||||
@@ -55,7 +55,7 @@
|
||||
- name: Adding some other conf files under zabbix_agentd.d
|
||||
template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/zabbix/zabbix_agentd.d/{{ item }}"
|
||||
dest: "{{ zabbix_agentd_dir }}/{{ item }}"
|
||||
owner: zabbix
|
||||
mode: 0666
|
||||
notify: restart_zabbix_agent
|
||||
|
||||
@@ -6,3 +6,7 @@ zabbix_pkgs_list:
|
||||
- zabbix-sender
|
||||
- bc
|
||||
- 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
|
||||
- bc
|
||||
- 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/
|
||||
Reference in New Issue
Block a user