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.