diff options
-rw-r--r-- | roles/goaccess/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
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 |