Initial playbook for fedimg.

This commit is contained in:
Ralph Bean 2014-07-09 13:56:44 +00:00
parent b5d38d0960
commit ae5c56a79c

View file

@ -0,0 +1,66 @@
- name: make fedimg server
hosts: fedimg;fedimg-stg
user: root
gather_facts: False
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"
- include: "{{ tasks }}/accelerate_prep.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: dole out the generic configuration
hosts: fedimg;fedimg-stg
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
- denyhosts
- nagios_client
- hosts
- fas_client
- collectd/base
- fedmsg/base
- sudo
tasks:
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: dole out the service-specific config
hosts: fedimg;fedimg-stg
user: root
gather_facts: True
accelerate: "{{ accelerated }}"
roles:
- fedmsg/hub
#- fedimg
#- role: collectd/fedmsg-service
# process: fedmsg-hub
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"