environment overlay

Keeping one shared playbook and putting the values that differ between environments in separate variable files, one per environment.

In more detail

Defaults set the common baseline, group variables describe each environment such as staging or production, and host variables handle narrow exceptions. Choosing the inventory at launch chooses the data, so a logic fix is made once and reaches every environment. Copying a playbook to change three values is the pattern this replaces.

Related terms

Taught in

References