Skip to content

Commit

Permalink
Handle Ubuntu 14.04 w/ linux-aws kernel package
Browse files Browse the repository at this point in the history
When using the linux-aws kernel package for EC2 instances, there are no
linux-image-extra packages. However, the kernel image package itself already
contains AuFS support, so the installation can just be skipped.
  • Loading branch information
dschneller authored and angstwad committed Aug 13, 2018
1 parent d252543 commit 86ec401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
with_items:
- linux-image-extra-{{ ansible_kernel }}
- linux-image-extra-virtual
when: docker_aufs_enabled and ansible_distribution_version is version_compare('14.04', '==')
when: docker_aufs_enabled and ansible_distribution_version is version_compare('14.04', '==') and ansible_kernel is version_compare('4.4', '<')

register: linux_image_extra_install
ignore_errors: yes

Expand Down

0 comments on commit 86ec401

Please sign in to comment.