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
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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