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