ansible-roles/evobackup-client/tasks/verify_ssh.yml
Patrick Marchand 0f7d9e9f24 Allow heterogeneous ports
This makes it a bit more annoying to define default hosts for
multiple machines, but it's not that bad and it's better than not
being able to define heterogeous ports.
2019-09-03 10:29:05 -04:00

12 lines
316 B
YAML

---
- name: Verify evolix backup servers
known_hosts:
path: /root/.ssh/known_hosts
name: "[{{ item.name }}]:{{ item.port }}"
key: "[{{ item.name }}]:{{ item.port }} {{ item.fingerprint }}"
with_list: "{{ evobackup-client__hosts }}"
tags:
- evobackup-client
- evobackup-client-backup-hosts