Zabbix: add zabbix agent to groups/proxies playbook
Signed-off-by: Patrik Polakovič <patrik@alphamail.org>
This commit is contained in:
parent
c49697a0a3
commit
d4a8336920
1 changed files with 15 additions and 14 deletions
|
@ -10,9 +10,9 @@
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
|
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
|
||||||
|
@ -20,16 +20,17 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- { role: openvpn/client,
|
- {role: openvpn/client,
|
||||||
when: env != "staging" }
|
when: env != "staging"}
|
||||||
- ipa/client
|
- ipa/client
|
||||||
- rkhunter
|
- rkhunter
|
||||||
- nagios_client
|
- nagios_client
|
||||||
|
- {role: zabbix/zabbix_agent, when: env == "staging"}
|
||||||
- collectd/base
|
- collectd/base
|
||||||
- sudo
|
- sudo
|
||||||
- rsyncd
|
- rsyncd
|
||||||
- { role: mirrormanager/mirrorlist_proxy,
|
- {role: mirrormanager/mirrorlist_proxy,
|
||||||
when: env == "staging" or "'mirrorlist_proxy' in group_names" }
|
when: env == "staging" or "'mirrorlist_proxy' in group_names"}
|
||||||
- apache
|
- apache
|
||||||
# - role: zabbix/zabbix_agent
|
# - role: zabbix/zabbix_agent
|
||||||
#when: env == "staging"
|
#when: env == "staging"
|
||||||
|
@ -84,9 +85,9 @@
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
@ -101,7 +102,7 @@
|
||||||
# Re-run hosts here so things are ok for the haproxy check
|
# Re-run hosts here so things are ok for the haproxy check
|
||||||
#
|
#
|
||||||
- hosts
|
- hosts
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
# After setting up the "basics" of the proxy hosts above, here below we break
|
# After setting up the "basics" of the proxy hosts above, here below we break
|
||||||
|
@ -125,9 +126,9 @@
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue