You have to start the mysql server before running mysql_user: <br/> - name: Start the MySQL service<br/> service: name=mysql state=started enabled=true </code>
- name: Start the MySQL service<br/> service: name=mysql state=started enabled=true </code>
I had the same error, and starting the server solves it.
You have to start the mysql server before running mysql_user:
<br/>
- name: Start the MySQL service<br/> service: name=mysql state=started enabled=true </code>
I had the same error, and starting the server solves it.