2015-11-17 15:12:33 +01:00
|
|
|
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=mdapi:mdapi-stg"
|
2015-11-09 15:43:30 +01:00
|
|
|
|
|
|
|
- name: make the box be real
|
2016-02-02 21:03:19 +00:00
|
|
|
hosts: mdapi-stg:mdapi
|
2015-11-09 15:43:30 +01:00
|
|
|
user: root
|
|
|
|
gather_facts: True
|
|
|
|
|
2016-08-08 19:36:31 +00:00
|
|
|
vars_files:
|
2015-11-09 15:43:30 +01:00
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
|
2017-01-04 15:29:27 +00:00
|
|
|
pre_tasks:
|
|
|
|
- include: "{{ tasks }}/yumrepos.yml"
|
|
|
|
|
2015-11-09 15:43:30 +01:00
|
|
|
roles:
|
|
|
|
- base
|
|
|
|
- rkhunter
|
2016-02-23 02:33:30 +00:00
|
|
|
- nagios/client
|
2015-11-09 15:43:30 +01:00
|
|
|
- hosts
|
|
|
|
- fas_client
|
|
|
|
- rsyncd
|
|
|
|
- sudo
|
|
|
|
- { role: openvpn/client,
|
|
|
|
when: env != "staging" }
|
|
|
|
- collectd/base
|
2016-08-08 17:32:21 +00:00
|
|
|
- { role: mod_wsgi, when: env == "staging" }
|
2015-11-09 15:43:30 +01:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- include: "{{ tasks }}/2fa_client.yml"
|
|
|
|
- include: "{{ tasks }}/motd.yml"
|
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|
|
|
2015-11-09 18:11:10 +00:00
|
|
|
- name: deploy mdapi itself
|
2016-02-02 21:03:19 +00:00
|
|
|
hosts: mdapi-stg:mdapi
|
2015-11-09 15:43:30 +01:00
|
|
|
user: root
|
|
|
|
gather_facts: True
|
|
|
|
|
2015-11-09 18:11:10 +00:00
|
|
|
vars_files:
|
2015-11-09 15:43:30 +01:00
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
|
|
|
|
|
|
|
roles:
|
2015-11-09 18:11:10 +00:00
|
|
|
- mdapi
|
2016-07-27 12:12:40 +02:00
|
|
|
- { role: plus-plus-service, when: env == "staging" }
|
2015-11-09 15:43:30 +01:00
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|
|
|
|
|
2015-11-09 18:11:10 +00:00
|
|
|
- name: set up fedmsg
|
2016-02-02 21:03:19 +00:00
|
|
|
hosts: mdapi-stg:mdapi
|
2015-11-09 15:43:30 +01:00
|
|
|
user: root
|
|
|
|
gather_facts: True
|
|
|
|
|
2016-08-08 19:36:31 +00:00
|
|
|
vars_files:
|
2015-11-09 15:43:30 +01:00
|
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
|
|
|
|
|
|
|
roles:
|
2015-11-09 18:11:10 +00:00
|
|
|
- fedmsg/base
|
2015-11-09 15:43:30 +01:00
|
|
|
|
|
|
|
handlers:
|
|
|
|
- include: "{{ handlers }}/restart_services.yml"
|