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
Filtering by tag for Dynamic Inventory Ansible with "azure_rm plugin" #62574
Comments
Files identified in the description: If these files are inaccurate, please update the |
I'm currently facing this issue, I was using a variable in our pipeline to target specific vm using tags and was exporting the tags to AZURE_TAGS env var in the ansible host, but the new azure_rm inventory module provided in ansible 2.8 seems to ignore the old AZURE_TAGS variable. Do you plan to port the modification into the stable-2.8 branch ? I see you are a new contributor, I'm not that experienced, but let me know if you need help. I've been thru the PR process once in the past! Thanks for your contribution!! |
@rpurcelldesj I need someone review the PR and help me merge it into the right place. |
Ok, I've looked at the commit history and I tried to tag one of the "original" contributor to the new code, let's try that and we'll see where we go from there! |
!component =contrib/inventory/azure_rm.py |
Files identified in the description: If these files are incorrect, please update the |
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
For further information, please see: |
SUMMARY
In the legacy Azure inventory script, it supports selecting hosts with specific tag key with environment variables like below.
ansible/contrib/inventory/azure_rm.py
Lines 139 to 141 in 558ce65
But in the new Azure inventory plugin, it no longer supports any more. And this may make users confused when they try to migrate from the script to plugin.
ISSUE TYPE
COMPONENT NAME
azure inventory plugin
ADDITIONAL INFORMATION
Enable selecting hosts with tags set in environment variables.
The text was updated successfully, but these errors were encountered: