Adds option to configure docker-compose URL

Necessary for installing from a local mirror or in an offline environmment.
This commit is contained in:
slicen 2021-03-12 23:44:42 +11:00
parent 5eec6ef54e
commit a977b06b7b
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ docker_restart_handler_state: restarted
# Docker Compose options.
docker_install_compose: true
docker_compose_version: "1.26.0"
docker_compose_url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
docker_compose_path: /usr/local/bin/docker-compose
# Used only for Debian/Ubuntu. Switch 'stable' to 'nightly' if needed.

View File

@ -15,6 +15,6 @@
- name: Install Docker Compose (if configured).
get_url:
url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
url: "{{ docker_compose_url }}"
dest: "{{ docker_compose_path }}"
mode: 0755