Use modern versions of docker-compose on Debian

Install the plugin and use switch, rather than downloading an arbitrary binary. This way, it keeps getting updated.
This commit is contained in:
Jake Howard
2024-07-14 23:12:44 +01:00
parent 393a947cb7
commit 3d281fffc2
4 changed files with 19 additions and 6 deletions

View File

@ -4,6 +4,14 @@
become: true
when: ansible_os_family != 'Debian'
- name: Install compose-switch
get_url:
url: "{{ docker_compose_url }}"
dest: "{{ docker_compose_path }}"
mode: "0755"
become: true
when: ansible_os_family == 'Debian'
- name: Create docker group
group:
name: "{{ docker_user.name }}"