blob: 24dd491e7b2bfd20bf1a45e4691a4305f9517c28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
- name: create disks
command:
cmd: vmctl create -s "{{ item.size }}" "{{ item.name }}.{{ vmm_disk_format }}"
chdir: "{{ vmm_disk_dir }}"
loop: "{{ __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 }}"
|