No denyhosts for f20 hosts for now, add manual monitor playbook.

This commit is contained in:
Kevin Fenzi 2014-05-23 18:38:30 +00:00
parent 83e93d6a10
commit 0944682e24
2 changed files with 49 additions and 1 deletions

View file

@ -33,7 +33,6 @@
roles:
- base
- rkhunter
- denyhosts
- nagios_client
- fas_client
- collectd/base

View file

@ -0,0 +1,49 @@
# create a new monitor server
#
# This server looks for rawhide builds and requests they be signed.
#
- name: make monitor server
hosts: monitor
user: root
gather_facts: False
accelerate: "{{ accelerated }}"
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- include: "{{ tasks }}/virt_instance_create.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: make the box be real
hosts: monitor
user: root
gather_facts: True
accelerate: "{{ accelerated }}"
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- nagios_client
- fas_client
- collectd/base
tasks:
- include: "{{ tasks }}/hosts.yml"
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
- include: "{{ tasks }}/sudo.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"