src.nth.io/

summaryrefslogtreecommitdiff
path: root/goaccess/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-08-09 14:20:24 -0500
committerLuke Hoersten <[email protected]>2020-08-09 14:20:24 -0500
commitf689e65a72ae9693c0a17987c8e32d724bb9fb6c (patch)
tree840d368a9d2dd56ed9935ed66e2b5a2b707cf520 /goaccess/tasks
parentb46cf2027341c5faf34b945952eaaa1a578b8910 (diff)
Added periodit goaccess update role
Diffstat (limited to 'goaccess/tasks')
-rw-r--r--goaccess/tasks/main.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/goaccess/tasks/main.yaml b/goaccess/tasks/main.yaml
new file mode 100644
index 0000000..6d65396
--- /dev/null
+++ b/goaccess/tasks/main.yaml
@@ -0,0 +1,17 @@
+---
+
+- name: apt install goaccess
+ become: yes
+ apt: name="goaccess"
+
+- name: install systemd timer and service
+ become: yes
+ template: src="goaccess.{{item}}.j2" dest="/lib/systemd/system/goaccess.{{item}}"
+ loop:
+ - "timer"
+ - "service"
+ notify: daemon reload
+
+- name: ensure timer is started
+ become: yes
+ systemd: name="goaccess.timer" enabled="yes" state="started"