From 571f8e4bf4f5d6c2634829444ee2fcb2db06f945 Mon Sep 17 00:00:00 2001 From: Solomon Gifford Date: Fri, 15 Apr 2016 11:06:22 -0400 Subject: [PATCH] ansible doesn't have a create-if-not-exists - but we shouldn't be changing the date each time this is run --- tasks/configure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 65ebcc1..bef598a 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -30,7 +30,7 @@ notify: restart mysql - name: Create slow query log file (if configured). - file: "path={{ mysql_slow_query_log_file }} state=touch" + shell: "touch {{ mysql_slow_query_log_file }} creates={{ mysql_slow_query_log_file }}" when: mysql_slow_query_log_enabled - name: Set ownership on slow query log file (if configured).