From 8c9c067606bf64972e84309195e864c47a9d3a50 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 25 Dec 2016 20:39:41 +0200 Subject: [PATCH] - Validate config as a task (Ansible's validate requires specifying the config file). --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index f6e5ff5..dbf67ef 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -54,7 +54,6 @@ owner: root group: 0 mode: 0o0644 - validate: unbound-checkconf notify: - Restart Unbound @@ -76,6 +75,10 @@ notify: - Update SMTPd database +- name: Validate config + command: unbound-checkconf + changed_when: False + - name: Enable service service: name: unbound -- GitLab