blob: 5263d06d5ece22aba1f9b1bc6d0b318493f7dec8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# vmm ~~ tasks/set_fact.yml
---
- set_fact:
iso_latest: "{{ vmm.iso_dir }}/{{ vmm.iso[iso].name }}-latest.iso"
when: iso is defined
- set_fact:
disk_file: "{{ vmm.disk_dir }}/{{ guest }}.{{ vmm.disk_format }}"
iso_file: "{{ iso_latest | regex_replace('latest', vmm.iso[iso].version) }}"
iso_url: "{{ vmm.iso[iso].url \
| regex_replace('VERSIONDIR', vmm.iso[iso].versiondir) \
| regex_replace('VERSION', vmm.iso[iso].version) }}"
iso_checksum: "{{ vmm.iso[iso].sha256 \
| regex_replace('VERSIONDIR', vmm.iso[iso].versiondir) \
| regex_replace('VERSION', vmm.iso[iso].version) }}"
when: iso is defined
|