This repository contains a simple example usage of docker and ansible together.
playbook.yml starts an example alpine based container with python and destroy.yml, destroys the same container.
This is for a local usage using docker and makes use of localhost to launch those containers.
Inventory is also as simple as possible, and not a remote reference using other Docker Daemon URL.
This is also a companion repository of a tutorial at https://ilhicas.com on how to use Ansible to provision docker containers.
https://ilhicas.com/2018/08/25/Docker-and-ansible-example.html