Files
fedora-infra_ansible/playbooks/groups/autocloud-backend.yml

50 lines
1.2 KiB
YAML

- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=autocloud-backend-stg"
- name: dole out the generic configuration
hosts: autocloud-backend:autocloud-backend-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
pre_tasks:
- include: "{{ tasks_path }}/yumrepos.yml"
roles:
- base
- rkhunter
- hosts
- fas_client
- nagios_client
- collectd/base
- fedmsg/base
- sudo
tasks:
- include: "{{ tasks_path }}/2fa_client.yml"
- include: "{{ tasks_path }}/motd.yml"
handlers:
- include: "{{ handlers_path }}/restart_services.yml"
- name: dole out the service-specific config
hosts: autocloud-backend:autocloud-backend-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
handlers:
- include: "{{ handlers_path }}/restart_services.yml"
roles:
- redis
- fedmsg/hub
- autocloud/backend
- role: collectd/fedmsg-service
process: fedmsg-hub