Allow playbook specified login_user and login_password to override config file settings

reviewable/pr18780/r1
Toshio Kuratomi 10 years ago
parent 76c6a53274
commit 30fc6f03d6

@ -183,7 +183,7 @@ class InvalidPrivsError(Exception):
# MySQL module specific support methods. # MySQL module specific support methods.
# #
def connect(module, login_user=None, login_password=None, config_file=''): def connect(module, login_user=None, login_password=None, config_file='~/.my.cnf'):
config = { config = {
'host': module.params['login_host'], 'host': module.params['login_host'],
'db': 'mysql' 'db': 'mysql'

Loading…
Cancel
Save