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

Enhancement Request: Support for multiple ansible inventories #13573

Open
vmutti opened this issue Jan 12, 2025 · 0 comments
Open

Enhancement Request: Support for multiple ansible inventories #13573

vmutti opened this issue Jan 12, 2025 · 0 comments

Comments

@vmutti
Copy link

vmutti commented Jan 12, 2025

Is your feature request related to a problem? Please describe.
I need to use multiple inventory directories in my ansible configuration. One with global configurations that apply across environments, and another with configurations specific to the environment I'm currently working in. Ansible supports this, but vagrant only allows me to pass one inventory_path.

Describe the solution you'd like
I'd like to add ansible.inventory_paths, which will merge with ansible.inventory_path for compatibility. Then when the ansible command is constructed, each path would be added.

Describe alternatives you've considered
Alternatively, there could be an option that specifies that the inventory is static but not specified in the command so that the value set in the ansible config file will be used.

Additional context
ansible docs
config definition to edit
logic to edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant