aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/set_facts.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vmm/tasks/set_facts.yml')
-rw-r--r--roles/vmm/tasks/set_facts.yml9
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/vmm/tasks/set_facts.yml b/roles/vmm/tasks/set_facts.yml
index a38a63d..6b6dbfe 100644
--- a/roles/vmm/tasks/set_facts.yml
+++ b/roles/vmm/tasks/set_facts.yml
@@ -3,15 +3,18 @@
---
-- set_fact:
+- name: ensure guest exists
+ set_facts:
disk_file: "{{ vmm.disk_dir }}/{{ guest }}.{{ vmm.disk_format }}"
when: guest is defined
-- set_fact:
+- name: generate iso infos 1/2
+ set_fact:
iso_latest: "{{ vmm.iso_dir }}/{{ vmm.iso[iso].name }}-latest.iso"
when: iso is defined
-- set_fact:
+- name: generate iso infos 2/2
+ set_fact:
iso_file: "{{ iso_latest | regex_replace('latest', vmm.iso[iso].version) }}"
iso_url: "{{ vmm.iso[iso].url \
| regex_replace('VERSIONDIR', vmm.iso[iso].versiondir) \
remember that computers suck.