Allow db user name differing from db name

For some services, the name of the database user may differ from the
name of the database that user needs access to. Add a 'db_user' variable
for use in this case, defaulting to 'db_name' to maintain current
functionality.

Change-Id: Iff2d736415cfbe3e1ec60aa370cc30bd8610541d
This commit is contained in:
Jimmy McCrory 2016-10-03 13:23:11 -07:00
parent 8c453b8895
commit adb2af675f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
login_user: "root"
login_password: "secrete"
login_host: "127.0.0.1"
name: "{{ db_name }}"
name: "{{ db_user | default(db_name) }}"
password: "{{ db_password }}"
host: "{{ item }}"
state: "present"