ansible/playbooks/hosts/testdays.fedorainfracloud.org.yml
root 13623a7c73 Fix indentation
Signed-off-by: root <root@batcave01.phx2.fedoraproject.org>
2017-08-16 18:01:16 +00:00

53 lines
1.5 KiB
YAML

---
- name: check/create instance
hosts: testdays.fedorainfracloud.org
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- /srv/private/ansible/vars.yml
- /srv/web/infra/ansible/vars/fedora-cloud.yml
- /srv/private/ansible/files/openstack/passwords.yml
tasks:
- include: "{{ tasks_path }}/persistent_cloud.yml"
handlers:
- include: "{{ handlers_path }}/restart_services.yml"
- name: setup all the things
hosts: testdays.fedorainfracloud.org
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- /srv/private/ansible/vars.yml
- /srv/private/ansible/files/openstack/passwords.yml
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
pre_tasks:
- include: "{{ tasks_path }}/cloud_setup_basic.yml"
- name: set hostname (required by some services, at least postfix need it)
hostname: name="{{inventory_hostname}}"
roles:
- basessh
- postgresql_server
- name: configure resultsdb and testdays
hosts: testdays.fedorainfracloud.org
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:
- { role: taskotron/resultsdb-backend, tags: ['resultsdb-be'] }
- { role: taskotron/resultsdb-frontend, tags: ['resultsdb-fe'] }
- { role: testdays, tags: ['testdays'] }
handlers:
- include: "{{ handlers_path }}/restart_services.yml"