Move VNStat to privfrontends playbook
This commit is contained in:
parent
128d384dc6
commit
3bf9b57ca7
@ -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"
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user