ansible with docker dynamic inventory

2017-01-09 2 min read bash Fedora Vurtualization
So, I have a few dockers. Every now and then I want to run some command on all of them. Doing ‘docker exec’ is tiresome. I found this neat solution with ansible that I thought I should share with you. To get started, you need to have the “docker.py” script. This script will be used as python script inventory for ansible. So, use the following command and get the script: Continue reading