summaryrefslogtreecommitdiff
path: root/roles/configure_journald
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-17 19:32:27 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-17 19:32:27 +0100
commitaea89a9f4dc3548d0295b0fd513c5c9b08207ffa (patch)
treef0e26ed720007980be7a2e61e3368c4c182f6fbe /roles/configure_journald
parentf4ee05f46e2cbe1865ad42dd765e271439aced42 (diff)
updated setup_fastd.yml
added features: - configure systemd-journald - install haveged - install ntp
Diffstat (limited to 'roles/configure_journald')
-rw-r--r--roles/configure_journald/tasks/main.yml13
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