Switch to bullseye

This commit is contained in:
sfigato 2022-03-11 11:43:14 +01:00
parent c059caa5a8
commit 8038ad8f2c
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
6 changed files with 4 additions and 66 deletions

View File

@ -1,3 +0,0 @@
---
dependencies:
- role: jnv.debian-backports

View File

@ -4,5 +4,4 @@
vars_files:
- ./test_vars.yml
roles:
- jnv.debian-backports
- dns

View File

@ -26,6 +26,10 @@
group: root
mode: 0644
- name: Ensure repo are up-to-date
apt:
update_cache: yes
- include_tasks: wireguard.yml
- include_tasks: nsd.yml

View File

@ -1,42 +1,4 @@
---
- name: Ensure bullseye backports apt sources are present
copy:
content: |
deb http://http.debian.net/debian testing main contrib
dest: /etc/apt/sources.list.d/testing.list
owner: root
group: root
mode: 0600
register: testing_sources
- name: Ensure nsd is taken from testing
copy:
content: |
Package: nsd
Pin: release a=testing
Pin-Priority: 999
dest: /etc/apt/preferences.d/10-nsd-related
owner: root
group: root
mode: 0600
register: repo_config
- name: Ensure only nsd is taken from testing
copy:
content: |
Package: *
Pin: release a=stable
Pin-Priority: 700
dest: /etc/apt/preferences.d/99-all-the-rest-from-stable
owner: root
group: root
mode: 0600
- name: Ensure repo are up-to-date
apt:
update_cache: yes
when: repo_config.changed or testing_sources.changed
- name: Ensure nsd is present
apt:
name: nsd

View File

@ -1,27 +1,4 @@
---
- name: Ensure unbound is present
apt:
name: unbound
state: present
default_release: "{{ ansible_distribution_release }}-backports"
- name: Ensure only unbound is taken from testing
copy:
content: |
Package: nsd
Pin: release a={{ ansible_distribution_release }}-backports
Pin-Priority: 998
dest: /etc/apt/preferences.d/20-unbound-related
owner: root
group: root
mode: 0600
register: repo_config_unbound
- name: Ensure repo are up-to-date
apt:
update_cache: yes
when: repo_config_unbound.changed
- fail:
msg: "Required nsd_addr is missing"
when: server.nsd_addr is not defined

View File

@ -3,7 +3,6 @@
apt:
name: wireguard-tools
state: present
default_release: buster-backports
register: wireguard
- name: Ensure wireguard configuration is present