goaccess/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 16 Sep 2023 01:39:37 -0500
changeset 223 de03976c2df1
parent 131 746d5fdbbc18
permissions -rw-r--r--
Unifi-7.5 release doesnt seem to support arm so I held the version at 7.4.

---

- 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"