|
|
@ -53,6 +53,20 @@ options:
|
|
|
|
- if false, the ssh host key of the device is not checked
|
|
|
|
- if false, the ssh host key of the device is not checked
|
|
|
|
default: true
|
|
|
|
default: true
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
|
|
|
|
look_for_keys:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- if true, enables looking in the usual locations for ssh keys (e.g. ~/.ssh/id_*)
|
|
|
|
|
|
|
|
- if false, disables looking for ssh keys
|
|
|
|
|
|
|
|
default: true
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
version_added: "2.3"
|
|
|
|
|
|
|
|
allow_agent:
|
|
|
|
|
|
|
|
description:
|
|
|
|
|
|
|
|
- if true, enables querying SSH agent (if found) for keys
|
|
|
|
|
|
|
|
- if false, disables querying the SSH agent for ssh keys
|
|
|
|
|
|
|
|
default: true
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
version_added: "2.3"
|
|
|
|
username:
|
|
|
|
username:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- the username to authenticate with
|
|
|
|
- the username to authenticate with
|
|
|
@ -165,6 +179,8 @@ def main():
|
|
|
|
host=dict(type='str', required=True),
|
|
|
|
host=dict(type='str', required=True),
|
|
|
|
port=dict(type='int', default=830),
|
|
|
|
port=dict(type='int', default=830),
|
|
|
|
hostkey_verify=dict(type='bool', default=True),
|
|
|
|
hostkey_verify=dict(type='bool', default=True),
|
|
|
|
|
|
|
|
allow_agent=dict(type='bool', default=True),
|
|
|
|
|
|
|
|
look_for_keys=dict(type='bool', default=True),
|
|
|
|
username=dict(type='str', required=True, no_log=True),
|
|
|
|
username=dict(type='str', required=True, no_log=True),
|
|
|
|
password=dict(type='str', required=True, no_log=True),
|
|
|
|
password=dict(type='str', required=True, no_log=True),
|
|
|
|
xml=dict(type='str', required=True),
|
|
|
|
xml=dict(type='str', required=True),
|
|
|
@ -189,6 +205,8 @@ def main():
|
|
|
|
host=module.params['host'],
|
|
|
|
host=module.params['host'],
|
|
|
|
port=module.params['port'],
|
|
|
|
port=module.params['port'],
|
|
|
|
hostkey_verify=module.params['hostkey_verify'],
|
|
|
|
hostkey_verify=module.params['hostkey_verify'],
|
|
|
|
|
|
|
|
allow_agent=module.params['allow_agent'],
|
|
|
|
|
|
|
|
look_for_keys=module.params['look_for_keys'],
|
|
|
|
username=module.params['username'],
|
|
|
|
username=module.params['username'],
|
|
|
|
password=module.params['password'],
|
|
|
|
password=module.params['password'],
|
|
|
|
)
|
|
|
|
)
|
|
|
|