mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Hostname module should update ansible_hostname
This commit is contained in:
parent
654d2d3f60
commit
b46a1ff3e1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue