[rsync-client] Add wireguard interface. Enable backups on sputnik.
parent
f4326afd76
commit
c103710745
|
@ -30,3 +30,7 @@
|
|||
name: rsync
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
- name: TODO
|
||||
debug:
|
||||
msg: Make use of the lookup plugin to avoid hardcoding things ?
|
||||
|
|
|
@ -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" %}
|
||||
|
|
Loading…
Reference in New Issue