By maping the inventory name to the actual ansible_host the inventory file can act as a template, and the node names can use ansible_host to set the actual host.
The changes affect only ipaserver and ipaclient roles, as ipareplica uses ipaclient for the host setup, before promoting host to replica.
Deployment of any node fails when hosts defined in groups do not represent the hostname, for example, when using
ansible_host
.For example, the following inventory YAML file would fail deployment:
By maping the inventory name to the actual
ansible_host
the inventory file can act as a template, and the node names can useansible_host
to set the actual host.The changes affect only
ipaserver
andipaclient
roles, asipareplica
usesipaclient
for the host setup, before promoting host to replica.