Hello,
Currently I am utilizing
alias_pattern: "{{ config.name | lower }}"
in my extra vars for my VMware inventories. I’d like to do the same with my Azure inventory but can’t seem to find any documentation on it. I’ve tried
`
alias_pattern: “{{ name | lower }}”
`
and
alias_pattern: "{{ computer_name | lower }}"
I am seeing both name and computer_name in the variables for the hosts.
ansible_host: 1.1.1.1 computer_name: Ansible id: >- /subscriptions/xxxxxxxxxxxxxxxxxx/resourceGroups/ANSIBLE/providers/Microsoft.Compute/virtualMachines/Ansible image: offer: UbuntuServer publisher: Canonical sku: 18.04-LTS version: latest location: eastus mac_address: 00-00-00-00-00-00 name: Ansible
What am I missing? Is it because Azure uses a plugin and not an inventory script? Is there a way to convert the AWX inventory host to lower?
Thanks
Darrin