From ead4087fe360ca4bbea0dd9364ed4cb2af8ca72e Mon Sep 17 00:00:00 2001 From: daarrn Date: Mon, 3 Jun 2024 14:24:52 -0600 Subject: [PATCH] updated code examples to show passing in lists instead of single or comma separated strings --- plugins/modules/ag_listener.py | 10 +++++++--- plugins/modules/spn.py | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/plugins/modules/ag_listener.py b/plugins/modules/ag_listener.py index c5ee852d..e835678a 100644 --- a/plugins/modules/ag_listener.py +++ b/plugins/modules/ag_listener.py @@ -74,9 +74,13 @@ 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/plugins/modules/spn.py b/plugins/modules/spn.py index 0fabb934..d08d825b 100644 --- a/plugins/modules/spn.py +++ b/plugins/modules/spn.py @@ -52,9 +52,13 @@ 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: