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

- Validate config as a task (Ansible's validate requires specifying the config file).

parent 0f51a2af
Branches
No related tags found
No related merge requests found
......@@ -35,7 +35,6 @@
owner: root
group: 0
mode: 0o0644
validate: 'nsd-checkconf {{ nsd_conf }}'
notify:
- Restart NSD
......@@ -49,7 +48,6 @@
owner: root
group: 0
mode: 0o644
validate: 'nsd-checkconf {{ nsd_conf }}'
notify:
- Restart NSD
......@@ -63,6 +61,10 @@
notify:
- Update SMTPd database
- name: Validate config
command: 'nsd-checkconf {{ nsd_conf }}'
changed_when: False
- name: Enable NSD
service:
name: nsd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment