65 lines
1.4 KiB
YAML
65 lines
1.4 KiB
YAML
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=elections:elections-stg"
|
|
|
|
- name: make the box be real
|
|
hosts: elections:elections-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
|
|
- rsyncd
|
|
- sudo
|
|
- { role: openvpn/client,
|
|
when: env != "staging" }
|
|
- mod_wsgi
|
|
- collectd/base
|
|
|
|
tasks:
|
|
- include: "{{ tasks_path }}/yumrepos.yml"
|
|
- include: "{{ tasks_path }}/2fa_client.yml"
|
|
- include: "{{ tasks_path }}/motd.yml"
|
|
|
|
handlers:
|
|
- include: "{{ handlers_path }}/restart_services.yml"
|
|
|
|
- name: set up fedmsg on elections
|
|
hosts: elections:elections-stg
|
|
user: root
|
|
gather_facts: True
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
|
|
|
roles:
|
|
- fedmsg/base
|
|
|
|
handlers:
|
|
- include: "{{ handlers_path }}/restart_services.yml"
|
|
|
|
- name: deploy elections itself
|
|
hosts: elections:elections-stg
|
|
user: root
|
|
gather_facts: True
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
|
|
|
roles:
|
|
- elections
|
|
|
|
handlers:
|
|
- include: "{{ handlers_path }}/restart_services.yml"
|
|
|