diff options
author | Thedro Neely <thedroneely@gmail.com> | 2020-05-01 21:50:54 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2020-05-01 21:50:54 -0400 |
commit | ac3d5903476d79dc467fce8c1137456398df7607 (patch) | |
tree | 136ccda00e6d2081f6cbf6f5aae1f60d608c6ac5 | |
parent | f812ed43f64e7bad91e2ac09de6418580222ec8c (diff) | |
download | playbooks-ac3d5903476d79dc467fce8c1137456398df7607.tar.gz playbooks-ac3d5903476d79dc467fce8c1137456398df7607.tar.bz2 playbooks-ac3d5903476d79dc467fce8c1137456398df7607.zip |
roles/goaccess/main: Add timers
-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 |