mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-19 17:01:26 -07:00
mysql_info: add server_engine return value (#649)
* mysql_info: add server_engine return value * Incorporate feedback
This commit is contained in:
parent
0bc3e3d848
commit
f266ba59c9
3 changed files with 10 additions and 0 deletions
|
@ -162,6 +162,12 @@ EXAMPLES = r'''
|
|||
'''
|
||||
|
||||
RETURN = r'''
|
||||
server_engine:
|
||||
description: Database server engine.
|
||||
returned: if not excluded by filter
|
||||
type: str
|
||||
sample: 'MariaDB'
|
||||
version_added: '3.10.0'
|
||||
version:
|
||||
description: Database server version.
|
||||
returned: if not excluded by filter
|
||||
|
@ -765,6 +771,7 @@ def main():
|
|||
mysql = MySQL_Info(module, cursor, server_implementation, user_implementation)
|
||||
|
||||
module.exit_json(changed=False,
|
||||
server_engine='MariaDB' if server_implementation == 'mariadb' else 'MySQL',
|
||||
connector_name=connector_name,
|
||||
connector_version=connector_version,
|
||||
**mysql.get_info(filter_, exclude_fields, return_empty_dbs))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue