mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-26 12:21:27 -07:00
Merge branch 'ansible-collections:main' into lie_tests_using_containers
This commit is contained in:
commit
5538e17d75
11 changed files with 75 additions and 60 deletions
|
@ -42,7 +42,7 @@ options:
|
|||
description:
|
||||
- Includes names of empty databases to returned dictionary.
|
||||
type: bool
|
||||
default: no
|
||||
default: false
|
||||
|
||||
notes:
|
||||
- Calculating the size of a database might be slow, depending on the number and size of tables in it.
|
||||
|
@ -96,14 +96,14 @@ EXAMPLES = r'''
|
|||
filter: "!settings,!users"
|
||||
|
||||
- name: Collect info about databases and version using ~/.my.cnf as a credential file
|
||||
become: yes
|
||||
become: true
|
||||
community.mysql.mysql_info:
|
||||
filter:
|
||||
- databases
|
||||
- version
|
||||
|
||||
- name: Collect info about databases and version using ~alice/.my.cnf as a credential file
|
||||
become: yes
|
||||
become: true
|
||||
community.mysql.mysql_info:
|
||||
config_file: /home/alice/.my.cnf
|
||||
filter:
|
||||
|
@ -111,13 +111,13 @@ EXAMPLES = r'''
|
|||
- version
|
||||
|
||||
- name: Collect info about databases including empty and excluding their sizes
|
||||
become: yes
|
||||
become: true
|
||||
community.mysql.mysql_info:
|
||||
config_file: /home/alice/.my.cnf
|
||||
filter:
|
||||
- databases
|
||||
exclude_fields: db_size
|
||||
return_empty_dbs: yes
|
||||
return_empty_dbs: true
|
||||
'''
|
||||
|
||||
RETURN = r'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue