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:
Jake Howard 2021-02-07 15:56:25 +00:00
parent c4999d7b25
commit a95ceb348f
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 1 deletions

View file

@ -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 }}"

View file

@ -2,6 +2,7 @@
package:
name: docker-compose
become: true
when: ansible_os_family != 'Debian'
- name: Create docker group
group: