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:
parent
d9d4ce15d8
commit
d5f15917d0
2 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
goaccess__state: present
|
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)
|
# should we do a version check? (recomended)
|
||||||
submodules_versioncheck: false
|
submodules_versioncheck: false
|
||||||
|
|
11
templates/goaccess.service.j2
Normal file
11
templates/goaccess.service.j2
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue