Merge pull request #67 from hkariti/hostname_fact_update

Hostname module should update ansible_hostname
This commit is contained in:
James Cammarata 2015-06-22 07:54:03 -04:00
commit f7e24fb768

View file

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