mirror of https://github.com/ceph/ceph-ansible.git
ceph-common: explicitly create the directory portion of the iso path
This will help if the path to the iso exists in the originating server but not in the remote paths. This issue is not seen if using /tmp/file.iso but does show up when using nested paths. Signed-off-by: Alfredo Deza <adeza@redhat.com> Resolves: rhbz#1355762pull/881/head
parent
ede7a2afd1
commit
0656dfc5df
|
@ -6,7 +6,13 @@
|
|||
with_items:
|
||||
- "{{ ceph_stable_rh_storage_mount_path }}"
|
||||
- "{{ ceph_stable_rh_storage_repository_path }}"
|
||||
- "{{ ceph_stable_rh_storage_iso_path }}"
|
||||
|
||||
- name: ensure destination iso directory exists
|
||||
file:
|
||||
path: "{{ ceph_stable_rh_storage_iso_path | dirname }}"
|
||||
state: directory
|
||||
recurse: yes
|
||||
when: "'{{ ceph_stable_rh_storage_iso_path | dirname }}' != '/'"
|
||||
|
||||
- name: fetch the red hat storage iso from the ansible server
|
||||
copy:
|
||||
|
|
Loading…
Reference in New Issue