Ansible Docker Challenge - WORKSHOP


Details
A few weeks ago a colleague of ours presented an Ansible request. I found the request fascinating and worth doing a workshop on. It brings in a lot of elements from both Ansible and Docker. If you can do it, you're probably pretty good with both. If you can't, you may gain some insight from showing up to this.
If you think you can whip up your own solution to this and bring it to the workshop, even a half-baked one, you'll get a shout out from us on our forums, bragging rights in our little community. Or if you just want to see how others might tackle this, you're welcome to come and just observe and join the discussion.
I'll be working on my own version.
Come show us what you've got!
The Software Freedom School crew will join us, and bring snacks. I'll bring free pizza for lunch!
Here's the challenge:
Write Ansible playbook, using roles that will:
-
Spawn 2 local docker containers
-
Container one should have docker_root user with automatically generated key pair
-
Container one should have user provided SSH-public key (as a variable) added to
docker_root user authorized_keys.
- Container two should allow to SSH from container one using d ocker_root user and the
generated keys
- Check the connectivity from container one to container two in automated way.
suggested donation: $16 or PWYC
- Anthony

Ansible Docker Challenge - WORKSHOP