# Problem Role Mysql

**URL:** <https://forum.ansible.com/t/problem-role-mysql/32670>\
**Category:** Ansible Project\
**Created:** [April 13, 2020, 10:51am UTC](https://forum.ansible.com/t/problem-role-mysql/32670 "2020-04-13T10:51:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcksonjr](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@marcksonjr](https://forum.ansible.com/u/marcksonjr)\
**Post date:** [April 13, 2020, 10:51am UTC](https://forum.ansible.com/t/problem-role-mysql/32670/1 "2020-04-13T10:51:36Z")

</div>

Hi guys,

Im having a problem when i run one playbook with my role to install and create a database inside mysql.

The first time i run the playbook it finishes successfully.  
But when i run again i get an error saying ansible canot connect to my database.  
although i can connect the database manually without a problem using my .my.cnf file where is my root password.

This is my role Mysql:
