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

This commit is contained in:
Jack Ivanov 2017-05-03 22:03:10 +02:00 committed by Dan Guido
parent 6527d04a6f
commit 9f698fdd68
4 changed files with 21 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

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

View file

@ -0,0 +1 @@
APT::Default-Release "xenial";