ansible/playbooks/groups/basset.yml
2016-08-08 16:34:41 +00:00

38 lines
817 B
YAML

# create a new basset server
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=basset:basset-stg"
- name: make the box be real
hosts: basset:basset-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
- nagios/client
- hosts
- fas_client
- collectd/base
- rsyncd
- sudo
- { role: openvpn/client,
when: env != "staging" }
- mongodb
- rabbitmq
- mod_wsgi
- basset/frontend
- basset/worker
tasks:
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"