Install docker from binary on debian distros
This is because the repos are usually super out of date, or at least can stray quite a bit
This commit is contained in:
parent
c4999d7b25
commit
a95ceb348f
2 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
- role: geerlingguy.docker
|
||||
become: true
|
||||
vars:
|
||||
docker_install_compose: false # This role installs the binary directly, which is kinda nasty
|
||||
docker_install_compose: "{{ ansible_os_family == 'Debian' }}"
|
||||
docker_package: "{{ 'docker-ce' if ansible_os_family == 'Debian' else 'docker' }}"
|
||||
docker_users:
|
||||
- "{{ user }}"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
package:
|
||||
name: docker-compose
|
||||
become: true
|
||||
when: ansible_os_family != 'Debian'
|
||||
|
||||
- name: Create docker group
|
||||
group:
|
||||
|
|
Loading…
Reference in a new issue