Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow dynamically specifying a resource group name #11

Open
christophetd opened this issue Jun 5, 2020 · 3 comments
Open

Allow dynamically specifying a resource group name #11

christophetd opened this issue Jun 5, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@christophetd
Copy link
Owner

It looks like AZURE_RESOURCE_GROUPS doesn't actually restrict the set of hosts considered by the AzureRM inventory plugin

@christophetd christophetd added the bug Something isn't working label Jun 5, 2020
@christophetd christophetd self-assigned this Jun 5, 2020
@christophetd
Copy link
Owner Author

This is actually not supported by the azure dynamic inventory plugin for Ansible: ansible/ansible#69949

@christophetd christophetd added enhancement New feature or request and removed bug Something isn't working labels Jun 8, 2020
@christophetd christophetd changed the title Azure resource group selection via AZURE_RESOURCE_GROUPS environment variable not working Allow dynamically specifying a resource group name Jun 8, 2020
@christophetd
Copy link
Owner Author

Options:

  • Use the old azurerm_inventory.py script provided by Ansible, which is deprecated but supports runtime configuration via an environment variable
  • Set the name of the resource group in domain.yml and read it from both Terraform and Ansible
  • Keep as-is and duplicate the resource group name
  • Include all resource groups (["*"]) in the configuration of the current dynamic inventory, which might end up hitting unwanted machines

@christophetd
Copy link
Owner Author

discussion moved to ansible-collections/azure#152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant