diff options
Diffstat (limited to 'playbooks.d/webserver-nginx/playbook.bash')
-rw-r--r-- | playbooks.d/webserver-nginx/playbook.bash | 8 |
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")" \ |