host_vars

A directory whose files hold variables for single hosts, each file named exactly as the host is spelled in the inventory.

In more detail

It records the one machine that differs from its group, such as a host on an odd port, in a file whose name says which machine it is about. Host variables beat group variables for the same name, while values the host file does not mention still come from its groups.

Example

host_vars/web1.example.com.yml

Related terms

Taught in

References

Certification courses