diff --git a/plugins/doc_fragments/mysql.py b/plugins/doc_fragments/mysql.py index 939126cb..27ec6509 100644 --- a/plugins/doc_fragments/mysql.py +++ b/plugins/doc_fragments/mysql.py @@ -110,4 +110,7 @@ class ModuleDocFragment(object): - Alternatively, to avoid using I(login_unix_socket) argument on each invocation you can specify the socket path using the `socket` option in your MySQL config file (usually C(~/.my.cnf)) on the destination host, for example C(socket=/var/lib/mysql/mysql.sock). +attributes: + check_mode: + description: Can run in check_mode and return changed status prediction without modifying target. ''' diff --git a/plugins/modules/mysql_db.py b/plugins/modules/mysql_db.py index 5a8fe3e3..a4253617 100644 --- a/plugins/modules/mysql_db.py +++ b/plugins/modules/mysql_db.py @@ -188,13 +188,14 @@ - mysql (command line binary) - mysqldump (command line binary) notes: - - Supports C(check_mode). - Requires the mysql and mysqldump binaries on the remote host. - This module is B(not idempotent) when I(state) is C(import), and will import the dump file each time if run more than once. +attributes: + check_mode: + support: full extends_documentation_fragment: - community.mysql.mysql - ''' EXAMPLES = r''' diff --git a/plugins/modules/mysql_info.py b/plugins/modules/mysql_info.py index 11b1a800..cb9f029b 100644 --- a/plugins/modules/mysql_info.py +++ b/plugins/modules/mysql_info.py @@ -47,7 +47,10 @@ notes: - Calculating the size of a database might be slow, depending on the number and size of tables in it. To avoid this, use I(exclude_fields=db_size). -- Supports C(check_mode). + +attributes: + check_mode: + support: full seealso: - module: community.mysql.mysql_variables diff --git a/plugins/modules/mysql_query.py b/plugins/modules/mysql_query.py index 12d5a563..9123d60c 100644 --- a/plugins/modules/mysql_query.py +++ b/plugins/modules/mysql_query.py @@ -50,6 +50,9 @@ - Where passed queries run in a single transaction (C(yes)) or commit them one-by-one (C(no)). type: bool default: false +attributes: + check_mode: + support: none seealso: - module: community.mysql.mysql_db author: diff --git a/plugins/modules/mysql_replication.py b/plugins/modules/mysql_replication.py index 33e14bc2..8029a5ad 100644 --- a/plugins/modules/mysql_replication.py +++ b/plugins/modules/mysql_replication.py @@ -190,10 +190,13 @@ notes: - If an empty value for the parameter of string type is needed, use an empty string. +attributes: + check_mode: + support: none + extends_documentation_fragment: - community.mysql.mysql - seealso: - module: community.mysql.mysql_info - name: MySQL replication reference diff --git a/plugins/modules/mysql_role.py b/plugins/modules/mysql_role.py index 070d7939..7d672d78 100644 --- a/plugins/modules/mysql_role.py +++ b/plugins/modules/mysql_role.py @@ -125,7 +125,10 @@ - Pay attention that the module runs C(SET DEFAULT ROLE ALL TO) all the I(members) passed by default when the state has changed. If you want to avoid this behavior, set I(set_default_role_all) to C(no). - - Supports C(check_mode). + +attributes: + check_mode: + support: full seealso: - module: community.mysql.mysql_user diff --git a/plugins/modules/mysql_user.py b/plugins/modules/mysql_user.py index e87fe12d..38e51246 100644 --- a/plugins/modules/mysql_user.py +++ b/plugins/modules/mysql_user.py @@ -163,7 +163,10 @@ 2) drop a C(~/.my.cnf) file containing the new root credentials. Subsequent runs of the playbook will then succeed by reading the new credentials from the file." - Currently, there is only support for the C(mysql_native_password) encrypted password hash module. - - Supports (check_mode). + +attributes: + check_mode: + support: full seealso: - module: community.mysql.mysql_info @@ -180,7 +183,6 @@ - Lukasz Tomaszkiewicz (@tomaszkiewicz) extends_documentation_fragment: - community.mysql.mysql - ''' EXAMPLES = r''' diff --git a/plugins/modules/mysql_variables.py b/plugins/modules/mysql_variables.py index f404d5aa..395a24c9 100644 --- a/plugins/modules/mysql_variables.py +++ b/plugins/modules/mysql_variables.py @@ -44,8 +44,9 @@ default: global version_added: '0.1.0' -notes: -- Does not support C(check_mode). +attributes: + check_mode: + support: none seealso: - module: community.mysql.mysql_info