No description
Find a file
semantic-release-bot 477a02014e chore(release): 1.8.0 [skip ci]
# [1.8.0](https://github.com/de-it-krachten/ansible-role-unbound/compare/v1.7.0...v1.8.0) (2024-12-29)

### Features

* Update supported platforms & CI ([992eb2d](992eb2db37))
2024-12-29 13:26:29 +00:00
.github/workflows feat: Update supported platforms & CI 2024-12-29 13:49:35 +01:00
defaults feat: Disable remote control (by default) 2024-07-12 19:13:40 +02:00
handlers feat: Move to FQCN 2022-10-09 23:35:25 +02:00
meta feat: Remove support for RHEL/CentOS 7 2024-07-13 01:19:47 +02:00
molecule/default feat: Update supported platforms & CI 2024-12-29 13:49:35 +01:00
tasks Fix linting issues 2024-07-13 01:10:40 +02:00
templates feat: Update supported platforms & CI 2023-08-14 19:45:47 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-09 23:35:52 +02:00
.cicd feat: Update supported platforms & CI 2024-12-29 13:49:35 +01:00
.cicd.overwrite feat: add support for Alpine 2022-07-08 15:09:21 +02:00
.collections feat: Move to FQCN 2022-10-09 23:35:25 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 13:49:35 +01:00
.releaserc.yml feat: Update CI to latest standards 2022-10-09 23:35:52 +02:00
.roles feat: Update CI to latest standards 2022-10-09 23:35:52 +02:00
.yamllint Update CI 2024-10-17 00:28:40 +02:00
CHANGELOG.md chore(release): 1.8.0 [skip ci] 2024-12-29 13:26:29 +00:00
README.md feat: Update supported platforms & CI 2024-12-29 13:49:35 +01:00

CI

ansible-role-unbound

Installs & configures unbound

Dependencies

Roles

None

Collections

None

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • RockyLinux 8
  • RockyLinux 9
  • OracleLinux 8
  • OracleLinux 9
  • AlmaLinux 8
  • AlmaLinux 9
  • SUSE Linux Enterprise 151
  • openSUSE Leap 15
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS
  • Fedora 40
  • Fedora 41
  • Alpine 3

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# Main configuration directory
unbound_etc_dir: /etc/unbound

# Drop-in configuration directory
unbound_confd_dir: "{{ unbound_etc_dir }}/conf.d"
# unbound_confd_dir: "{{ unbound_etc_dir }}/unbound.conf.d"

# Should remote control be enabled
unbound_remote_control: false

# unbound pid file
unbound_pid_file: /run/unbound.pid

# Root hints file
unbound_hints_local: "{{ unbound_etc_dir }}/root.hints"

# Root hints url tfor downloading it
unbound_hints_url: https://www.internic.net/domain/named.cache

# Use IPv6
unbound_do_ip6: 'yes'

# Interface to listen on
unbound_interface: 127.0.0.1

# List of ACLs
unbound_access_control: []

# List of forward zone
unbound_forward_zones: []

# List of custom records (name, ip, cnames)
unbound_custom_records: []

# Lsit of local zones
unbound_local_zones:
  - 10.in-addr.arpa
  - 16.172.in-addr.arpa
  - 17.172.in-addr.arpa
  - 18.172.in-addr.arpa
  - 19.172.in-addr.arpa
  - 20.172.in-addr.arpa
  - 21.172.in-addr.arpa
  - 22.172.in-addr.arpa
  - 23.172.in-addr.arpa
  - 24.172.in-addr.arpa
  - 25.172.in-addr.arpa
  - 26.172.in-addr.arpa
  - 27.172.in-addr.arpa
  - 28.172.in-addr.arpa
  - 29.172.in-addr.arpa
  - 30.172.in-addr.arpa
  - 31.172.in-addr.arpa
  - 168.192.in-addr.arpa

# List of packages to instll
unbound_packages:
  - unbound
  - expat

# Name of the service
unbound_service: unbound

# Firewall active
unbound_firewall: true

# Firewall ports to open
unbound_firewall_ports:
  - { port: 53, proto: tcp }
  - { port: 53, proto: udp }

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'unbound'
  hosts: all
  become: 'yes'
  vars:
    unbound_do_ip6: 'no'
    unbound_firewall: false
    unbound_custom_records:
      - name: server1.example.com
        ip: 192.168.56.100
        cnames:
          - test.example.com
          - test1.example.com
      - name: server2.example.com
        ip: 192.168.56.101
  tasks:
    - name: Include role 'unbound'
      ansible.builtin.include_role:
        name: unbound