https://pagure.io/fedora-infrastructure/issue/8177 This reverts commit f7ac4d4e27ad3ac12ebe0a35b820bd1038ab0de3.
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
- name: check/create instance
|
|
hosts: copr_front_dev:copr_front
|
|
# hosts: copr_front
|
|
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:
|
|
- import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
|
|
|
|
- name: cloud basic setup
|
|
hosts: copr_front_dev:copr_front
|
|
# hosts: copr_front
|
|
gather_facts: True
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
|
|
pre_tasks:
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
|
|
tasks:
|
|
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
|
|
- name: set hostname (required by some services, at least postfix need it)
|
|
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
|
|
|
|
- name: provision instance
|
|
hosts: copr_front:copr_front_dev
|
|
# hosts: copr_front
|
|
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
|
|
- { role: fas_client, when: devel|bool }
|
|
- { role: sudo, sudoers: "{{ private }}/files/sudo/copr-sudoers", when: devel|bool }
|
|
- copr/frontend-cloud
|
|
- nagios_client
|