From 3a274e707875f5c44b531931c331c804fc752d97 Mon Sep 17 00:00:00 2001 From: Tri Tran Date: Sat, 27 Feb 2016 23:05:54 +0700 Subject: [PATCH] Fixed Allow access to MySQL from anywhere Failed --- ansible/roles/mysql/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/mysql/tasks/main.yml b/ansible/roles/mysql/tasks/main.yml index 59bf94c..ddd5bb3 100644 --- a/ansible/roles/mysql/tasks/main.yml +++ b/ansible/roles/mysql/tasks/main.yml @@ -5,7 +5,7 @@ - name: Allow access to MySQL from anywhere sudo: yes - lineinfile: dest=/etc/mysql/my.cnf regexp="^bind-address" "line=#bind-address = 0.0.0.0" + lineinfile: dest=/etc/mysql/my.cnf regexp="^bind-address" line="#bind-address = 0.0.0.0" notify: restart mysql - name: Add root user from anywhere to MySQL