From f689e65a72ae9693c0a17987c8e32d724bb9fb6c Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sun, 9 Aug 2020 14:20:24 -0500 Subject: Added periodit goaccess update role --- goaccess/tasks/main.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 goaccess/tasks/main.yaml (limited to 'goaccess/tasks') 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" -- cgit v1.2.3