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"
|
validate: "/usr/sbin/sshd -T -f %s"
|
||||||
notify:
|
notify:
|
||||||
- Restart sshd
|
- 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)"
|
- name: "Remove useless passphrase line (runs after borgmatic role)"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
dest: "/etc/borgmatic/config.yaml"
|
dest: "/etc/borgmatic/config.yaml"
|
||||||
|
@ -38,6 +38,22 @@
|
|||||||
enabled: true
|
enabled: true
|
||||||
state: reloaded
|
state: reloaded
|
||||||
tags: caddy-non-update
|
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
|
- name: Fail2Ban
|
||||||
hosts: privfrontends
|
hosts: privfrontends
|
||||||
tasks:
|
tasks:
|
||||||
|
Loading…
Reference in New Issue
Block a user