1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_goaccess.git synced 2024-08-16 18:09:23 +02:00

goaccess systemd preperation

This commit is contained in:
L3D 2021-01-08 21:47:04 +01:00
parent d9d4ce15d8
commit d5f15917d0
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,8 @@
---
goaccess__state: present
goaccess_systemd: true
goaccess__logfiles: '/var/log/apache2/access.log'
goaccess__webfiles: '/var/www/html/report/index.html'
# should we do a version check? (recomended)
submodules_versioncheck: false

View file

@ -0,0 +1,11 @@
[Unit]
Description=Goaccess
After=network.target
[Service]
Restart=always
ExecStart=/usr/bin/goaccess {{ goaccess__logfiles }} --log-format=COMBINED -o {{ goaccess__webfiles }} --real-time-html
[Install]
WantedBy=multi-user.target