blob: 423d8550cc0aa1d2fb9a2f813439977611f2ce20 (
plain) (
tree)
|
|
- name: create disks
command:
cmd: vmctl create -s "{{ item.size }}" "{{ item.name }}.{{ vmm_disk_format }}"
chdir: "{{ vmm_disk_dir }}"
loop: "{{ vmm_vms }}"
register: result
changed_when: result.rc == 0
failed_when:
- result.rc != 0
- "'File exists' not in result.stderr"
- name: retrieve existing disks
find:
path: "{{ vmm_disk_dir }}"
patterns: "*.{{ vmm_disk_format }}"
|