Allow for specifying name instead of host as per the documentation at http://docs.ansible.com/known_hosts_module.html

reviewable/pr18780/r1
Sterling Windmill 10 years ago
parent 70ea058563
commit 7c675705f3

@ -82,7 +82,7 @@ def enforce_state(module, params):
Add or remove key.
"""
host = params["host"]
host = params["name"]
key = params.get("key",None)
port = params.get("port",None)
#expand the path parameter; otherwise module.add_path_info

Loading…
Cancel
Save