Create LXD containers instead of VMs

Change-Id: I66580af317419285278d59e59d290e90f3d0dd29
diff --git a/roles/create-vms/tasks/main.yml b/roles/create-vms/tasks/main.yml
index 323c4a0..e950772 100644
--- a/roles/create-vms/tasks/main.yml
+++ b/roles/create-vms/tasks/main.yml
@@ -49,30 +49,24 @@
     port=22
   with_items: "{{ head_vm_list }}"
 
-- name: Create /etc/ansible/hosts file
-  become: yes
-  template:
-    src=ansible_hosts.j2
-    dest=/etc/ansible/hosts
-
 - name: Verify that we can log into every VM
-  command: ansible services -m ping -u ubuntu
+  command: ansible vms -m ping -u ubuntu
   tags:
     - skip_ansible_lint # connectivity check
 
 - name: Have VM's use the apt-cache
-  command: ansible services -b -u ubuntu -m lineinfile -a "dest=/etc/apt/apt.conf.d/02apt-cacher-ng create=yes mode=0644 owner=root group=root regexp='^Acquire' line='Acquire::http { Proxy \"http://{{ apt_cacher_name }}:{{ apt_cacher_port | default('3142') }}\"; };'"
+  command: ansible vms -b -u ubuntu -m lineinfile -a "dest=/etc/apt/apt.conf.d/02apt-cacher-ng create=yes mode=0644 owner=root group=root regexp='^Acquire' line='Acquire::http { Proxy \"http://{{ apt_cacher_name }}:{{ apt_cacher_port | default('3142') }}\"; };'"
   tags:
     - skip_ansible_lint # running a sub job
 
 - name: Update apt cache
-  command: ansible services -m apt -b -u ubuntu -a "update_cache=yes cache_valid_time=3600"
+  command: ansible vms -m apt -b -u ubuntu -a "update_cache=yes cache_valid_time=3600"
   tags:
     - skip_ansible_lint # running a sub job
 
 - name: Update software in all the VMs
   when: run_dist_upgrade
-  command: ansible services -m apt -b -u ubuntu -a "upgrade=dist"
+  command: ansible vms -m apt -b -u ubuntu -a "upgrade=dist"
   tags:
     - skip_ansible_lint # running a sub job
 
@@ -84,15 +78,15 @@
 
 - name: Copy eth0 interface config file to all VMs
   when: not on_maas
-  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"
+  command: ansible vms -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"
 
 - name: Restart eth0 interface on all VMs
   when: not on_maas
-  command: ansible services -b -u ubuntu -m shell -a "ifdown eth0 ; ifup eth0"
+  command: ansible vms -b -u ubuntu -m shell -a "ifdown eth0 ; ifup eth0"
 
 - name: Verify that we can log into every VM after restarting network interfaces
   when: not on_maas
-  command: ansible services -m ping -u ubuntu
+  command: ansible vms -m ping -u ubuntu
 
 # sshkey is registered in head-prep task
 - name: Enable root ssh login on VM's that require it
@@ -113,5 +107,3 @@
   command: ansible-playbook "{{ ansible_user_dir }}/docker-install-playbook.yml"
   tags:
     - skip_ansible_lint # running a sub job
-
-