ansible-collection-vultr icon indicating copy to clipboard operation
ansible-collection-vultr copied to clipboard

API name=A, hostname=B, but inventory provides only hostname=A and hostname_short=A

Open RobertKosten opened this issue 3 years ago • 0 comments

When I create a new instance, providing the name: "A" and hostname: "B" and then use the dynamic inventory script, I get and inventory_hostname_short: "A" and inventory_hostname: "A". Wouldn't it make more sense to provide inventory_hostname_short: "A" and inventory_hostname: "B", potentially with a config option, so it doesn't break previous playbooks? Or at least some other way to access B (it's not in the hostvars)?

RobertKosten avatar Aug 25 '21 16:08 RobertKosten