Skip to content
Snippets Groups Projects
Commit 1f1eab80 authored by nimrod's avatar nimrod
Browse files

- Validate config during role run (won't restart service with a faulty config).

parent d6d5db34
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
owner: root owner: root
group: 0 group: 0
mode: 0o0644 mode: 0o0644
validate: 'nsd-checkconf {{ nsd_conf }}'
notify: notify:
- Restart NSD - Restart NSD
...@@ -48,6 +49,7 @@ ...@@ -48,6 +49,7 @@
owner: root owner: root
group: 0 group: 0
mode: 0o644 mode: 0o644
validate: 'nsd-checkconf {{ nsd_conf }}'
notify: notify:
- Restart NSD - Restart NSD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment