Merge pull request #14908 from mattclay/mysql-connect-timeout

Document mysql connect_timeout and update tests.
pull/15021/head
Toshio Kuratomi 8 years ago
commit e80cd8bcaf

@ -47,6 +47,12 @@ options:
- The path to a Unix domain socket for local connections
required: false
default: null
connect_timeout:
description:
- The connection timeout when connecting to the MySQL server.
required: false
default: 30
version_added: "2.1"
config_file:
description:
- Specify a config file from which user and password are to be read

@ -194,11 +194,8 @@
#============================================================
# Verify mysql_variable fails with an incorrect login_host parameter
#
- name: lower mysql connect timeout
ini_file: dest="{{ansible_env.HOME}}/.my.cnf" section=client option=connect_timeout value=5
- name: query mysql_variable using incorrect login_host
mysql_variables: variable=wait_timeout login_host=12.0.0.9
mysql_variables: variable=wait_timeout login_host=12.0.0.9 connect_timeout=5
register: result
ignore_errors: true

Loading…
Cancel
Save