Central Iowa Software Symposium

August 3 - 4, 2018

Ansible (best) practices

Saturday - Aug 4 2:45 PM - WOODBURY

Raju Gandhi

Raju Gandhi

CTO Integrallis Software & Technophile

Ansible, like Git, aims to be a simple tool.
The benefit here is that the level of abstraction that Ansible offers is paper-thin, with no complicated workflows, or opinions enforced by the tool itself.
The downside is that without a prescribed approach to Ansible, developing your playbooks often becomes a case of trial-and-error.

As engineers steeped in the DevOps mindset we must be able to use the tool effectively, allowing us to accelerate and shorten the lead time from development to production.

In this session we will take a look at some lessons learned when working with Ansible. Topics covered:

  • Variables, variable lookup precedence, and the best way to use variables in your Ansible scripts
  • Setting up Ansible to work locally, allowing for faster development, iteration and testing
  • Laying out your inventory files, and positioning them to work best with group_vars and host_vars
  • Thinking about the “hierarchy” of your infrastructure, and how best to use Ansible to reflect that hierarchy

Video Preview

About Raju Gandhi

Raju Gandhi is a Java/Ruby/Clojure developer and a programming language geek. He has been writing software for well over a decade in several industries including education, finance, construction, manufacturing and retail sectors. Raju has a graduate degree in Industrial Engineering from Ohio University. In his spare time you will find Raju reading, or watching movies, or playing with yet another programming language. He is affectionately known as looselytyped on Twitter.