mirror of
https://github.com/roles-ansible/ansible_role_unbound.git
synced 2024-08-16 13:39:49 +02:00
16 lines
336 B
YAML
16 lines
336 B
YAML
---
|
|
- name: unbound checkconf
|
|
become: true
|
|
ansible.builtin.command: unbound-checkconf /etc/unbound/unbound.conf
|
|
retries: 5
|
|
delay: 3
|
|
register: result
|
|
until: result.rc == 0
|
|
|
|
notify: systemctl restart unbound
|
|
|
|
- name: systemctl restart unbound
|
|
become: true
|
|
ansible.builtin.service:
|
|
name: unbound
|
|
state: restarted
|