goaccess/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 29 Jul 2024 10:24:20 -0500
changeset 236 55fe664e0a05
parent 131 746d5fdbbc18
permissions -rw-r--r--
Fixed prosody cert installation hook.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
131
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: apt install goaccess
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  apt: name="goaccess"
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
- name: install systemd timer and service
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
  become: yes
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
  template: src="goaccess.{{item}}.j2" dest="/lib/systemd/system/goaccess.{{item}}"
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
  loop:
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
    - "timer"
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
    - "service"
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
  notify: daemon reload
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
- name: ensure timer is started
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  become: yes
746d5fdbbc18 Added periodit goaccess update role
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  systemd: name="goaccess.timer" enabled="yes" state="started"