]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Set iso_name and iso_path when not downloading 40/head
authorZack Cerza <zack@redhat.com>
Thu, 28 May 2015 21:36:15 +0000 (15:36 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 29 May 2015 22:38:52 +0000 (16:38 -0600)
Otherwise we bail when trying to clear the mount point

Signed-off-by: Zack Cerza <zack@redhat.com>
roles/cobbler_profile/tasks/download_iso.yml
roles/cobbler_profile/tasks/import_distro.yml

index c6b65fc69b9435eb44601b16c0510d974e171417..6facf28324172f03104188cce1ce539b6da4344d 100644 (file)
@@ -1,12 +1,4 @@
 ---
-- 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
index fc0027c87ccf568568191ca6d9def0764d4d4e60..8b290736998b6b571fd3a1c7792418f7e9061245 100644 (file)
   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 != ''