mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Merge pull request #14908 from mattclay/mysql-connect-timeout
Document mysql connect_timeout and update tests.
This commit is contained in:
@@ -47,6 +47,12 @@ options:
|
|||||||
- The path to a Unix domain socket for local connections
|
- The path to a Unix domain socket for local connections
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
connect_timeout:
|
||||||
|
description:
|
||||||
|
- The connection timeout when connecting to the MySQL server.
|
||||||
|
required: false
|
||||||
|
default: 30
|
||||||
|
version_added: "2.1"
|
||||||
config_file:
|
config_file:
|
||||||
description:
|
description:
|
||||||
- Specify a config file from which user and password are to be read
|
- 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
|
# 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
|
- 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
|
register: result
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user