aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/disk.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/vmm/tasks/disk.yml
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
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.