Debian Codegraph @

ansible_collections/lowlydba/sqlserver/plugins/modules/instance_info.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # (c) 2022, John McCall (@lowlydba)
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r'''
8 ---
9 module: instance_info
10 short_description: Returns basic information for a SQL Server instance
11 description:
12 - Returns basic information for a SQL Server instance.
13 version_added: 0.2.0
14 author: "John McCall (@lowlydba)"
15 requirements:
16 - L(dbatools,https://www.powershellgallery.com/packages/dbatools/) PowerShell module
17 extends_documentation_fragment:
18 - lowlydba.sqlserver.sql_credentials
19 - lowlydba.sqlserver.attributes.check_mode_read_only
20 - lowlydba.sqlserver.attributes.platform_all
21 '''
22
23 EXAMPLES = r'''
24 - name: Get basic info for an instance
25 lowlydba.sqlserver.instance_info:
26 sql_instance: sql-01.myco.io
27 '''
28
29 RETURN = r'''
30 data:
31 description: Instance level properties of the SQL Server instance.
32 returned: always
33 type: dict
34 '''