Issue #2: Allow customization of the Docker Compose path.
This commit is contained in:
parent
ab49c85d98
commit
9180fbe7e5
|
@ -18,6 +18,7 @@ The Docker package to install.
|
||||||
|
|
||||||
docker_install_compose: true
|
docker_install_compose: true
|
||||||
docker_compose_version: "1.11.2"
|
docker_compose_version: "1.11.2"
|
||||||
|
docker_compose_path: /usr/local/bin/docker-compose
|
||||||
|
|
||||||
Docker Compose installation options.
|
Docker Compose installation options.
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ docker_package: "docker-engine"
|
||||||
# Docker Compose options.
|
# Docker Compose options.
|
||||||
docker_install_compose: true
|
docker_install_compose: true
|
||||||
docker_compose_version: "1.13.0"
|
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.
|
# 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"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
- name: Delete existing docker-compose version if it's different.
|
- name: Delete existing docker-compose version if it's different.
|
||||||
file:
|
file:
|
||||||
path: /usr/local/bin/docker-compose
|
path: "{{ docker_compose_path }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: >
|
when: >
|
||||||
docker_compose_current_version.stdout is defined
|
docker_compose_current_version.stdout is defined
|
||||||
|
@ -16,5 +16,5 @@
|
||||||
- name: Install Docker Compose (if configured).
|
- name: Install Docker Compose (if configured).
|
||||||
get_url:
|
get_url:
|
||||||
url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
|
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
|
mode: 0755
|
||||||
|
|
Loading…
Reference in New Issue
Block a user