https://github.com/europ/ansible-variables
Simple and concise example of all possible cases for variable definition and usage in Ansible.
https://github.com/europ/ansible-variables
ansible example group-vars host-vars inventory playbook role variable variables
Last synced: 9 months ago
JSON representation
Simple and concise example of all possible cases for variable definition and usage in Ansible.
- Host: GitHub
- URL: https://github.com/europ/ansible-variables
- Owner: europ
- License: mit
- Created: 2020-05-02T14:38:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T12:33:57.000Z (over 5 years ago)
- Last Synced: 2025-05-15T14:11:46.664Z (9 months ago)
- Topics: ansible, example, group-vars, host-vars, inventory, playbook, role, variable, variables
- Language: Ruby
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/europ/ansible-variables)
[](https://github.com/europ/ansible-variables/blob/master/LICENSE)
# Ansible Variables
Simple and concise example of the most common cases for variable definition and usage in Ansible. [Ansible documentation](https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html) describes all possible cases for variable definition as well as the evaluation precedence.
### Prerequisites
* basic knowledge of Ansible
* locally installed python3
* locally installed ansible
### Notes
* no variable value overwriting
* variables are printed in precedence order (ascending)
* role definition is available in `./roles` directory
* everything is executed on localhost
### Setup
1. repository clone
1. execute `./run.sh`
### Example
