Hostname module should update ansible_hostname

This commit is contained in:
Hagai Kariti 2014-09-30 11:13:54 +03:00 committed by Juho-Mikko Pellinen
parent 84fd824f75
commit 87404fa798

View file

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