From ac3d5903476d79dc467fce8c1137456398df7607 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Fri, 1 May 2020 21:50:54 -0400 Subject: roles/goaccess/main: Add timers --- roles/goaccess/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/goaccess/main.yml b/roles/goaccess/main.yml index a4b06ac..c05a067 100644 --- a/roles/goaccess/main.yml +++ b/roles/goaccess/main.yml @@ -105,3 +105,21 @@ with_items: - /etc/systemd/system/goaccess.service - /etc/systemd/system/goaccess.timer + - /etc/systemd/system/referrer-blacklist.service + - /etc/systemd/system/referrer-blacklist.timer + + - name: Enabling and starting units + systemd: + name: "{{ item }}" + state: started + enabled: yes + daemon_reload: yes + with_items: + - goaccess.timer + - referrer-blacklist.timer + + - name: Running GoAccess + systemd: + name: goaccess + state: started + daemon_reload: yes -- cgit v1.2.3