vagrant-symfony icon indicating copy to clipboard operation
vagrant-symfony copied to clipboard

Allow access to MySQL from anywhere Failed

Open merdes opened this issue 9 years ago • 3 comments

When i do vagrant up i get the following error when is trying to run ansible tasks:

TASK [mysql : Allow access to MySQL from anywhere] *****************************
fatal: [default]: FAILED! => {"changed": false, "failed": true, "msg": "unsupported parameter for module: \"line"}

Using the last versions of everything: Vagrant (1.8.1), Virtualbox(5.0.14), Ansible (2.0.0.2)... someone with this problem?

merdes avatar Jan 20 '16 11:01 merdes

Same problem for me.

TASK [mysql : Allow access to MySQL from anywhere] ***************************** fatal: [default]: FAILED! => {"changed": false, "failed": true, "msg": "unsupported parameter for module: \"line"}

Exoskill avatar Feb 27 '16 10:02 Exoskill

Open ansible\roles\mysql\tasks\main.yml

Replace

lineinfile: dest=/etc/mysql/my.cnf regexp="^bind-address" "line=#bind-address = 0.0.0.0"

By

lineinfile: dest=/etc/mysql/my.cnf regexp="^bind-address" line="#bind-address = 0.0.0.0"

It worked at my side.

trandangtri avatar Feb 27 '16 15:02 trandangtri

Same issue for redis task. "line=#bind" should be replaced by line="#bind"

tinker1987 avatar Mar 20 '16 22:03 tinker1987