mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 22:54:01 +02:00
Get strongswan from the Zesty repo on Xenial (#515)
This commit is contained in:
parent
6527d04a6f
commit
9f698fdd68
4 changed files with 21 additions and 0 deletions
14
roles/vpn/tasks/ubuntu-hacks.yml
Normal file
14
roles/vpn/tasks/ubuntu-hacks.yml
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
3
roles/vpn/templates/01_strongswan.pref.j2
Normal file
3
roles/vpn/templates/01_strongswan.pref.j2
Normal file
|
@ -0,0 +1,3 @@
|
|||
Package: *strongswan*
|
||||
Pin: release n=zesty
|
||||
Pin-Priority: 9000
|
1
roles/vpn/templates/01_xenial_aptconf.j2
Normal file
1
roles/vpn/templates/01_xenial_aptconf.j2
Normal file
|
@ -0,0 +1 @@
|
|||
APT::Default-Release "xenial";
|
Loading…
Add table
Reference in a new issue