From c0b4968b0ee5ac4366216454fc965cab03126d28 Mon Sep 17 00:00:00 2001 From: Phillip Thurston Date: Thu, 17 Aug 2017 14:33:14 -0600 Subject: [PATCH] Added recommended extra packages for Trusty. closes geerlingguy/ansible-role-docker#22 --- tasks/setup-Debian.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index d0be48d..621ff5d 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -15,6 +15,20 @@ - apt-transport-https - ca-certificates +- name: Get Kernel release + command: uname -r + register: docker_kernel_release + when: ansible_distribution == "Ubuntu" and ansible_distribution_release == "trusty" + +- name: Ensure Trusty packages are installed + apt: + name: "{{ item }}" + state: present + with_items: + - "linux-image-extra-{{ docker_kernel_release }}" + - linux-image-extra-virtual + when: ansible_distribution == "Ubuntu" and ansible_distribution_release == "trusty" + - name: Add Docker apt key. apt_key: url: https://download.docker.com/linux/ubuntu/gpg