If you use newer Ansible (i.e.: ansible 2.7.4), then you'll encounter an error when using mysql ansible module.
TASK [bertvv.mariadb : Remove the test database] *******************************************************************************************************************************************************************************************
fatal: []: FAILED! => {"changed": false, "msg": "unable to find /root/.my.cnf. Exception message: (2003, \"Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)\")"}
This is because there's an update on using it. It requires server to have .my.cnf file with credentials, however I think it's better to bypass this with supplying socket location. With options added in this PR, this error goes away.
Hello,
If you use newer Ansible (i.e.: ansible 2.7.4), then you'll encounter an error when using
mysql
ansible module.This is because there's an update on using it. It requires server to have
.my.cnf
file with credentials, however I think it's better to bypass this with supplyingsocket
location. With options added in this PR, this error goes away.