author | Luke Hoersten <luke@hoersten.org> |
Mon, 19 Jul 2021 21:15:42 -0500 | |
changeset 167 | e3c49bf5fae9 |
parent 131 | 746d5fdbbc18 |
permissions | -rw-r--r-- |
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" |