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)?
When I create a new instance, providing the
name: "A"
andhostname: "B"
and then use the dynamic inventory script, I get andinventory_hostname_short: "A"
andinventory_hostname: "A"
. Wouldn't it make more sense to provideinventory_hostname_short: "A"
andinventory_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)?