Open christophetd opened 4 years ago
This is actually not supported by the azure dynamic inventory plugin for Ansible: https://github.com/ansible/ansible/issues/69949
Options:
azurerm_inventory.py
script provided by Ansible, which is deprecated but supports runtime configuration via an environment variabledomain.yml
and read it from both Terraform and Ansible["*"]
) in the configuration of the current dynamic inventory, which might end up hitting unwanted machinesdiscussion moved to https://github.com/ansible-collections/azure/issues/152
It looks like AZURE_RESOURCE_GROUPS doesn't actually restrict the set of hosts considered by the AzureRM inventory plugin