From 5366d12ae1efd1259935143d1a9d6c0ef78c1d47 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Sun, 25 Dec 2016 19:54:24 +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 eaf1593..587ee8e 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -67,10 +67,13 @@
       owner: root
       group: root
       mode: 0o0644
-      validate: mysqld --help --verbose
   notify:
       - Restart MySQL
 
+- name: Validate config
+  command: mysqld --help --verbose
+  changed_when: False
+
 - name: Enable service
   service:
       name: mysql
-- 
GitLab