From: Loic Dachary Date: Thu, 9 Jul 2015 14:48:11 +0000 (+0200) Subject: implement modify_fstab to persist mount options in /etc/fstab X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F72%2Fhead;p=ceph-cm-ansible.git implement modify_fstab to persist mount options in /etc/fstab http://tracker.ceph.com/issues/12250 Fixes: #12250 Signed-off-by: Loic Dachary --- diff --git a/roles/testnode/defaults/main.yml b/roles/testnode/defaults/main.yml index 808a3d7d..b6218902 100644 --- a/roles/testnode/defaults/main.yml +++ b/roles/testnode/defaults/main.yml @@ -22,3 +22,8 @@ xfstests_user: "fsgqa" # some distros need to start rpcbind before # trying to use nfs while others don't. start_rpcbind: true + +# set to true if /etc/fstab must be modified to persist things like +# mount options, which is useful for long lived bare metal machines, +# less useful for virtual machines that are re-imaged before each job +modify_fstab: true diff --git a/roles/testnode/tasks/apt_systems.yml b/roles/testnode/tasks/apt_systems.yml index fb8235b1..b32bbcec 100644 --- a/roles/testnode/tasks/apt_systems.yml +++ b/roles/testnode/tasks/apt_systems.yml @@ -32,6 +32,7 @@ args: creates: /etc/fstab.bak register: add_user_xattr + when: modify_fstab == true - name: Enable xattr for this boot. command: