From 57e79e6ec081c4f301bac1c1dadc75aaae14aa6e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 29 Sep 2015 17:17:21 +0200 Subject: [PATCH] Expand the pdc playbook to create the cloud instance as well --- playbooks/hosts/pdc.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/playbooks/hosts/pdc.yml b/playbooks/hosts/pdc.yml index 13412bb978..9eb4dfa8c4 100644 --- a/playbooks/hosts/pdc.yml +++ b/playbooks/hosts/pdc.yml @@ -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"