From 4d1370b22db3bcecdadd9518fdabce9350b29ac0 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Sun, 24 Jan 2021 23:45:47 +0100 Subject: [PATCH] fix dependancies for docker_compose module --- roles/install_docker/tasks/main.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/roles/install_docker/tasks/main.yml b/roles/install_docker/tasks/main.yml index 460fd82..24055f3 100644 --- a/roles/install_docker/tasks/main.yml +++ b/roles/install_docker/tasks/main.yml @@ -22,9 +22,17 @@ retries: 3 until: apt_result is succeeded -- name: Install docker-compose - get_url: - url: https://github.com/docker/compose/releases/download/1.28.0/docker-compose-Linux-x86_64 - # TODO: replace by "...1.28.0/docker-compose-$(uname -s)-$(uname -m)" - dest: /usr/local/bin/docker-compose - mode: '0755' +# Official methode for docker compose, redundant with pip +#- name: Install docker-compose +# get_url: +# url: https://github.com/docker/compose/releases/download/1.28.0/docker-compose-Linux-x86_64 +# # TODO: replace by "...1.28.0/docker-compose-$(uname -s)-$(uname -m)" +# dest: /usr/local/bin/docker-compose +# mode: '0755' + +# Methode requiered by ansible docker_compose module +- name: Install docker and docker-compose + pip: + name: + - docker + - docker-compose