mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 02:03:09 +00:00
Hostname module should update ansible_hostname
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user