Debian Codegraph @

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

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # (c) 2022, John McCall (@lowlydba)
5 # (c) 2021, Sudhir Koduri (@kodurisudhir)
6 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
7
8 DOCUMENTATION = r'''
9 ---
10 module: sp_configure
11 short_description: Make instance level system configuration changes via C(sp_configure)
12 description:
13 - Read instance level system configuration for a given configuration and update to a new value as provided.
14 version_added: 0.1.0
15 options:
16 name:
17 description:
18 - Name of the configuration that will be changed.
19 type: str
20 required: true
21 value:
22 description:
23 - New value the configuration will be set to.
24 type: int
25 required: true
26 author: "Sudhir Koduri (@kodurisudhir)"
27 requirements:
28 - L(dbatools,https://www.powershellgallery.com/packages/dbatools/) PowerShell module
29 extends_documentation_fragment:
30 - lowlydba.sqlserver.sql_credentials
31 - lowlydba.sqlserver.attributes.check_mode
32 - lowlydba.sqlserver.attributes.platform_all
33 '''
34
35 EXAMPLES = r'''
36 - name: Enable remote DAC connection
37 lowlydba.sqlserver.sp_configure:
38 sql_instance: sql-01.myco.io
39 name: RemoteDacConnectionsEnabled
40 value: 1
41 '''
42
43 RETURN = r'''
44 data:
45 description:
46 - Output from the C(Set-DbaSpConfigure) function.
47 - RestartRequired returned if the setting requires a service restart to take effect.
48 returned: success, but not in check_mode.
49 type: dict
50 '''