From a977b06b7bbaeae718b6163e36147c30182a56d8 Mon Sep 17 00:00:00 2001 From: slicen Date: Fri, 12 Mar 2021 23:44:42 +1100 Subject: [PATCH] Adds option to configure docker-compose URL Necessary for installing from a local mirror or in an offline environmment. --- defaults/main.yml | 1 + tasks/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8d66047..32297f2 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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. diff --git a/tasks/docker-compose.yml b/tasks/docker-compose.yml index 92cf4f2..27c788b 100644 --- a/tasks/docker-compose.yml +++ b/tasks/docker-compose.yml @@ -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