vnstat-metrics should have more perms
This commit is contained in:
parent
3bf9b57ca7
commit
1884985db6
@ -53,6 +53,7 @@
|
|||||||
mode: preserve
|
mode: preserve
|
||||||
owner: caddy
|
owner: caddy
|
||||||
group: caddy
|
group: caddy
|
||||||
|
mode: 777
|
||||||
tags: caddy-non-update
|
tags: caddy-non-update
|
||||||
- name: Fail2Ban
|
- name: Fail2Ban
|
||||||
hosts: privfrontends
|
hosts: privfrontends
|
||||||
@ -73,3 +74,23 @@
|
|||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: fail2ban
|
name: fail2ban
|
||||||
state: restarted
|
state: restarted
|
||||||
|
- name: Logs stuff
|
||||||
|
hosts: privfrontends
|
||||||
|
tasks:
|
||||||
|
- name: Create www directory if doesn't exist already
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /var/lib/caddy/www
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
owner: caddy
|
||||||
|
group: caddy
|
||||||
|
- name: Copy VNStat CGI script
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: ./configs/vnstat-metrics.cgi
|
||||||
|
dest: /var/lib/caddy/www/vnstat-metrics.cgi
|
||||||
|
mode: preserve
|
||||||
|
owner: caddy
|
||||||
|
group: caddy
|
||||||
|
- name: Copy Systemd service for goaccess on Caddy logfiles
|
||||||
|
- name: Copy Systemd service file for HTTP Server
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user