goaccess/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 07 Sep 2020 15:06:06 -0500
changeset 139 4efa743f2fa1
parent 131 746d5fdbbc18
permissions -rw-r--r--
Added optional log level change.

---

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