[wireguard] add
This commit is contained in:
parent
8b5642873e
commit
fbae5ea42c
|
@ -16,3 +16,4 @@
|
|||
- role: docker
|
||||
tags:
|
||||
- docker
|
||||
- role: wireguard
|
||||
|
|
3
roles/wireguard/files/apt-preferences-unstable
Normal file
3
roles/wireguard/files/apt-preferences-unstable
Normal file
|
@ -0,0 +1,3 @@
|
|||
Package: *
|
||||
Pin: release a=unstable
|
||||
Pin-Priority: 90
|
7
roles/wireguard/tasks/main.yml
Normal file
7
roles/wireguard/tasks/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- block:
|
||||
- import_tasks: packages.yml
|
||||
tags:
|
||||
- wireguard:packages
|
||||
tags:
|
||||
- wireguard
|
16
roles/wireguard/tasks/packages.yml
Normal file
16
roles/wireguard/tasks/packages.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: add unstable repositories
|
||||
apt_repository:
|
||||
repo: deb https://deb.debian.org/debian/ unstable main
|
||||
state: present
|
||||
|
||||
- name: configure apt pinning for unstable
|
||||
copy:
|
||||
src: apt-preferences-unstable
|
||||
dest: /etc/apt/preferences.d/limit-unstable
|
||||
|
||||
- name: install wireguard
|
||||
apt:
|
||||
name: wireguard
|
||||
update_cache: yes
|
||||
state: present
|
Reference in a new issue