-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add support for passing of command line arguments (in a manner consistent with Ansible core modules) #76
Comments
Do you know if this feature was ever introduced - or do you know a good work-around? |
I think that is done. Let me know if it doesn't work though. |
Looks like I have the same error:
Here's the playbook:
Am I missing something? Thanks for your time! |
Hmmmm, I have to look into the The |
This fixes it...not sure why or when this changed though: $ git diff ./napalm.py
diff --git a/napalm_ansible/plugins/action/napalm.py b/napalm_ansible/plugins/action/napalm.py
index ac37522..bbd70e0 100644
--- a/napalm_ansible/plugins/action/napalm.py
+++ b/napalm_ansible/plugins/action/napalm.py
@@ -13,7 +13,7 @@ class ActionModule(_ActionModule):
provider = self._task.args.get('provider', {})
provider['hostname'] = provider.get('hostname', provider.get('host', pc.remote_addr))
- provider['username'] = provider.get('username', pc.connection_user)
+ provider['username'] = provider.get('username', pc.remote_user)
provider['password'] = provider.get('password', pc.password)
# Timeout can't be passed via command-line as Ansible defaults to a 10 second timeout
provider['timeout'] = provider.get('timeout', 60) |
Also should support if using a provider.
The text was updated successfully, but these errors were encountered: