aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/disk.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vmm/tasks/disk.yml')
-rw-r--r--roles/vmm/tasks/disk.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/vmm/tasks/disk.yml b/roles/vmm/tasks/disk.yml
index 95427c6..01fdc48 100644
--- a/roles/vmm/tasks/disk.yml
+++ b/roles/vmm/tasks/disk.yml
@@ -1,5 +1,5 @@
- name: create disks
- command:
+ ansible.builtin.command:
cmd: vmctl create -s "{{ item.size }}" "{{ item.name }}.{{ vmm_disk_format }}"
chdir: "{{ vmm_disk_dir }}"
loop: "{{ vmm_vms }}"
@@ -10,13 +10,13 @@
- "'File exists' not in result.stderr"
- name: retrieve existing disks
- find:
+ ansible.builtin.find:
path: "{{ vmm_disk_dir }}"
patterns: "*.{{ vmm_disk_format }}"
register: result
- name: append disks informations to vms facts
- set_fact:
+ ansible.builtin.set_fact:
vmm_vms_tmp: >
{{ vmm_vms_tmp | default([]) + [ item | combine({
"disk": result.files
@@ -25,5 +25,5 @@
loop: "{{ vmm_vms }}"
- name: save variables
- set_fact:
+ ansible.builtin.set_fact:
vmm_vms: "{{ vmm_vms_tmp }}"
remember that computers suck.