mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-08-02 13:46:22 +02:00
Merge 7f9f052be4
into 2b507a374e
This commit is contained in:
commit
d8b8aa467c
@ -6,6 +6,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- docker
|
- docker
|
||||||
- docker-engine
|
- docker-engine
|
||||||
|
- docker.io
|
||||||
|
|
||||||
- name: Ensure depdencies are installed.
|
- name: Ensure depdencies are installed.
|
||||||
apt:
|
apt:
|
||||||
@ -15,6 +16,18 @@
|
|||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
|
|
||||||
|
# Fix for https://github.com/docker/docker/issues/23347
|
||||||
|
- name: Install dmsetup for Ubuntu 16.04
|
||||||
|
apt:
|
||||||
|
pkg: dmsetup
|
||||||
|
state: present
|
||||||
|
register: dmsetup_result
|
||||||
|
when: ansible_distribution_version|version_compare('16.04', '=')
|
||||||
|
|
||||||
|
- name: Run dmsetup for Ubuntu 16.04
|
||||||
|
command: dmsetup mknodes
|
||||||
|
when: dmsetup_result.changed
|
||||||
|
|
||||||
- name: Add Docker apt key.
|
- name: Add Docker apt key.
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://download.docker.com/linux/ubuntu/gpg
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
|
Loading…
Reference in New Issue
Block a user