Added goaccess

This commit is contained in:
2022-08-02 13:32:19 -05:00
parent b03d6cbd0a
commit d7f460685b
10 changed files with 732 additions and 5 deletions

View File

@@ -15,6 +15,7 @@
dest: /usr/local/bin/updateBlog
mode: u+rwx
# Rebuild blog every hour
- name: Setup blog cron job
cron:
name: Build blog every hour

View File

@@ -26,6 +26,7 @@
name: /root/.deadtrigger
state: touch
# Run deadswitch daily at 1am
- name: Install deadlock cronjob
cron:
name: Run deadswitch

View File

@@ -25,6 +25,7 @@
- tor
- ufw
- fail2ban
- goaccess
- htop
- zsh # :D
- python3-certbot-nginx

View File

@@ -30,4 +30,4 @@
systemd:
name: fail2ban
enabled: yes
state: restarted
state: started

View File

@@ -10,4 +10,4 @@
systemd:
name: gitea
enabled: yes
state: restarted
state: started

5
tasks/goaccess.yml Normal file
View File

@@ -0,0 +1,5 @@
---
- name: Copy goaccess config
template:
src: templates/goaccess/goaccess.conf
dest: /etc/goaccess/goaccess.conf

View File

@@ -36,7 +36,7 @@
dest: /etc/nginx/conf.d/tor-{{ domain }}.conf
force: no
- name: Reload nginx to activate specified site
- name: Reload Nginx to install LetsEncrypt
service:
name: nginx
state: restarted
@@ -45,7 +45,7 @@
- name: Setup certbot
shell: "certbot --nginx --non-interactive --agree-tos -m {{ contact_email }} -d {{ domain }} -d git.{{ domain }}"
- name: Reload Nginx
- name: Reload Nginx with LetsEncrypt installed
systemd:
name: nginx
enabled: yes

View File

@@ -27,4 +27,4 @@
systemd:
name: tor
enabled: yes
state: restarted
state: started