ngine-io / ansible-collection-vultr

Vultr Ansible Collections
https://galaxy.ansible.com/ngine_io/vultr
GNU General Public License v3.0
16 stars 11 forks source link

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

Open RobertKosten opened 3 years ago

RobertKosten commented 3 years ago

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)?