diff --git a/journal-remote/tasks/main.yml b/journal-remote/tasks/main.yml index bf64c95c9952988b603fb8136d682ba0bebddec1..3f26c76c7ef9c8f5a5ef7e82ed215d2b98a428db 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