]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Enabling auto-fsck fix to prevent boot hangup on ubuntu.
authorAndrew Schoen <aschoen@redhat.com>
Mon, 13 Apr 2015 19:08:17 +0000 (14:08 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 16 Apr 2015 21:31:32 +0000 (16:31 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/testnode/tasks/setup-ubuntu.yml

index e6abc5a16d0e9448f50b03a70eebe91a71a3adda..6a6d6683c6fb6472ee6e04113dcfb7b3141e240d 100644 (file)
     owner: root
     group: root
     mode: 0644
+
+- name: Enabling auto-fsck fix to prevent boot hangup.
+  lineinfile:
+    dest: /etc/default/rcS
+    line: "FSCKFIX=yes"
+    regexp: "FSCKFIX=no"
+    # backrefs makes it so that if the regexp
+    # isn't found the file is left unchanged
+    backrefs: yes
+    state: present