Add autocloud backend playbook.
This commit is contained in:
parent
8ebd0f931e
commit
93892372e8
1 changed files with 52 additions and 0 deletions
52
playbooks/groups/autocloud-backend.yml
Normal file
52
playbooks/groups/autocloud-backend.yml
Normal file
|
@ -0,0 +1,52 @@
|
|||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=autocloud-backend: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
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- { role: denyhosts, when: ansible_distribution_major_version|int != 7 }
|
||||
- hosts
|
||||
- fas_client
|
||||
- nagios_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: autocloud-backend;autocloud-backend-stg
|
||||
# user: root
|
||||
# gather_facts: True
|
||||
#
|
||||
# roles:
|
||||
# - fedmsg/hub
|
||||
# - autocloud/backend
|
||||
# - redis?
|
||||
# - role: collectd/fedmsg-service
|
||||
# process: fedmsg-hub
|
||||
# - role: collectd/redis-something?
|
||||
# process: fedmsg-hub
|
||||
#
|
||||
# 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 }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue