ansible-roles/evobackup-client/tasks/jail_port.yml
Patrick Marchand de4ba88790
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Dried up the tags for evobackup-client
blocks allow us to assign multiple tags to multiple tasks without
repeating ourselves. This also simplifies other logic like conditional
includes.
2020-06-23 12:07:51 -04:00

18 lines
381 B
YAML

---
- block:
- name: 'get jail port'
command: "bkctld port {{ evolinux_hostname }}"
become: true
register: bkctld_port
delegate_to: "{{ evobackup_client__hosts[0].ip }}"
- name: 'register jail port'
set_fact:
evobackup_ssh_port={{ bkctld_port.stdout }}
when: evobackup_ssh_port = ''
tags:
- evobackup_client
- evobackup_client_ssh_port