aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/vmm/tasks/disks.yml9
1 files changed, 3 insertions, 6 deletions
diff --git a/roles/vmm/tasks/disks.yml b/roles/vmm/tasks/disks.yml
index f70d563..3e877f9 100644
--- a/roles/vmm/tasks/disks.yml
+++ b/roles/vmm/tasks/disks.yml
@@ -10,10 +10,7 @@
- name: generate vm disk
shell: |
- disk="{{ vmm.disk_dir }}/{{ guest.name }}_{{ disk.id }}.{{ vmm.disk_format }}"
+ disk="{{ vmm.disk_dir }}/{{ guest.name }}.{{ vmm.disk_format }}"
rm "${disk}"
- vmctl create -s {{ disk.size }} "${disk}"
- #when: not st.stat.exists or st.stat.size < 32
- loop: "{{ guest.disks }}"
- loop_control:
- loop_var: disk
+ vmctl create -s {{ guest.disk }} "${disk}"
+ when: not st.stat.exists or st.stat.size < 32
remember that computers suck.