summaryrefslogtreecommitdiff
path: root/playbooks.d/webserver-nginx/playbook.bash
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-05-09 11:41:35 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-05-09 11:41:35 +0200
commitfb3d7ddfab881251c0d6d9470aa13267521d81d9 (patch)
treea0d4f80583882eec630568cda0b97dbc2964f236 /playbooks.d/webserver-nginx/playbook.bash
parent430e75156d7789e889dafe44e90b28ddff3516a1 (diff)
Add goaccess
Diffstat (limited to 'playbooks.d/webserver-nginx/playbook.bash')
-rw-r--r--playbooks.d/webserver-nginx/playbook.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks.d/webserver-nginx/playbook.bash b/playbooks.d/webserver-nginx/playbook.bash
index 03e4271..20dcd14 100644
--- a/playbooks.d/webserver-nginx/playbook.bash
+++ b/playbooks.d/webserver-nginx/playbook.bash
@@ -5,6 +5,7 @@ playbook_add()
info "webserver/add" "Installing packages"
pkg install \
certbot \
+ goaccess \
logrotate \
nginx
@@ -54,6 +55,13 @@ playbook_sync()
group="$(config "nginx.group")" \
> "$(config "fs.etcdir")/logrotate.d/nginx"
+ notice "$BASHTARD_PLAYBOOK" "Configure goaccess service"
+ mkdir -pv /etc/systemd/system
+ file_template "goaccess.service" \
+ user="$(config "nginx.user")" \
+ group="$(config "nginx.group")" \
+ > "/etc/systemd/system/goaccess@.service"
+
notice "webserver/sync" "Updating nginx.conf"
file_template "nginx.conf" \
etc="$(config "fs.etcdir")" \