From 1884985db6fdea92c0783ab8cf8d2eea9908ffad Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Wed, 19 Jun 2024 22:17:57 +0530 Subject: [PATCH] vnstat-metrics should have more perms --- privfrontends/playbook.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 +