-
Notifications
You must be signed in to change notification settings - Fork 51
Module filtering #204
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
base: main
Are you sure you want to change the base?
Module filtering #204
Conversation
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 26s |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #204 +/- ##
===========================================
+ Coverage 73.00% 83.99% +10.98%
===========================================
Files 16 23 +7
Lines 1015 1818 +803
Branches 182 329 +147
===========================================
+ Hits 741 1527 +786
- Misses 243 244 +1
- Partials 31 47 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 33s |

SUMMARY
I have a use case where a single Terraform configuration manages multiple environments sharing the same modules, but for the Ansible part I would like to have separate inventory files.
I thought about a feature where I can choose which modules I want to fetch the ansible_host and ansible_group resources from, instead of only choosing between root + child modules or just root modules.
So I added both include_modules and exclude_modules directives to the terraform provider inventory plugin.
ISSUE TYPE
ADDITIONAL INFORMATION
This is the basic usage:
or
include_modulesandexclude_modulesare mutually exclusivesearch_child_modules: false, the module filtering directives are ignored