2017-10-15 19:54:19 +00:00
|
|
|
- import_playbook: "/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:
|
2017-10-17 17:37:03 +00:00
|
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
2017-01-04 15:29:27 +00:00
|
|
|
|
2015-11-09 15:43:30 +01:00
|
|
|
roles:
|
|
|
|
- base
|
|
|
|
- rkhunter
|
2017-05-05 22:12:33 +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
|
|
|
|
|
|
|
|
tasks:
|
2017-10-17 17:37:03 +00:00
|
|
|
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
|
|
|
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
2015-11-09 15:43:30 +01:00
|
|
|
|
|
|
|
handlers:
|
2017-10-15 20:33:11 +00:00
|
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
2015-11-09 15:43:30 +01:00
|
|
|
|
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:
|
2017-10-15 20:33:11 +00:00
|
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
2015-11-09 15:43:30 +01:00
|
|
|
|
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:
|
2017-10-15 20:33:11 +00:00
|
|
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|