From fc737702b9d7cf6508a65f52d8fb89700084dd95 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Wed, 1 Jul 2020 15:40:35 +0200 Subject: [PATCH] Add docker-compose --- roles/docker/tasks/install-docker-io.yml | 7 +++++++ roles/docker/vars/main.yml | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 roles/docker/vars/main.yml diff --git a/roles/docker/tasks/install-docker-io.yml b/roles/docker/tasks/install-docker-io.yml index ef51958..cc1b2c5 100644 --- a/roles/docker/tasks/install-docker-io.yml +++ b/roles/docker/tasks/install-docker-io.yml @@ -5,3 +5,10 @@ update_cache: yes pkg: - docker.io + +- name: Download docker-compose + become: yes + get_url: + url: https://github.com/docker/compose/releases/download/{{ docker.compose.version }}/docker-compose-Linux-x86_64 + dest: /usr/local/bin/docker-compose + mode: 0755 diff --git a/roles/docker/vars/main.yml b/roles/docker/vars/main.yml new file mode 100644 index 0000000..3c4856b --- /dev/null +++ b/roles/docker/vars/main.yml @@ -0,0 +1,4 @@ +--- +docker: + compose: + version: 1.26.0