Browse Source

Use more recent versions

Take nsd and unbound from testing
master
blallo 1 year ago
parent
commit
61211c1996
Signed by: blallo GPG Key ID: 0CBE577C9B72DC3F
  1. 6
      README.md
  2. 3
      meta/main.yml
  3. 13
      tasks/nsd.yml
  4. 18
      tasks/unbound.yml

6
README.md

@ -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

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

13
tasks/nsd.yml

@ -9,21 +9,28 @@
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
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/10-nsd-related
dest: /etc/apt/preferences.d/99-all-the-rest-from-stable
owner: root
group: root
mode: 0600
register: repo_config
- name: Ensure repo are up-to-date
apt:

18
tasks/unbound.yml

@ -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"

Loading…
Cancel
Save