diff options
author | 2017-05-16 14:58:55 +0000 | |
---|---|---|
committer | 2017-05-16 14:58:55 +0000 | |
commit | ff0d9ec6dce19b70ed58d8c0f8dbc77068cb04a0 (patch) | |
tree | 5c4c20611ee397072c14299fdff1156f82d3caa6 /prototypes/xci/playbooks/provision-vm-nodes.yml | |
parent | f2bbbd939b4209e9f24f1ebd9d90116fd441b065 (diff) | |
parent | 9cb8ab17a12852824a49b02e7b634e40467ad7e6 (diff) |
Merge "prototypes: xci: provision-vm-nodes: Do not provision VMs as root."
Diffstat (limited to 'prototypes/xci/playbooks/provision-vm-nodes.yml')
-rw-r--r-- | prototypes/xci/playbooks/provision-vm-nodes.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/prototypes/xci/playbooks/provision-vm-nodes.yml b/prototypes/xci/playbooks/provision-vm-nodes.yml index 9a32d0bfc..dad0184f1 100644 --- a/prototypes/xci/playbooks/provision-vm-nodes.yml +++ b/prototypes/xci/playbooks/provision-vm-nodes.yml @@ -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 @@ -22,10 +22,25 @@ 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: |