ansible inventory name: "{{ inventory_hostname }}"

Something weird is happening. I am creating a playbook that I would like to run when new hosts are built - they are standard centos 7 vms minimal install.

when this part of the playbook is completed

  • name: Ensure hostname is same as ansible inventory
    hostname:
    name: “{{ inventory_hostname }}”

the prompt on the server changes from this [root@ansible-testing ~]#

to

[root@10 ~]#

Nothing changes in /etc/bashrc /etc/profile ~/.bashrc - how is this getting changed.

Troubleshooting hints:
1) What is the output from ansible-playbook -v when it executes that task?
2) What does `hostname --fqdn` (assuming linux) return after the fact?