src: "{{ ceph_stable_rh_storage_iso_path }}"
dest: "{{ ceph_stable_rh_storage_iso_path }}"
+# assumption: ceph_stable_rh_storage_mount_path does not specify directory
+
- name: mount red hat storage iso file
mount:
name: "{{ ceph_stable_rh_storage_mount_path }}"
src: "{{ ceph_stable_rh_storage_iso_path }}"
fstype: iso9660
+ opts: ro,loop,noauto
+ passno: 2
state: mounted
- name: copy red hat storage iso content
args:
creates: "{{ ceph_stable_rh_storage_repository_path }}/README"
-- name: mount red hat storage iso file
+- name: unmount red hat storage iso file
mount:
name: "{{ ceph_stable_rh_storage_mount_path }}"
src: "{{ ceph_stable_rh_storage_iso_path }}"
fstype: iso9660
- state: unmounted
+ state: absent