]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: copy iso files if rolling_update
authorSébastien Han <seb@redhat.com>
Thu, 3 May 2018 14:54:53 +0000 (16:54 +0200)
committerSébastien Han <seb@redhat.com>
Thu, 3 May 2018 15:20:23 +0000 (17:20 +0200)
If we are in a middle of an update we want to get the new package
version being installed so the task that copies the repo files should
not be skipped.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1572032
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 4a186237e6fdc98f779c2e25985da4325b3b16cd)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install.yml

index d95bc66f5450967ec19882260700963ddf1948e2..53f3b7f22ddc344ad7f124c580ac8ff57c715ccb 100644 (file)
@@ -34,7 +34,7 @@
 - name: copy red hat storage iso content for redhat systems
   shell: cp -r {{ ceph_rhcs_mount_path }}/* {{ ceph_rhcs_repository_path }}
   args:
-    creates: "{{ ceph_rhcs_repository_path }}/README"
+    creates: "{{ ceph_rhcs_repository_path+'/README' if not rolling_update else 'dummy' }}"
 
 - name: unmount red hat storage iso file for redhat systems
   mount: