Fixes #1: Add Docker Compose.

This commit is contained in:
Jeff Geerling 2017-02-25 08:48:30 -06:00
parent 14a90bfa3a
commit cdb27879e7
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,10 @@
--- ---
docker_package: "docker-engine" docker_package: "docker-engine"
# Docker Compose options.
docker_install_compose: true
docker_compose_version: "1.11.2"
# Used only for Debian/Ubuntu. Add 'testing' if you don't want stable. # Used only for Debian/Ubuntu. Add 'testing' if you don't want stable.
docker_apt_repository: "deb https://apt.dockerproject.org/repo {{ ansible_distribution|lower }}-{{ ansible_distribution_release }} main" docker_apt_repository: "deb https://apt.dockerproject.org/repo {{ ansible_distribution|lower }}-{{ ansible_distribution_release }} main"

View File

@ -13,3 +13,10 @@
name: docker name: docker
state: started state: started
enabled: yes enabled: yes
- name: Install Docker Compose (if configured).
get_url:
url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
dest: /usr/local/bin/docker-compose
mode: 0755
when: docker_install_compose