We rely on the
Leverage CLIas a wrapper to run ansible commands that consistently use the same config files and secrets.
You are encouraged to read more about our
Leverage CLIhow it works section to better understand it.
- Get into the folder that you need to work with (e.g.
leverage run initto get all the necessary Ansible roles based on each
- Make whatever changes you need to make as stated in each Playbook Documentation (check Documentation section above)
- For a dry run execution use
leverage run apply\[--check\]if you only mean to preview those changes
leverage run applyif you want to apply those changes
- If you want to target specific playbook tasks by tag (eg: common tag) you can run one of the following options:
leverage run apply["--tags","common"]
noglob leverage run apply["--tags","common"]
leverage shelland then
ansible-playbook setup.yml --tags common