goaccess/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 30 Jan 2023 14:28:02 -0600
changeset 207 e16c94c81b53
parent 131 746d5fdbbc18
permissions -rw-r--r--
Updated dendrite logs to error for less verbose.

---

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