src.nth.io/

summaryrefslogtreecommitdiff
path: root/goaccess/tasks/main.yaml
blob: 6d65396d49a56ac7d21e3f5f219162ef70ffff0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"