Adaltas
Published in

Adaltas

Ansible variables: choosing the right location

Defining variables for your Ansible playbooks and roles can become challenging as your project grows.

Browsing the Ansible documentation, the diversity of Ansible variables location is confusing, to say the least:

  1. command line values (for example, -u my_user, these are not variables)
  2. role defaults (defined in role/defaults/main.yml)

--

--

--

All our publications about Open Source, Big Data, Data Engineering, DevOps and Data Science.

Recommended from Medium

Decorators in Python: What They Are and How to Use Them

Keeping RabbitMQ connections alive in PHP

Simple Java program

DSA Series: 2-Pointer Technique with Arrays

Top 10 Flutter Development Companies, 2020

Airflow : Deployment

Starpunk® DevLog – 2.5D Flight

Use iCloud CloudKit & Sign in with Apple to keep user’s information

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Adaltas

Adaltas

Open Source consulting - Big Data, Data Science, Node.js

More from Medium

IaC with Terraform and AWS, Part 1: IAM

What is Terraform?

How to use Terraform to manage GitHub users with Azure SSO

Allow md5 Connection for a PostgreSQL User / Role — Ansible module postgresql_pg_hba