mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 10:56:20 +08:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
- name: check/create instance
|
|
#hosts: copr-back
|
|
hosts: copr-back:copr-back-stg
|
|
user: root
|
|
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-back:copr-back-stg
|
|
user: root
|
|
gather_facts: True
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- /srv/private/ansible/vars.yml
|
|
|
|
tasks:
|
|
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
|
|
- import_tasks: "{{ tasks_path }}/yumrepos.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-back:copr-back-stg
|
|
user: root
|
|
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
|
|
|
|
# Roles are run first, before tasks, regardless of where you place them here.
|
|
roles:
|
|
- base
|
|
- fedmsg/base
|
|
- copr/backend
|
|
- nagios_client
|