mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-23 19:06:54 +01:00
Added recommended extra packages for Trusty. closes geerlingguy/ansible-role-docker#22
This commit is contained in:
parent
7605802735
commit
c0b4968b0e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user