I have installed MariaDB 10.4 on a CentOS 7 box. The box has MariaDB running and it does not have a root password on the DB. It is only allows local logins. I keep getting the error message below. I have tried to add a .my.cnf file and doesn't work. I have ran mysql_secure_installation and set the unix socket to yes and to no and no change. What am I missing?
FAILED! => {"changed": false, "msg": "unable to find /root/.my.cnf. Exception message: (1698, u\"Access denied for user 'root'@'localhost'\")"}
- name: "Creates a new DB called {{ db }}"
community.mysql.mysql_db:
check_implicit_admin: yes
name: "{{ db }}"
state: present