Ansible playbooks for AnsibleFest presentation on the Docker modules
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
roles
tmp
.gitignore
README.md
ansible.cfg
docker.yml.j2
docker_hosts.yml
docker_inventory_yml.yml
facts.yml
facts_all.yml
facts_all_images.yml
hosts
images.yml
site.yml

README.md

Ansible Docker module presentation

This repository contains samples of how one would utilize the docker and docker_images Ansible modules to build images and launch them

Requirements

  • Set up python virtualenv
  • Clone the ansible source repository (https://github.com/ansible/ansible.git)
  • Set up your paths to run ansible from the source directory you checked out ../ansible/hacking/env-setup.sh
  • Obtain the docker image building repository

Setup

  • Set up your vars files for whatever values you require
    • number of containers per type
    • name of your Docker repository

Usage

  • Build your images ansible-playbook -i hosts -vvvv images.yml
  • Launch your images anbible-playbook -i hosts -vvvv site.yml
  • Destory your images anbible-playbook -i hosts -e "ansible_state=absent" -vvvv site.yml