Rebuild docker images appropriately
diff --git a/roles/xos-install/tasks/main.yml b/roles/xos-install/tasks/main.yml
index 465040a..ba656e4 100644
--- a/roles/xos-install/tasks/main.yml
+++ b/roles/xos-install/tasks/main.yml
@@ -8,8 +8,11 @@
 
 - name: Rebuild XOS containers
   when: xos_container_rebuild
-  command: make local_containers
+  command: make {{ item }}
     chdir="{{ xos_repo_dest }}/xos/configurations/{{ xos_configuration }}/"
+  with_items:
+    - common_cloudlab
+    - base
 
 - name: Initial build of XOS
   command: make
diff --git a/roles/xos-vm-install/defaults/main.yml b/roles/xos-vm-install/defaults/main.yml
index a2d12d1..9a29be2 100644
--- a/roles/xos-vm-install/defaults/main.yml
+++ b/roles/xos-vm-install/defaults/main.yml
@@ -1,7 +1,10 @@
---- 
+---
 
 xos_repo_url: "https://github.com/open-cloud/xos.git"
 xos_repo_dest: "~/xos"
 xos_repo_branch: "HEAD"
 
 xos_configuration: "devel"
+
+xos_container_rebuild: false
+
diff --git a/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml b/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml
index 5f3bcd8..66ff0bf 100644
--- a/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml
+++ b/roles/xos-vm-install/files/xos-setup-cord-pod-playbook.yml
@@ -50,9 +50,17 @@
       with_items: "{{ xos_images }}"
 
     - name: Pull docker images for XOS
+      when: not xos_container_rebuild
       become: yes
       command: docker pull {{ item }}
       with_items:
         - xosproject/xos-base
         - xosproject/xos-postgres
 
+    - name: Rebuild XOS containers
+      when: xos_container_rebuild
+      command: make {{ item }}
+        chdir="{{ xos_repo_dest }}/containers/xos/"
+      with_items:
+       - base
+
diff --git a/roles/xos-vm-install/templates/xos-setup-vars.yml.j2 b/roles/xos-vm-install/templates/xos-setup-vars.yml.j2
index 2d5ab15..f650e21 100644
--- a/roles/xos-vm-install/templates/xos-setup-vars.yml.j2
+++ b/roles/xos-vm-install/templates/xos-setup-vars.yml.j2
@@ -6,5 +6,7 @@
 
 xos_configuration: "{{ xos_configuration }}"
 
+xos_container_rebuild: "{{ xos_container_rebuild }}"
+
 xos_images:
 {{ xos_images | to_nice_yaml }}