Expand the pdc playbook to create the cloud instance as well

This commit is contained in:
Pierre-Yves Chibon 2015-09-29 17:17:21 +02:00
parent 0f2225fc0c
commit 57e79e6ec0

View file

@ -1,16 +1,29 @@
- name: check/create instance
hosts: pdc.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 }}/persistent_cloud_new.yml"
- name: Set up basics for our pdc node.
hosts: pdc
hosts: pdc.fedorainfracloud.org
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/private/ansible/vars.yml
- /srv/private/ansible/files/openstack/passwords.yml
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- include: "{{ handlers }}/restart_services.yml"
roles:
- base
- apache
pre_tasks:
- include: "{{ tasks }}/cloud_setup_basic.yml"
- name: set hostname (required by some services, at least postfix need it)
shell: "hostname {{inventory_hostname}}"
tasks:
- include: "{{ tasks }}/mod_wsgi.yml"