Settings¶
Introduction¶
Playbook comes with plethora of knobs to turn and tune.
Variable catalog¶
See default.yml.
Variable ordering¶
Generally the order is this
In
vars
section of yourplaybook.yml
you put the basic settings which cannot be deduced from the context (git_repository
)Then we include
secrets.yml
vault with all passwords and API tokensThen we apply
defaults.yml
which generates a lot of variables based onvars
input which you usually don’t want to tune (database name, username, log file locations, etc.)If you are unhappy with
defaults.yml
results, you can create and include yet another filelocal-config.yml
which overrides theseNow you can still apply host and group specific variables as per Ansible manual