goaccess/tasks/main.yaml
changeset 131 746d5fdbbc18
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/goaccess/tasks/main.yaml	Sun Aug 09 14:20:24 2020 -0500
@@ -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"