FreeKB - Ansible inventory_hostname_short magic variable
www.freekb.net/Article?id=242820.07.2021 · ansible_limit will return the hostname passed to the -l or --limit command line option. inventory_hostname will return the hostname of a manage node as listed in your default hosts file or your own inventory file. inventory_hostname_short will return the short hostname of a manage node as listed in your default hosts file or your own inventory ...