Make MySQL root username configurable

While this doesn't seem to make sense on first glance it is useful for
systems which were screwed with Parallels Plesk, which renames the MySQL
root user to "admin".

This change allowes this role to be used while the server is
transitioning from Plesk to Ansible.
This commit is contained in:
Sebastian Schwarz
2014-08-07 12:41:33 +02:00
parent 3a15b07608
commit 64e337194c
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
---
mysql_user_home: /root
mysql_root_username: root
mysql_root_password: root
# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only

View File

@@ -1,3 +1,3 @@
[client]
user=root
password={{ mysql_root_password }}
user={{ mysql_root_username }}
password={{ mysql_root_password }}