undercloud_ssh_hostname should include FQDN suffix

Change-Id: I00e6af739caaf458674a6f1ca134b14f7b683ed4
This commit is contained in:
Eduardo Olivares 2021-03-22 15:31:24 +01:00
parent 6526602c36
commit ce7e827c60
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
- name: "pick undercloud SSH shotname from inventory" - name: "pick undercloud SSH shotname from inventory"
set_fact: set_fact:
undercloud_ssh_hostname: >- undercloud_ssh_hostname: >-
{{ hostvars[undercloud_hostname].ansible_hostname | {{ hostvars[undercloud_hostname].ansible_fqdn |
default(undercloud_hostname) }} default(undercloud_hostname) }}
when: when:
- (undercloud_ssh_hostname | length) == 0 - (undercloud_ssh_hostname | length) == 0