A simple ansible project for demonstrating how to build a docker image
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
playbooks
roles
.gitignore
LICENSE
README.md
Vagrantfile
ansible.cfg
galaxy-requirements.txt

README.md

ansible-docker-demo

A simple ansible project for demonstrating how to build a docker image. Read the article - Building docker images with ansible

Run the demo

To run this demo, you need to install ansible and vagrant with vbguest plugin. Then

vagrant up

Then, let's build the image, here you run

ansible-playbook \
  -i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory \
  -u vagrant --private-key=~/.vagrant.d/insecure_private_key \
  playbooks/hellobaby.yml

It will prompt you which version and interation number to build like this

hellobaby_version [1.0.0]: 
hellobaby_iteration [1]: 

Just press enter twice to use the default value. Have a break, it should be done pretty soon.