goaccess/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 25 Oct 2021 15:57:24 -0500
changeset 176 2d705e63f6cb
parent 131 746d5fdbbc18
permissions -rw-r--r--
Version updates.
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"