prototypes: xci: configure-localhost: Use 'connection: local'
[releng.git] / prototypes / xci / playbooks / provision-vm-nodes.yml
index 9a32d0b..dad0184 100644 (file)
@@ -8,7 +8,7 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
 - hosts: localhost
-  remote_user: root
+  connection: local
   vars_files:
     - ../var/{{ ansible_os_family }}.yml
     - ../var/opnfv.yml
       copy:
         src: "{{ OPNFV_RELENG_PATH }}/prototypes/bifrost/"
         dest: "{{ OPENSTACK_BIFROST_PATH }}"
+
+- hosts: localhost
+  connection: local
+  become: yes
+  vars_files:
+    - ../var/{{ ansible_os_family }}.yml
+    - ../var/opnfv.yml
+  tasks:
     - name: destroy VM nodes created by previous deployment
       command: "/bin/bash ./scripts/destroy-env.sh"
       args:
         chdir: "{{ OPENSTACK_BIFROST_PATH }}"
+
+- hosts: localhost
+  connection: local
+  vars_files:
+    - ../var/{{ ansible_os_family }}.yml
+    - ../var/opnfv.yml
+  tasks:
     - name: create and provision VM nodes for the flavor {{ XCI_FLAVOR }}
       command: "/bin/bash ./scripts/bifrost-provision.sh"
       args: