summaryrefslogtreecommitdiffstats
path: root/ansible_collections/lowlydba/sqlserver/plugins
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:22:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:22:20 +0000
commit18bd2207b6c1977e99a93673a7be099e23f0f547 (patch)
tree40fd9e5913462a88be6ba24be6953383c5b39874 /ansible_collections/lowlydba/sqlserver/plugins
parentReleasing progress-linux version 10.0.1+dfsg-1~progress7.99u1. (diff)
downloadansible-18bd2207b6c1977e99a93673a7be099e23f0f547.tar.xz
ansible-18bd2207b6c1977e99a93673a7be099e23f0f547.zip
Merging upstream version 10.1.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/lowlydba/sqlserver/plugins')
-rw-r--r--ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.ps16
-rw-r--r--ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.py19
-rw-r--r--ansible_collections/lowlydba/sqlserver/plugins/modules/spn.py10
3 files changed, 23 insertions, 12 deletions
diff --git a/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.ps1 b/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.ps1
index e20238ed4..21cc05538 100644
--- a/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.ps1
+++ b/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.ps1
@@ -15,9 +15,9 @@ $spec = @{
options = @{
ag_name = @{type = 'str'; required = $true }
listener_name = @{type = 'str'; required = $true }
- ip_address = @{type = 'str'; required = $false }
- subnet_ip = @{type = 'str'; required = $false }
- subnet_mask = @{type = 'str'; required = $false; default = '255.255.255.0' }
+ ip_address = @{type = 'list'; elements = 'str'; required = $false }
+ subnet_ip = @{type = 'list'; elements = 'str'; required = $false }
+ subnet_mask = @{type = 'list'; elements = 'str'; required = $false; default = '255.255.255.0' }
port = @{type = 'int'; required = $false; default = 1433 }
dhcp = @{type = 'bool'; required = $false; default = $false }
state = @{type = "str"; required = $false; default = "present"; choices = @("present", "absent") }
diff --git a/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.py b/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.py
index 12f0ec635..e835678ae 100644
--- a/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.py
+++ b/ansible_collections/lowlydba/sqlserver/plugins/modules/ag_listener.py
@@ -25,17 +25,20 @@ options:
ip_address:
description:
- IP address(es) of the listener. Comma separated if multiple.
- type: str
+ type: list
+ elements: str
required: false
subnet_ip:
description:
- Subnet IP address(es) of the listener. Comma separated if multiple.
- type: str
+ type: list
+ elements: str
required: false
subnet_mask:
description:
- Sets the subnet IP mask(s) of the availability group listener. Comma separated if multiple.
- type: str
+ type: list
+ elements: str
required: false
default: 255.255.255.0
port:
@@ -71,9 +74,13 @@ EXAMPLES = r'''
sql_instance_primary: sql-01.myco.io
ag_name: AG_MyDatabase
listener_name: aglMyDatabase
- ip_address: 10.0.20.20,10.1.77.77
- subnet_ip: 255.255.252.0
- subnet_mask: 255.255.255.0
+ ip_address:
+ - 10.0.20.20
+ - 10.1.77.77
+ subnet_ip:
+ - 255.255.252.0
+ subnet_mask:
+ - 255.255.255.0
'''
RETURN = r'''
diff --git a/ansible_collections/lowlydba/sqlserver/plugins/modules/spn.py b/ansible_collections/lowlydba/sqlserver/plugins/modules/spn.py
index 0fabb9346..d08d825b1 100644
--- a/ansible_collections/lowlydba/sqlserver/plugins/modules/spn.py
+++ b/ansible_collections/lowlydba/sqlserver/plugins/modules/spn.py
@@ -52,9 +52,13 @@ EXAMPLES = r'''
sql_instance_primary: sql-01.myco.io
ag_name: AG_MyDatabase
listener_name: aglMyDatabase
- ip_address: 10.0.20.20,10.1.77.77
- subnet_ip: 255.255.252.0
- subnet_mask: 255.255.255.0
+ ip_address:
+ - 10.0.20.20
+ - 10.1.77.77
+ subnet_ip:
+ - 255.255.252.0
+ subnet_mask:
+ - 255.255.255.0
- name: Add SPN for new AG listener on port 1433
lowlydba.sqlserver.spn: