From cb3abd557431cc04aef5de1b302bcde25cd81c81 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 25 Mar 2017 14:33:23 +0100 Subject: added reload and restart handlers --- roles/configure_journald/handlers/main.yml | 5 +++++ roles/configure_journald/tasks/main.yml | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 roles/configure_journald/handlers/main.yml (limited to 'roles/configure_journald') 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 -- cgit v1.2.3-54-g00ecf