1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

Document mysql connect_timeout and update tests.
This commit is contained in:
Toshio Kuratomi 2016-03-17 07:18:01 -07:00
commit e80cd8bcaf
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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