unbound/handlers/main.yaml
Simon Cornet a2eb035b7b
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
chore: migrate bare ansible_* facts to ansible_facts[] syntax
2026-05-19 09:19:08 +02:00

17 lines
388 B
YAML

---
# unbound
- name: "restart unbound alpine"
ansible.builtin.service:
name: "unbound"
state: "restarted"
enabled: true
when: 'ansible_facts["os_family"] == "Alpine"'
- name: "restart unbound debian"
ansible.builtin.systemd:
name: "unbound.service"
state: "restarted"
daemon_reload: true
enabled: true
when: "ansible_facts['os_family'] == 'Debian'"