diff --git a/privfrontends/playbook.yaml b/privfrontends/playbook.yaml index b5ee454..7d10cfa 100644 --- a/privfrontends/playbook.yaml +++ b/privfrontends/playbook.yaml @@ -53,6 +53,7 @@ mode: preserve owner: caddy group: caddy + mode: 777 tags: caddy-non-update - name: Fail2Ban hosts: privfrontends @@ -73,3 +74,23 @@ ansible.builtin.service: name: fail2ban 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 +