Member-only story
Running Ansible Through Docker
People who are learning ansible must have encountered a particular problem, where do you practice the whole thing!?
I can assure you, there are solutions out there such as kataconda but it was satisfying enough for me so I was looking for other solutions. One such solution I came across is Docker. God bless Docker because it made it so easy for me to practice ansible.

What I am essentially doing is running multiple containers which act as master machines, and worker machines respectively. ( I am assuming you know the lingo in ansible, If not I suggest you go through some tutorials before hopping here! )
Note: Before you proceed further, make sure you are familiar with ansible, docker, and docker-compose since I am all of it in this tutorial.
The software you need:
- Docker
- Docker-compose (It’s easier that way.)
Make sure you have the exact directory structure given If you are a beginner.

docker-compose.yml