ansible-roles/evobackup-client/tasks/verify_ssh.yml
Patrick Marchand 8caca4c711 Split jail port retrival tasks into their own file
This makes it easier to manage the dependency of the other tasks
on this variable. I removed the tags on those tasks so they would not
be excluded.
2020-06-23 11:07:55 -04:00

15 lines
376 B
YAML

---
- include: "jail_port.yml"
when: evobackup_ssh_port = ''
- 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