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

pull/18777/head
Sterling Windmill 10 years ago committed by Matt Clay
parent fdac186d85
commit 0eaee21d81

@ -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