Hostname module should update ansible_hostname

pull/18777/head
Hagai Kariti 10 years ago committed by Matt Clay
parent 654d2d3f60
commit b46a1ff3e1

@ -509,6 +509,6 @@ def main():
hostname.set_permanent_hostname(name)
changed = True
module.exit_json(changed=changed, name=name)
module.exit_json(changed=changed, name=name, ansible_facts=dict(ansible_hostname=name))
main()

Loading…
Cancel
Save