role defaults

The variables in a role's defaults/main.yml: safe starting values that callers are expected to override.

In more detail

Role defaults have almost the lowest precedence of any variable source, so an inventory, a play or a caller's vars all win over them. That makes them the place for values such as a default site name. Values in vars/main.yml, by contrast, rank much higher and are not meant to be overridden casually.

Related terms

Taught in

References

Certification courses