Move VNStat to privfrontends playbook

This commit is contained in:
Arya 2024-06-19 21:41:35 +05:30
parent 128d384dc6
commit 3bf9b57ca7
Signed by: arya
GPG Key ID: 842D12BDA50DF120
3 changed files with 16 additions and 14 deletions

View File

@ -203,20 +203,6 @@
validate: "/usr/sbin/sshd -T -f %s"
notify:
- Restart sshd
- 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: "Instal VNStat Metrics CGI Script to WWW"
ansible.builtin.copy:
src: ./files/vnstat-metrics.cgi
dest: /var/lib/caddy/www/vnstat-metrics.cgi
mode: preserve
owner: caddy
group: caddy
- name: "Remove useless passphrase line (runs after borgmatic role)"
ansible.builtin.lineinfile:
dest: "/etc/borgmatic/config.yaml"

View File

@ -38,6 +38,22 @@
enabled: true
state: reloaded
tags: caddy-non-update
- 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
tags: caddy-non-update
- name: "Instal VNStat Metrics CGI Script to WWW"
ansible.builtin.copy:
src: ./templates/vnstat-metrics.cgi
dest: /var/lib/caddy/www/vnstat-metrics.cgi
mode: preserve
owner: caddy
group: caddy
tags: caddy-non-update
- name: Fail2Ban
hosts: privfrontends
tasks: