maj zabbix cli
This commit is contained in:
parent
6b10b981f4
commit
045af9bea2
@ -23,15 +23,14 @@
|
|||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: config
|
- name: Replace Zabbix agent config
|
||||||
template:
|
replace:
|
||||||
src: zabbix_agentd.conf.temp
|
path: /etc/zabbix/zabbix_agentd.conf
|
||||||
dest: /etc/zabbix/zabbix_agentd.conf
|
regexp: '{{ item.regexp }}'
|
||||||
vars:
|
replace: '{{ item.replace }}'
|
||||||
PidFile: "/run/zabbix/zabbix_agentd.pid"
|
backup: true
|
||||||
LogFile: "/var/log/zabbix/zabbix_agentd.log"
|
loop:
|
||||||
LogFileSize: "0"
|
- { regexp: '^(Server\s*=\s*).*$', replace: 'Server = 127.0.0.1' }
|
||||||
Server: "127.0.0.1"
|
- { regexp: '^(ServerActive\s*=\s*).*$', replace: 'ServerActive = 192.168.99.8' }
|
||||||
ServerActive: "192.168.99.8"
|
- { regexp: '^(Hostname\s*=\s*).*$', replace: 'Hostname = {{ ansible_hostname }}' }
|
||||||
Hostname: "{{ ansible_hostname }}"
|
- { regexp: '^(Include\s*=\s*).*$', replace: 'Include = /etc/zabbix/zabbix_agentd.d/*.conf' }
|
||||||
Include: "/etc/zabbix/zabbix_agentd.d/*.conf"
|
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
PidFile={{ PidFile }}
|
|
||||||
LogFile={{ LogFile }}
|
|
||||||
LogFileSize={{ LogFileSize }}
|
|
||||||
Server={{ Server }}
|
|
||||||
ServerActive={{ ServerActive }}
|
|
||||||
Hostname={{ Hostname }}
|
|
||||||
Include={{ Include }}
|
|
@ -13,7 +13,7 @@
|
|||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- goss
|
- goss
|
||||||
#- zabbix-cli
|
- zabbix-cli
|
||||||
- glpi
|
- glpi
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
# - syslog-cli
|
# - syslog-cli
|
||||||
|
Loading…
x
Reference in New Issue
Block a user