1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_unbound.git synced 2024-08-16 13:39:49 +02:00
ansible_role_unbound/handlers/main.yml

13 lines
289 B
YAML
Raw Normal View History

2018-03-10 19:18:04 +01:00
---
2019-07-20 13:49:51 +02:00
- name: unbound checkconf
2021-03-13 01:13:41 +01:00
become: true
ansible.builtin.command: unbound-checkconf /etc/unbound/unbound.conf
2021-01-19 01:03:47 +01:00
changed_when: true
notify: systemctl restart unbound
2019-07-20 13:49:51 +02:00
2021-01-19 01:03:47 +01:00
- name: systemctl restart unbound
2021-03-13 01:13:41 +01:00
become: true
ansible.builtin.service:
2018-03-10 19:18:04 +01:00
name: unbound
state: restarted