2013-05-15 20:30:00 +00:00
|
|
|
# provision a new kernel-qa system
|
|
|
|
# NOTE: this assumes the kernel-qa boxes are already up and are accessible
|
2014-01-06 17:49:22 +00:00
|
|
|
# NOTE: most of these vars_path come from group_vars/kernel-qa or from hostvars
|
2013-05-15 20:30:00 +00:00
|
|
|
|
|
|
|
- name: make kernel-qa
|
|
|
|
hosts: kernel-qa
|
|
|
|
user: root
|
|
|
|
gather_facts: True
|
|
|
|
|
|
|
|
vars_files:
|
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
2014-01-01 19:15:11 +00:00
|
|
|
- "{{ private }}/vars.yml"
|
2014-01-06 18:22:18 +00:00
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
2013-05-15 20:30:00 +00:00
|
|
|
|
2013-08-19 20:12:26 +00:00
|
|
|
roles:
|
2013-08-25 18:44:54 +00:00
|
|
|
- /srv/web/infra/ansible/roles/base
|
2013-08-19 21:04:17 +00:00
|
|
|
- /srv/web/infra/ansible/roles/rkhunter
|
|
|
|
- /srv/web/infra/ansible/roles/denyhosts
|
|
|
|
- /srv/web/infra/ansible/roles/nagios_client
|
|
|
|
- /srv/web/infra/ansible/roles/fas_client
|
2013-08-19 20:12:26 +00:00
|
|
|
|
2013-05-15 20:30:00 +00:00
|
|
|
tasks:
|
|
|
|
# this is how you include other task lists
|
2014-01-01 19:15:11 +00:00
|
|
|
- include: "{{ tasks }}/hosts.yml"
|
|
|
|
- include: "{{ tasks }}/yumrepos.yml"
|
|
|
|
- include: "{{ tasks }}/2fa_client.yml"
|
|
|
|
- include: "{{ tasks }}/motd.yml"
|
|
|
|
- include: "{{ tasks }}/sudo.yml"
|
2013-05-21 19:44:28 +00:00
|
|
|
|
2013-05-15 20:30:00 +00:00
|
|
|
|
|
|
|
handlers:
|
2014-01-01 19:15:11 +00:00
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|