Running this role after a system account has been created matching the mariadb_username
If this role is initially run with mariadb_username: test
and at the time no test
system user exists then the MariaDB account will be created and the password set and it will be saved to /root/.test.my.cnf
.
If a system account called test
is then created and this role is run again then a new, incorrect, password will be saved to /home/test/.my.cnf
Some improvement is needed to the logic, or, for now, make sure that account creation is done first...