goaccess/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Tue, 16 Jan 2024 00:04:53 -0600
changeset 224 25e44d8440d4
parent 131 746d5fdbbc18
permissions -rw-r--r--
Version updates.

---

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