Added recommended extra packages for Trusty. closes geerlingguy/ansible-role-docker#22

This commit is contained in:
Phillip Thurston 2017-08-17 14:33:14 -06:00
parent 7605802735
commit c0b4968b0e

View File

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