add changes to support arch

This commit is contained in:
2025-12-28 13:55:30 -07:00
parent fed849aa26
commit 250c8bfc06

View File

@@ -1,7 +1,14 @@
- name: Install unbound
- name: Install unbound on RedHat family
package:
name: "unbound"
name: unbound
state: latest
when: ansible_os_family == "RedHat"
- name: Install unbound on Arch
community.general.pacman:
name: unbound
state: present
when: ansible_os_family == "Archlinux"
- name: Enable unbound service
service:
@@ -12,7 +19,6 @@
- name: Permit traffic in default zone on port 53/udp
ansible.posix.firewalld:
port: 53/udp
source: 192.0.1.0/24
permanent: true
state: enabled
immediate: true
@@ -21,7 +27,6 @@
- name: Permit traffic in default zone on port 53/tcp
ansible.posix.firewalld:
port: 53/tcp
source: 192.0.1.0/24
permanent: true
state: enabled
immediate: true