diff options
Diffstat (limited to 'roles/configure_journald/tasks/main.yml')
-rw-r--r-- | roles/configure_journald/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/configure_journald/tasks/main.yml b/roles/configure_journald/tasks/main.yml new file mode 100644 index 0000000..6742a9c --- /dev/null +++ b/roles/configure_journald/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- name: log to ramdisk + lineinfile: + path: /etc/systemd/journald.conf + regexp: '^#?Storage=' + line: 'Storage=volatile' + register: journald_conf + +- name: restart systemd-journald + when: journald_conf.changed + systemd: + name: systemd-journald.service + state: restarted |