]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
cephadm-adopt: fix orch host add with FQDN
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 26 Aug 2021 16:06:11 +0000 (12:06 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 26 Aug 2021 19:50:32 +0000 (15:50 -0400)
commit2630f8d47a790d3b0c02da6e8fcbb01649e354fd
tree5d5e31ca01ba8584879ccd3638b8caf24fb9b0c0
parent5bb7240f878ff9b369ea028839d26fd46342ff77
cephadm-adopt: fix orch host add with FQDN

When a node is configured with FQDN as the hostname value then the
`ceph orch host add` command will fail because the `ansible_hostname` used
by that command contains the short hostname which won't match the current
hostname (FQDN)
Instead we can use the ansible_nodename fact.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1997083
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/cephadm-adopt.yml