roll up of fixes for vyos base (#21616)

* adds ssh_keyfile to vyos
* fixes play_context mapping to provider
* adds missing network_os to play_context
* executes close_shell() after module completes
This commit is contained in:
Peter Sprygada 2017-02-18 09:29:17 -05:00 committed by GitHub
commit c875393916
2 changed files with 25 additions and 6 deletions

View file

@ -34,11 +34,13 @@ _DEVICE_CONFIGS = {}
vyos_argument_spec = {
'host': dict(),
'port': dict(type='int'),
'username': dict(fallback=(env_fallback, ['ANSIBLE_NET_USERNAME'])),
'password': dict(fallback=(env_fallback, ['ANSIBLE_NET_PASSWORD']), no_log=True),
'ssh_keyfile': dict(fallback=(env_fallback, ['ANSIBLE_NET_SSH_KEYFILE']), type='path'),
'timeout': dict(type='int', default=10),
'provider': dict(type='dict'),
'timeout': dict(type='int'),
'provider': dict(type='dict', no_log=True),
}
def check_args(module, warnings):