Simple and concise example of the most common cases for variable definition and usage in Ansible. Ansible documentation describes all possible cases for variable definition as well as the evaluation precedence.
- basic knowledge of Ansible
- locally installed python3
- locally installed ansible
- no variable value overwriting
- variables are printed in precedence order (ascending)
- role definition is available in
./roles
directory - everything is executed on localhost
- repository clone
- execute
./run.sh