xci: playbooks: Include distribution var files dynamically 87/42287/10
authorMarkos Chandras <mchandras@suse.de>
Mon, 18 Sep 2017 14:50:16 +0000 (15:50 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 21 Sep 2017 20:51:43 +0000 (21:51 +0100)
This is a continuation of I0a49e2ed8d811bb40a99612462752f8691133e0f
We need to convert these two plays to include the variable files
dynamically similar to the rest of the playbook.

Change-Id: I43203651ccafb03e015bfe4d1b075a7ee96b5adc
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/configure-localhost.yml
xci/playbooks/configure-opnfvhost.yml
xci/playbooks/provision-vm-nodes.yml

index aebde61..915d195 100644 (file)
@@ -32,7 +32,6 @@
     - { role: clone-repository, project: "openstack/openstack-ansible-openstack_openrc", repo: "{{ OPENSTACK_OSA_OPENRC_GIT_URL }}", dest: "{{ OPENSTACK_OSA_OPENRC_PATH }}", version: "master" }
 - hosts: localhost
   connection: local
-  gather_facts: false
   vars_files:
     - ../var/opnfv.yml
   tasks:
@@ -77,7 +76,6 @@
         dest: "{{OPNFV_RELENG_PATH}}/xci/var"
 - hosts: localhost
   connection: local
-  gather_facts: false
   vars_files:
     - ../var/opnfv.yml
   tasks:
index 283aadc..84c0d82 100644 (file)
       shell: "/bin/cat {{ ansible_env.HOME }}/.ssh/id_rsa.pub >> ../file/authorized_keys"
 
 - hosts: opnfv
-  gather_facts: no
   remote_user: root
   vars_files:
     - ../var/flavor-vars.yml
index 3d88c5c..81fc575 100644 (file)
   connection: local
   become: yes
   vars_files:
-    - ../var/{{ ansible_os_family }}.yml
     - ../var/opnfv.yml
   tasks:
+    - name: Load distribution variables
+      include_vars:
+        file: ../var/{{ ansible_os_family }}.yml
     - name: destroy VM nodes created by previous deployment
       command: "/bin/bash ./scripts/destroy-env.sh"
       args: