From b0ee3616a5a4821b424af4f7c908b9336c96d399 Mon Sep 17 00:00:00 2001 From: Ben England Date: Tue, 9 Feb 2016 15:02:55 -0500 Subject: [PATCH] make sure /etc/fstab is always valid at boot time no matter what --- .../prerequisite_rh_storage_iso_install.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_iso_install.yml b/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_iso_install.yml index 115204e39..5de900482 100644 --- a/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_iso_install.yml +++ b/roles/ceph-common/tasks/pre_requisites/prerequisite_rh_storage_iso_install.yml @@ -12,11 +12,15 @@ 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 -- 2.39.5