add zabbix config playbook for vm

Signed-off-by: siddharthvipul <siddharthvipul1@gmail.com>
This commit is contained in:
siddharthvipul 2021-03-09 20:14:37 +05:30
parent c71ab07c4e
commit 261ee786c0
2 changed files with 31 additions and 0 deletions

View file

@ -713,6 +713,7 @@ vmhost-x86-10.stg.iad2.fedoraproject.org
vmhost-x86-11.stg.iad2.fedoraproject.org
vmhost-x86-12.stg.iad2.fedoraproject.org
wiki01.stg.iad2.fedoraproject.org
zabbix01.stg.iad2.fedoraproject.org
# This is a list of hosts that are a little "friendly" with staging.
# They are exempted from the iptables wall between staging and prod.

View file

@ -0,0 +1,30 @@
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=zabbix_stg"
- name: make the box be real
hosts: zabbix_stg
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- hosts
- { role: fas_client, when: env != "staging" }
- { role: ipa/client, when: env == "staging" }
- collectd/base
- apache
- sudo
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"