Only force apt backports for Trusty
The backports repo is only essential for Trusty at this time, so this patch ensures that this task is only applied to Trusty. Change-Id: I5026b66a0b263b56d604b06b8efea2eba80447d0
This commit is contained in:
parent
22e02044d0
commit
2f30848ac6
@ -19,6 +19,7 @@
|
|||||||
command: "sed -i '/deb.*-backports/s|^#\\s||g' /etc/apt/sources.list"
|
command: "sed -i '/deb.*-backports/s|^#\\s||g' /etc/apt/sources.list"
|
||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr == 'apt'
|
- ansible_pkg_mgr == 'apt'
|
||||||
|
- ansible_distribution_release | lower == 'trusty'
|
||||||
|
|
||||||
- name: First ensure apt cache is always refreshed
|
- name: First ensure apt cache is always refreshed
|
||||||
apt:
|
apt:
|
||||||
|
Loading…
Reference in New Issue
Block a user