Thanks again for the feedback. I finally sorted it out, and of course it 
was a fault on my side.

I didn't notice in the playbook someone had overridden hostname with:
hostname: "{{ ansible_hostname }}"
thus causing this behavior.



Il giorno giovedì 23 giugno 2022 alle 17:21:04 UTC+2 Brian Coca ha scritto:

> it will take inventory_hostname from that, but not ansible_hostname,
> again, this is a fact gathered at runtime from the host.
>
> The first variable represents the 'unique identifier' with which the
> host was added to the inventory, the second is a result of running
> gather_facts/setup on the remote system.
>
> -- 
> ----------
> Brian Coca
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4c01bb0c-5622-4e59-8d9d-41161571462an%40googlegroups.com.

Reply via email to