wireguard/application: Extracted role misc/deb_unstable

wip
Felix Stupp 5 years ago
parent 9e67c463c2
commit 1e5dd61270
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -18,6 +18,7 @@ Following roles have been defined to make creating a server configuration easy:
- **slave** configures an automatic cloning slave for a domain
- **hostname** configures the hostname for a given host
- **misc** contains some required but small roles
- **deb_unstable** enables debian unstable on low priority
- **handlers** contains some handlers used by other roles
- **system_user** creates a system user
- **mysql** defines roles for handling mysql databases and users, uses *MariaDB*

@ -0,0 +1,3 @@
---
allow_duplicates: no

@ -0,0 +1,20 @@
---
- name: Register debian unstable for apt
copy:
dest: "/etc/apt/sources.list.d/unstable.list"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: "deb http://deb.debian.org/debian/ unstable main"
- name: Restrict unstable for apt
copy:
dest: "/etc/apt/preferences.d/unstable"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: |
Package: *
Pin: release a=unstable
Pin-Priority: 90

@ -1,3 +1,6 @@
---
allow_duplicates: no
dependencies:
- role: misc/deb_unstable

@ -1,25 +1,5 @@
---
# TODO Exclude to own role
- name: Register debian unstable for apt
copy:
dest: "/etc/apt/sources.list.d/unstable.list"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: "deb http://deb.debian.org/debian/ unstable main"
- name: Restrict unstable for apt
copy:
dest: "/etc/apt/preferences.d/unstable"
owner: root
group: root
mode: "u=rw,g=r,o=r"
content: |
Package: *
Pin: release a=unstable
Pin-Priority: 90
- name: Install wireguard using apt
apt:
name:

Loading…
Cancel
Save