remove zabbix
This commit is contained in:
parent
38c9e9e0ea
commit
a00d209990
|
|
@ -1,7 +1,6 @@
|
||||||
[all:vars]
|
[all:vars]
|
||||||
ansible_user=root
|
ansible_user=root
|
||||||
my_domain=mini-beieli.ch
|
my_domain=mini-beieli.ch
|
||||||
zabbix_server_ip=195.201.222.24
|
|
||||||
mailserver=mail.nbit.ch
|
mailserver=mail.nbit.ch
|
||||||
mail_forward_address=joerg.lehmann@nbit.ch
|
mail_forward_address=joerg.lehmann@nbit.ch
|
||||||
document_root=/home/beieli/mini-beieli-web
|
document_root=/home/beieli/mini-beieli-web
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,6 @@
|
||||||
name=sshd
|
name=sshd
|
||||||
state=restarted
|
state=restarted
|
||||||
|
|
||||||
- name: Restart zabbix-agent
|
|
||||||
service:
|
|
||||||
name=zabbix-agent
|
|
||||||
state=restarted
|
|
||||||
|
|
||||||
- name: Restart postfix
|
- name: Restart postfix
|
||||||
service:
|
service:
|
||||||
name=postfix
|
name=postfix
|
||||||
|
|
|
||||||
|
|
@ -91,22 +91,6 @@
|
||||||
backup: yes
|
backup: yes
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: install zabbix agent
|
|
||||||
yum:
|
|
||||||
name: zabbix40-agent
|
|
||||||
|
|
||||||
- name: enable zabbix agent
|
|
||||||
systemd:
|
|
||||||
name: zabbix-agent
|
|
||||||
enabled: yes
|
|
||||||
|
|
||||||
- name: zabbix config
|
|
||||||
lineinfile: dest=/etc/zabbix/zabbix_agentd.conf
|
|
||||||
regexp="^Server="
|
|
||||||
line="Server={{ zabbix_server_ip }}"
|
|
||||||
state=present
|
|
||||||
notify: Restart zabbix-agent
|
|
||||||
|
|
||||||
- name: install postfix
|
- name: install postfix
|
||||||
yum:
|
yum:
|
||||||
name: postfix
|
name: postfix
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue