January 2019
Intermediate to advanced
606 pages
15h 1m
English
Most playbooks and roles will make use of variables; these variables can be overridden in several ways. The simplest way is to create files in the host_vars and groups_vars folders, these allow you to override variables either based on the host or group membership, respectively. For this, perform the following steps:
a_variable: "foo"
a_variable: "bar"
Variables follow a precedence order; you can also create an all file, which will apply to all groups. However, a variable of the same name that is in a more specific matching group will override it. ...
Read now
Unlock full access