Hostname module should update ansible_hostname

reviewable/pr18780/r1
Hagai Kariti 10 years ago committed by Juho-Mikko Pellinen
parent 84fd824f75
commit 87404fa798

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

Loading…
Cancel
Save