Ansible Playbook development
Risu does support execution of ansible playbooks as long as:
ansible-playbookis installed and available in path
Playbooks can either:
- Include
RISU_ROOTenvironment variable usage so they are executed insnapshootmode. - or not have it, so they will be executed only in
Livemode. - for playbooks that are valid for both Live and non Live, a comment with
RISU_HYBRIDshould be in the lines, so Risu does flag it for both live and non live execution.
The idea behind this approach is that unmodified dropped-in the folder and risu will pick them up for Live execution.
If a script has to be customized, it will contain the RISU_ROOT variable, and they will be used for snapshoot mode.