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

This commit is contained in:
Sterling Windmill 2015-05-04 15:57:40 -04:00 committed by Matt Clay
parent fdac186d85
commit 0eaee21d81

View file

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