tripleo-common/releasenotes/notes/use-hostnames-in-inventory-6d1a3572baebf509.yaml
James Slagle 5822ccc620 Use hostnames in inventory
This patch updates the inventory code to produce an inventory that uses
hostnames as the host alias. Since the hostname may not always be
resolvable, ansible_host is added as a hostvar and set to the host's IP
address.

Using hostnames produces a much more user friendly result in the ansible
output showing task result and play recap.

The anti-pattern of creating one group per host is also removed in favor
of just adding additional hosts under the role named groups. E.g., the
"Controller" group will now contain 3 hosts when deploying 3 controllers
instead of having 3 child groups, where each child group only had 1
host.

hostvars are again used to set specific values on each host in the role
named group.

Change-Id: If834e5e60f79a7418cbc1441d2aaf85507ac7bd2
Closes-Bug: #1752057
2018-04-09 15:46:05 -04:00

7 lines
327 B
YAML

---
other:
- The inventory code is updated to use hostnames as the host alias. Since the
hostname may not always be resolvable, ansible_host is added as a hostvar
and set to the host's IP address. Using hostnames produces a much more user
friendly result in the ansible output showing task result and play recap.