mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-24 00:33:04 +03:00
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_compose_version: "1.11.2"
|
||||
docker_compose_path: /usr/local/bin/docker-compose
|
||||
|
||||
Docker Compose installation options.
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user