feat: ordered stuff

This commit is contained in:
Simon Cornet 2025-10-24 22:03:31 +02:00
commit c9dad6d865
3 changed files with 15 additions and 16 deletions

View file

@ -1,6 +1,13 @@
---
# unbound
- name: "restart unbound alpine"
ansible.builtin.service:
name: "unbound"
state: "restarted"
enabled: true
when: 'ansible_os_family == "Alpine"'
- name: "restart unbound debian"
ansible.builtin.systemd:
name: "unbound.service"
@ -8,10 +15,3 @@
daemon_reload: true
enabled: true
when: ansible_os_family == "Debian"
- name: "restart unbound alpine"
ansible.builtin.service:
name: "unbound"
state: "restarted"
enabled: true
when: ansible_os_family == "Alpine"

View file

@ -9,8 +9,8 @@
group: "root"
mode: "0644"
notify:
- "restart unbound debian"
- "restart unbound alpine"
- "restart unbound debian"
# configure unbound zones
- name: "config - unbound zones"
@ -21,5 +21,5 @@
group: "root"
mode: "0644"
notify:
- "restart unbound debian"
- "restart unbound alpine"
- "restart unbound debian"

View file

@ -1,15 +1,14 @@
---
# install unbound
- name: "install unbound"
ansible.builtin.apt:
name: "unbound"
cache_valid_time: 120
when: 'ansible_os_family == "Debian"'
# install unbound
- name: "install unbound"
community.general.apk:
name: "unbound"
update_cache: true
when: 'ansible_os_family == "Alpine"'
- name: "install unbound"
ansible.builtin.apt:
name: "unbound"
cache_valid_time: 120
when: 'ansible_os_family == "Debian"'