]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
make sure /etc/fstab is always valid at boot time no matter what
authorBen England <bengland@redhat.com>
Tue, 9 Feb 2016 20:02:55 +0000 (15:02 -0500)
committerBen England <bengland@redhat.com>
Tue, 9 Feb 2016 20:02:55 +0000 (15:02 -0500)
roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_iso_install.yml

index 115204e39f439eaf4ce6de6ebc844b08b3ee5fab..5de900482bba55998b6bcb45da3de976616b0310 100644 (file)
     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
@@ -24,9 +28,9 @@
   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