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

Running NTP in a Container

Fri 09 October 2015 by Lars Kellogg-Stedman Tags docker atomic

Someone asked on IRC about running ntpd in a container on Atomic, so I've put together a small example. We'll start with a very simple Dockerfile:

FROM alpine
RUN apk update
RUN apk add openntpd
ENTRYPOINT ["ntpd"]

I'm using the alpine image as my starting point because it's very small …

read more

Migrating Cinder volumes between OpenStack environments using shared NFS storage

Tue 29 September 2015 by Lars Kellogg-Stedman Tags openstack cinder

Many of the upgrade guides for OpenStack focus on in-place upgrades to your OpenStack environment. Some organizations may opt for a less risky (but more hardware intensive) option of setting up a parallel environment, and then migrating data into the new environment. In this article, we look at how to …

read more