mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2025-10-16 14:00:13 +00:00
Added goaccess
This commit is contained in:
@@ -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
|
||||
|
@@ -26,6 +26,7 @@
|
||||
name: /root/.deadtrigger
|
||||
state: touch
|
||||
|
||||
# Run deadswitch daily at 1am
|
||||
- name: Install deadlock cronjob
|
||||
cron:
|
||||
name: Run deadswitch
|
||||
|
@@ -25,6 +25,7 @@
|
||||
- tor
|
||||
- ufw
|
||||
- fail2ban
|
||||
- goaccess
|
||||
- htop
|
||||
- zsh # :D
|
||||
- python3-certbot-nginx
|
||||
|
@@ -30,4 +30,4 @@
|
||||
systemd:
|
||||
name: fail2ban
|
||||
enabled: yes
|
||||
state: restarted
|
||||
state: started
|
@@ -10,4 +10,4 @@
|
||||
systemd:
|
||||
name: gitea
|
||||
enabled: yes
|
||||
state: restarted
|
||||
state: started
|
5
tasks/goaccess.yml
Normal file
5
tasks/goaccess.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Copy goaccess config
|
||||
template:
|
||||
src: templates/goaccess/goaccess.conf
|
||||
dest: /etc/goaccess/goaccess.conf
|
@@ -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
|
||||
|
@@ -27,4 +27,4 @@
|
||||
systemd:
|
||||
name: tor
|
||||
enabled: yes
|
||||
state: restarted
|
||||
state: started
|
Reference in New Issue
Block a user