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

Environment Variable for credentials #38

Open
coltonhughes opened this issue Mar 26, 2021 · 2 comments
Open

Environment Variable for credentials #38

coltonhughes opened this issue Mar 26, 2021 · 2 comments

Comments

@coltonhughes
Copy link

I was wondering if there are plans to implement environment variable support for username/password within the nimble modules?
A good example is all of the VMWare modules which take the username, password, and hostname via Ansible fields, but also can accept VCENTER_USERNAME, VCENTER_PASSWORD, VCENTER_HOSTNAME respectively. This does make it easier to pass credentials from tools like Ansible Tower and AWX more securely in my opinion.

@datamattsson
Copy link
Collaborator

Thanks @coltonhughes! This is an excellent RFE in my opinion as it will reduce clutter in the tasks. I'll bring this to the team for consideration. In the meantime you can use the lookup plugin for the task credentials. {{ lookup('env', 'NIMBLE_PASS') }} if you're blocked waiting for this functionality.

@coltonhughes
Copy link
Author

No problem. Always trying to help throw (potentially) helpful ideas around to make modules the most consistent and user friendly. Luckily I am not blocked currently but that is an excellent solution in case somebody else stumbles across this as well. Thanks for the quick response and feel free to close, or mark this ticket however you need to.

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

No branches or pull requests

2 participants