Skip to content

Commit 64e3371

Browse files
committed
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.
1 parent 3a15b07 commit 64e3371

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
mysql_user_home: /root
3+
mysql_root_username: root
34
mysql_root_password: root
45

56
# Pass in a comma-separated list of repos to use (e.g. "remi,epel"). Used only

templates/python-my.cnf.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[client]
2-
user=root
3-
password={{ mysql_root_password }}
2+
user={{ mysql_root_username }}
3+
password={{ mysql_root_password }}

0 commit comments

Comments
 (0)