We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e33ebe6 + 7f546f2 commit 231b652Copy full SHA for 231b652
tasks/main.yml
@@ -15,6 +15,13 @@
15
(libvirt_vms | selectattr('state', 'defined')
16
| selectattr('state', 'equalto', 'absent') | list) != libvirt_vms
17
18
+# Libvirt requires qemu-img to create qcow2 files.
19
+- name: Ensure qemu-img is installed
20
+ package:
21
+ name: "{{ 'qemu-img' if ansible_os_family == 'RedHat' else 'qemu-utils' }}"
22
+ update_cache: "{{ True if ansible_pkg_mgr == 'apt' else omit }}"
23
+ become: true
24
+
25
- include_tasks: volumes.yml
26
vars:
27
volumes: "{{ vm.volumes | default([], true) }}"
0 commit comments