progress on integrating CORD single node setup with roles
diff --git a/roles/cloudlab-prep/defaults/main.yml b/roles/cloudlab-prep/defaults/main.yml
new file mode 100644
index 0000000..00a4575
--- /dev/null
+++ b/roles/cloudlab-prep/defaults/main.yml
@@ -0,0 +1,6 @@
+---
+# roles/cloudlab-prep/defaults/main.yml
+
+cloudlab_extrafs:
+ - /var/lib/nova
+ # - /var/lib/uvtool/libvirt/images
diff --git a/roles/cloudlab-prep/tasks/main.yml b/roles/cloudlab-prep/tasks/main.yml
index e23168b..3dc0985 100644
--- a/roles/cloudlab-prep/tasks/main.yml
+++ b/roles/cloudlab-prep/tasks/main.yml
@@ -1,7 +1,15 @@
---
# roles/cloudlab-prep/tasks/main.yml
-- name: Set up extra disk space
- command: /usr/testbed/bin/mkextrafs -f /var/lib/uvtool/libvirt/images
- creates=/var/lib/uvtool/libvirt/images/lost+found
+- name: create directories to mount extra filesystems
+ file:
+ dest={{ item }}
+ state=directory
+ with_items: "{{ cloudlab_extrafs }}"
+
+
+- name: Set up extra disk space
+ command: /usr/testbed/bin/mkextrafs -f {{ item }}
+ creates={{ item }}/lost+found
+ with_items: "{{ cloudlab_extrafs }}"