Folding long lines in Ansible inventory files

Sun 07 February 2016 by Lars Kellogg-Stedman Tags ansible pull-request

If you have an Ansible inventory file that includes lots of per host variables, it's not unusual for lines to get long enough that they become unwieldly, particularly if you want to discuss them in an email or write about them in some context (e.g., a blog post).

I've …

read more

Ansible 2.0: New OpenStack modules

This is the second in a loose sequence of articles looking at new features in Ansible 2.0. In the previous article I looked at the Docker connection driver. In this article, I would like to provide an overview of the new-and-much-improved suite of modules for interacting with an OpenStack …

read more

Stupid Ansible Tricks: Running a role from the command line

Mon 19 October 2015 by Lars Kellogg-Stedman Tags ansible

When writing Ansible roles I occasionally want a way to just run a role from the command line, without having to muck about with a playbook. I've seen similar requests on the mailing lists and on irc.

I've thrown together a quick wrapper that will allow you (and me!) to …

read more

Bootstrapping Ansible on Fedora 23

Thu 15 October 2015 by Lars Kellogg-Stedman Tags ansible fedora

If you've tried running Ansible against a Fedora 23 system, you may have run into the following problem:

fatal: [myserver]: FAILED! => {"changed": false, "failed": true,
"msg": "/bin/sh: /usr/bin/python: No such file or directory\r\n",
"parsed": false}

Fedora has recently made the switch to only including Python …

read more

Ansible 2.0: The Docker connection driver

As the release of Ansible 2.0 draws closer, I'd like to take a look at some of the new features that are coming down the pipe. In this post, we'll look at the docker connection driver.

A "connection driver" is the mechanism by which Ansible connects to your target …

read more