forked from evolix/ansible-roles
Fix extra space in zzz_evobackup template
Not the best solution, a mix of map, format, join would of been better, but I could not find out how to make it work with multiple attributes.
This commit is contained in:
parent
0f7d9e9f24
commit
71bf970811
|
@ -19,9 +19,9 @@
|
||||||
|
|
||||||
# email adress for notifications
|
# email adress for notifications
|
||||||
MAIL={{ evobackup-client__mail }}
|
MAIL={{ evobackup-client__mail }}
|
||||||
|
{{ evobackup-client__hosts | map
|
||||||
# list of hosts (hostname or IP) and SSH port for Rsync
|
# list of hosts (hostname or IP) and SSH port for Rsync
|
||||||
SERVERS="{% for host in evobackup-client__hosts %}{{ host.name }}:{{ host.port }} {% endfor %}"
|
SERVERS="{% for host in evobackup-client__hosts %}{{ host.name }}:{{ host.port }}{% if loop.index != loop.length %} {% endif %}{% endfor %}"
|
||||||
|
|
||||||
# timeout (in seconds) for SSH connections
|
# timeout (in seconds) for SSH connections
|
||||||
SSH_CONNECT_TIMEOUT=30
|
SSH_CONNECT_TIMEOUT=30
|
||||||
|
|
Loading…
Reference in a new issue