diff --git a/roles/tobiko-ensure-docker-compose/tasks/main.yaml b/roles/tobiko-ensure-docker-compose/tasks/main.yaml index 3c630db14..97c11a6e4 100644 --- a/roles/tobiko-ensure-docker-compose/tasks/main.yaml +++ b/roles/tobiko-ensure-docker-compose/tasks/main.yaml @@ -1,11 +1,13 @@ --- - block: - - name: install latest Docker compose using pip + - name: install Docker compose using pip become: true - shell: | - set -x - python3 -m pip install docker-compose + pip: + name: "{{ item }}" + with_items: + - "docker<7.0" + - "docker-compose" - name: get docker compose location path shell: which docker-compose