Add golang based docker compose tool.
This installs the golang based compose (v2) tool. Also make it the python based tool optional, but installed by default. The docker compose v2 tool comes from either: - Disrto : Moby Engine : docker-compose-v2 : Focal -> Oracular - Upstream : Docker Inc : docker-compose-plugin : Trusty -> Noble With manual checking I can't see any distro older than focal that makes use of the install-docker role, and all in-tree users pull from upstream, so I think adding the golang compose tool without checking the release is safe. Change-Id: Ib8b5af40e626cd2d1a12b643f348001b9fdf4586
This commit is contained in:
parent
0ab443dddb
commit
25727fab47
@ -1,2 +1,3 @@
|
||||
use_upstream_docker: True
|
||||
docker_update_channel: stable
|
||||
with_python_compose: True
|
||||
|
@ -1,5 +1,7 @@
|
||||
- name: Install docker
|
||||
become: yes
|
||||
package:
|
||||
name: docker.io
|
||||
name:
|
||||
- docker.io
|
||||
- docker-compose-v2
|
||||
state: present
|
||||
|
@ -34,6 +34,9 @@
|
||||
- libssl-dev
|
||||
state: present
|
||||
|
||||
- name: Install python docker-compose if needed
|
||||
when: with_python_compose|bool
|
||||
block:
|
||||
- name: ensure pip3 is installed
|
||||
include_role:
|
||||
name: pip3
|
||||
|
@ -49,6 +49,8 @@
|
||||
- name: Install docker
|
||||
become: yes
|
||||
apt:
|
||||
name: docker-ce
|
||||
name:
|
||||
- docker-ce
|
||||
- docker-compose-plugin
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
Loading…
Reference in New Issue
Block a user