goaccess/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 24 Jul 2021 10:29:21 -0500
changeset 169 f4f9b52ede46
parent 131 746d5fdbbc18
permissions -rw-r--r--
Fixed dendrite restart handler bug.
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"