summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-05-01 21:50:54 -0400
committerThedro Neely <thedroneely@gmail.com>2020-05-01 21:50:54 -0400
commitac3d5903476d79dc467fce8c1137456398df7607 (patch)
tree136ccda00e6d2081f6cbf6f5aae1f60d608c6ac5 /roles
parentf812ed43f64e7bad91e2ac09de6418580222ec8c (diff)
downloadplaybooks-ac3d5903476d79dc467fce8c1137456398df7607.tar.gz
playbooks-ac3d5903476d79dc467fce8c1137456398df7607.tar.bz2
playbooks-ac3d5903476d79dc467fce8c1137456398df7607.zip
roles/goaccess/main: Add timers
Diffstat (limited to 'roles')
-rw-r--r--roles/goaccess/main.yml18
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