Skip to content

Ilhicas/ansible-docker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example on how to use Ansible to create and Provision Docker containers

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

Releases

No releases published

Packages

No packages published