Issue #2: Allow customization of the Docker Compose path.

This commit is contained in:
Jeff Geerling 2017-05-03 11:06:24 -05:00
parent ab49c85d98
commit 9180fbe7e5
3 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ The Docker package to install.
docker_install_compose: true
docker_compose_version: "1.11.2"
docker_compose_path: /usr/local/bin/docker-compose
Docker Compose installation options.

View File

@ -4,6 +4,7 @@ docker_package: "docker-engine"
# Docker Compose options.
docker_install_compose: true
docker_compose_version: "1.13.0"
docker_compose_path: /usr/local/bin/docker-compose
# 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"

View File

@ -7,7 +7,7 @@
- name: Delete existing docker-compose version if it's different.
file:
path: /usr/local/bin/docker-compose
path: "{{ docker_compose_path }}"
state: absent
when: >
docker_compose_current_version.stdout is defined
@ -16,5 +16,5 @@
- 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
dest: "{{ docker_compose_path }}"
mode: 0755