[rsync-client] Add wireguard interface. Enable backups on sputnik.

certbot_on_virtu
_pollion 2020-04-29 10:53:58 +02:00
parent f4326afd76
commit c103710745
2 changed files with 7 additions and 2 deletions

View File

@ -30,3 +30,7 @@
name: rsync
enabled: true
state: started
- name: TODO
debug:
msg: Make use of the lookup plugin to avoid hardcoding things ?

View File

@ -34,13 +34,14 @@ address = {{ hostvars[inventory_hostname]['ansible_' + adm_iface.stdout].ipv4.ad
path = /var
auth users = backupcrans
secrets file = /etc/rsyncd.secrets
hosts allow = zephir.adm.crans.org 10.231.136.6
hosts allow = zephir.adm.crans.org 10.231.136.6 {% if ansible_hostname == "sputnik" %}172.31.0.1{% endif %}
[slash]
path = /
auth users = backupcrans
secrets file = /etc/rsyncd.secrets
hosts allow = zephir.adm.crans.org 10.231.136.6
hosts allow = zephir.adm.crans.org 10.231.136.6 {% if ansible_hostname == "sputnik" %}172.31.0.1{% endif %}
{# rsync readonly pour le miroir #}
{% if ansible_hostname == "charybde" %}