Given the following playbook, I would like to assign specific hostnames to every member of the hostgroup. Therefore, the name
parameter needs to change for every instance in the hostgroup.
- name: friendly hostname
hostname: name=clusterXmember.1
How do I access the machine names from the inventory file? Specifically the current machine's ip, or the hostname?
As the playbook runs, I'd like the name
param to be pre-filled with data from inventory. (generated from terraform)