Ansible Containers

Long story short. Ansible decided to create separate orchestration tool for the managing application containers, which is obviously a mainstream now. And this is straightforward next step after development tools for server state management like Ansible.

But I was really disappointed with Ansible 2.3, because docker_service module is still broken. I tried all possible combinations of docker, docker-py and docker-compose python modules for ansible on remote host with CoreOS and all of combinations failed with different weird errors like “Dockerfile could not be found” and so on. After all the day trying hard to tackle that issues I gave up and wrote simple “docker-compose up” ansible command :(

And this time I decided to give an ansible-container a try. And … ta da … it fails right away from the start.

Starting Docker build of Ansible Container Conductor image (please be patient)…

Failed with

ERROR Unknown exception
Traceback (most recent call last):
File “/Library/Python/2.7/site-packages/container/”, line 268, in __call__
getattr(core, u’hostcmd_{}’.format(args.subcommand))(**vars(args))
File “/Library/Python/2.7/site-packages/container/”, line 28, in __wrapped__
return fn(*args, **kwargs)
File “/Library/Python/2.7/site-packages/container/”, line 150, in hostcmd_build
File “/Library/Python/2.7/site-packages/container/docker/”, line 82, in __wrapped__
return fn(self, *args, **kwargs)
File “/Library/Python/2.7/site-packages/container/”, line 28, in __wrapped__
return fn(*args, **kwargs)
File “/Library/Python/2.7/site-packages/container/docker/”, line 744, in build_conductor_image
nocache=not cache)
File “/Library/Python/2.7/site-packages/docker/models/”, line 172, in build
raise BuildError(event.get(‘error’) or event)
BuildError: The command ‘/bin/sh -c python / && mkdir -p /etc/ansible/roles /_ansible/src && cd /usr/local/bin && tar -xz — strip-components=1 -f /tmp/docker.tgz’ returned a non-zero code: 2

So, we will wait for the product to become more stable to give a try one more time. Because I can not understand where to go with this weird errors.

One more leaking abstraction.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.