europ / ansible-variables

Simple and concise example of all possible cases for variable definition and usage in Ansible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis CI Build Status License

Ansible Variables

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.

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
  2. execute ./run.sh

Example

example

About

Simple and concise example of all possible cases for variable definition and usage in Ansible.

License:MIT License


Languages

Language:Ruby 54.8%Language:Shell 45.2%