For a lot of host level information, there is ansible_facts: 
https://docs.ansible.com/ansible/latest/user_guide/playbooks_vars_facts.html

For ad hoc variables which you want to define you can inventory vars at 
various levels

On Thursday, 7 October 2021 at 21:17:22 UTC+1 Simon Gao wrote:

> Hi,
>
> Is there known or common way to add an identifier on the hosts managed by 
> ansible?
>
> Like indentifying os distribution in /etc/redhat-release or 
> /etc/os-release etc, we would like to add some identifying mark on the 
> hosts managed by ansible.
>
> For SaltStack, we can easily tell by checking salt configuration or 
> salt-minion process.  How do people identify the hosts managed via ansible?
>
> Simon
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4efb3e19-e703-4f8e-b0aa-d6ea43e7bee7n%40googlegroups.com.

Reply via email to