Use more recent versions

Take nsd and unbound from testing
This commit is contained in:
sfigato 2020-08-19 18:45:49 +02:00
parent 540a11f8c4
commit 61211c1996
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
4 changed files with 39 additions and 5 deletions

View File

@ -23,6 +23,12 @@ I need it for my servers
## How?
You need `jnv.debian-backports` as prerequisite role:
```
$ ansible-galaxy install jnv.debian-backports
```
Configure appropriately your inventory to include one **main zone** and pointing
out the primary (_star_) and the secondaries (_satellite_). An example [variable
file][1] looks like this

3
meta/main.yml Normal file
View File

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

View File

@ -9,22 +9,29 @@
mode: 0600
register: testing_sources
- name: Ensure only nsd is taken from testing
- name: Ensure nsd is taken from testing
copy:
content: |
Package: nsd
Pin: release a=testing
Pin-Priority: 999
Package: *
Pin: release a=stable
Pin-Priority: 700
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

View File

@ -3,6 +3,24 @@
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"