summaryrefslogtreecommitdiff
path: root/roles/configure_journald
diff options
context:
space:
mode:
Diffstat (limited to 'roles/configure_journald')
-rw-r--r--roles/configure_journald/handlers/main.yml5
-rw-r--r--roles/configure_journald/tasks/main.yml8
2 files changed, 6 insertions, 7 deletions
diff --git a/roles/configure_journald/handlers/main.yml b/roles/configure_journald/handlers/main.yml
new file mode 100644
index 0000000..37a6c72
--- /dev/null
+++ b/roles/configure_journald/handlers/main.yml
@@ -0,0 +1,5 @@
+---
+- name: restart systemd-journald
+ systemd:
+ name: systemd-journald.service
+ state: restarted
diff --git a/roles/configure_journald/tasks/main.yml b/roles/configure_journald/tasks/main.yml
index 6742a9c..a9976d6 100644
--- a/roles/configure_journald/tasks/main.yml
+++ b/roles/configure_journald/tasks/main.yml
@@ -4,10 +4,4 @@
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
+ notify: restart systemd-journald