Switch to bullseye
This commit is contained in:
parent
c059caa5a8
commit
8038ad8f2c
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
dependencies:
|
|
||||||
- role: jnv.debian-backports
|
|
|
@ -4,5 +4,4 @@
|
||||||
vars_files:
|
vars_files:
|
||||||
- ./test_vars.yml
|
- ./test_vars.yml
|
||||||
roles:
|
roles:
|
||||||
- jnv.debian-backports
|
|
||||||
- dns
|
- dns
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Ensure repo are up-to-date
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- include_tasks: wireguard.yml
|
- include_tasks: wireguard.yml
|
||||||
|
|
||||||
- include_tasks: nsd.yml
|
- include_tasks: nsd.yml
|
||||||
|
|
|
@ -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
|
- name: Ensure nsd is present
|
||||||
apt:
|
apt:
|
||||||
name: nsd
|
name: nsd
|
||||||
|
|
|
@ -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:
|
- fail:
|
||||||
msg: "Required nsd_addr is missing"
|
msg: "Required nsd_addr is missing"
|
||||||
when: server.nsd_addr is not defined
|
when: server.nsd_addr is not defined
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
apt:
|
apt:
|
||||||
name: wireguard-tools
|
name: wireguard-tools
|
||||||
state: present
|
state: present
|
||||||
default_release: buster-backports
|
|
||||||
register: wireguard
|
register: wireguard
|
||||||
|
|
||||||
- name: Ensure wireguard configuration is present
|
- name: Ensure wireguard configuration is present
|
||||||
|
|
Loading…
Reference in New Issue
Block a user