Patrick Marchand
de4ba88790
blocks allow us to assign multiple tags to multiple tasks without repeating ourselves. This also simplifies other logic like conditional includes.
18 lines
381 B
YAML
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
|