From 7f9f052be4c6492bb7508ed1efab9aac512b2ffd Mon Sep 17 00:00:00 2001 From: Joseph Benden Date: Sat, 5 Aug 2017 14:46:58 -0700 Subject: [PATCH] Ubuntu 16.04 LTS requires `dmsetup` for Docker to install Docker may hang during installation when the `dmsetup` package is not installed on Ubuntu 16.04. For more information, see the Docker bug report docker/docker#23347 --- tasks/setup-Debian.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 4b2cf31..acd1adf 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -16,6 +16,18 @@ - apt-transport-https - 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. apt_key: url: https://download.docker.com/linux/ubuntu/gpg