Otherwise we bail when trying to clear the mount point
Signed-off-by: Zack Cerza <zack@redhat.com>
---
-- name: Set ISO name
- set_fact:
- iso_name: "{{ distro.iso.split('/')[-1] }}"
-
-- name: Set ISO path
- set_fact:
- iso_path: "{{ iso_dir }}/{{ iso_name }}"
-
- name: Check to see if the ISO exists
stat: path={{ iso_path }} get_checksum=no get_md5=no
register: iso_stat
ignore_errors: true
changed_when: false
+- name: Set ISO name
+ set_fact:
+ iso_name: "{{ distro.iso.split('/')[-1] }}"
+
+- name: Set ISO path
+ set_fact:
+ iso_path: "{{ iso_dir }}/{{ iso_name }}"
+
- include: download_iso.yml
when: distro.iso != ''