Get strongswan from the Zesty repo on Xenial (#515)

pull/519/head
Jack Ivanov 7 years ago committed by Dan Guido
parent 6527d04a6f
commit 9f698fdd68

@ -0,0 +1,14 @@
---
- name: Configure apt to use the Xenial release by default
template: src=01_xenial_aptconf.j2 dest=/etc/apt/apt.conf.d/01xenial
- name: Configure packages preferences
template: src=01_strongswan.pref.j2 dest=/etc/apt/preferences.d/01_strongswan.pref
- name: Configure the Ubuntu Zesty repository
apt_repository:
repo: deb http://mirrors.kernel.org/ubuntu/ zesty main
state: present
filename: 'zesty'
update_cache: yes

@ -3,6 +3,9 @@
- set_fact:
strongswan_additional_plugins: []
- include: ubuntu-hacks.yml
when: ansible_distribution_version == "16.04"
- name: Ubuntu | Install strongSwan
apt: name=strongswan state=latest update_cache=yes install_recommends=yes

@ -0,0 +1,3 @@
Package: *strongswan*
Pin: release n=zesty
Pin-Priority: 9000

@ -0,0 +1 @@
APT::Default-Release "xenial";
Loading…
Cancel
Save