roles/common: Only add extras repo on Ubuntu 14.04
The Extras repo was discontinued after 14.10 (but the latest we deploy is 14.04). See: https://lists.ubuntu.com/archives/technical-board/2015-January/002063.html Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
e84f777a6b
commit
9aaad366f5
@ -4,6 +4,7 @@
|
||||
|
||||
- name: Add GPG key for Extras repo
|
||||
apt_key: id=0x3E5C1192 url=http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x16126D3A3E5C1192 state=present
|
||||
when: ansible_distribution_version == '14.04'
|
||||
|
||||
- name: Upgrade base OS
|
||||
apt: upgrade=dist update_cache=yes
|
||||
|
@ -14,5 +14,8 @@ deb http://{{ apt_mirror }}/ubuntu/ {{ ansible_distribution_release }}-updates m
|
||||
###### Ubuntu Partner Repo
|
||||
deb http://archive.canonical.com/ubuntu {{ ansible_distribution_release }} partner
|
||||
|
||||
{% if ansible_distribution_version == '14.04' %}
|
||||
{# extras repo was discontinued after 14.10, but the latest we deploy is 14.04 #}
|
||||
###### Ubuntu Extras Repo
|
||||
deb http://extras.ubuntu.com/ubuntu {{ ansible_distribution_release }} main
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user