Change var name: cord_provisioned -> on_maas
Change-Id: I046224d3e3297e551f596509367ac39a65fa7fb1
(cherry picked from commit fc43e8441f77ce9fbd5be13a7da7e98e529b9353)
diff --git a/roles/create-vms/tasks/main.yml b/roles/create-vms/tasks/main.yml
index b20c82e..48cbb3a 100644
--- a/roles/create-vms/tasks/main.yml
+++ b/roles/create-vms/tasks/main.yml
@@ -42,19 +42,19 @@
template:
src=eth0.cfg.j2
dest={{ ansible_user_dir }}/eth0.cfg
- when: not cord_provisioned
+ when: not on_maas
- name: Copy eth0 interface config file to all VMs
command: ansible services -b -u ubuntu -m copy -a "src={{ ansible_user_dir }}/eth0.cfg dest=/etc/network/interfaces.d/eth0.cfg owner=root group=root mode=0644"
- when: not cord_provisioned
+ when: not on_maas
- name: Restart eth0 interface on all VMs
command: ansible services -b -u ubuntu -m shell -a "ifdown eth0 ; ifup eth0"
- when: not cord_provisioned
+ when: not on_maas
- name: Verify that we can log into every VM after restarting network interfaces
command: ansible services -m ping -u ubuntu
- when: not cord_provisioned
+ when: not on_maas
# sshkey is registered in head-prep task
- name: Enable root ssh login on VM's that require it