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
|
- role: geerlingguy.docker
|
||||||
become: true
|
become: true
|
||||||
vars:
|
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_package: "{{ 'docker-ce' if ansible_os_family == 'Debian' else 'docker' }}"
|
||||||
docker_users:
|
docker_users:
|
||||||
- "{{ user }}"
|
- "{{ user }}"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
package:
|
package:
|
||||||
name: docker-compose
|
name: docker-compose
|
||||||
become: true
|
become: true
|
||||||
|
when: ansible_os_family != 'Debian'
|
||||||
|
|
||||||
- name: Create docker group
|
- name: Create docker group
|
||||||
group:
|
group:
|
||||||
|
|
Loading…
Reference in a new issue