aboutsummaryrefslogblamecommitdiffstats
path: root/roles/vmm/tasks/set_facts.yml
blob: 2acc4585040fd85766f6242e02a9478055e7beec (plain) (tree)


















                                                                                

# vmm ~~ tasks/set_fact.yml

---

- set_fact:
    iso_latest: "{{ vmm.iso_dir }}/{{ vmm.iso[iso].name }}-latest.iso"
  when: iso is defined

- 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) \
      | 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

remember that computers suck.