From cb72ca3692ad8d0f7a220f284bb61c36e248fc17 Mon Sep 17 00:00:00 2001
From: Hinrikus Wolf <hinrikus@fsmpi.rwth-aachen.de>
Date: Wed, 14 Mar 2018 14:59:18 +0100
Subject: [PATCH] disable write barrieres for the remote journal

---
 journal-remote/tasks/main.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/journal-remote/tasks/main.yml b/journal-remote/tasks/main.yml
index bf64c95..3f26c76 100644
--- a/journal-remote/tasks/main.yml
+++ b/journal-remote/tasks/main.yml
@@ -1,3 +1,16 @@
+- name: ensure there are no write barriers on the partition for the remote journals 
+  mount:
+    fstype: ext4
+    opts: defaults,nobarrier
+    state: mounted
+    path: /
+    src: "UUID={{ item.uuid }}"
+    passno: 1
+  with_items: "{{ ansible_mounts }}"
+  when:  item.mount ==  "/"
+  tags:
+    - journal-remote
+
 - name: Install systemd-journal-remote
   apt:
     name: systemd-journal-remote
-- 
GitLab