Skip to content

Commit

Permalink
added a variable for distribution_full_id to pass to setting vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvmicrosoft committed Nov 7, 2024
1 parent 98346b0 commit 7d71ebc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Settings Vars Module for SAP Mounts Role. This uses the AnsibleModule from the Ansible module_utils to set the parameters for the SAP mounts.
"""
from ansible.module_utils.basic import AnsibleModule

def run_module():
"""This function sets the parameters for the SAP mounts.
Input parameters are the SAP SID, HDBADM UID, platform, SIDADM UID, multi SIDs, asesidadm_uid(not required), SCS instance number, PAS instance number, APP instance number, server name and distribution full ID(not required).
Expand Down Expand Up @@ -32,7 +31,7 @@ def run_module():
pas_instance_number=dict(type="str", required=True),
app_instance_number=dict(type="str", required=True),
server_name=dict(type="str", required=True),
distribution_full_id=dict(type="str", required=False),
distribution_full_id=dict(type="str", required=True),
)

result = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
scs_instance_number: "{{ scs_instance_number }}"
pas_instance_number: "{{ pas_instance_number }}"
app_instance_number: "{{ app_instance_number }}"
distribution_full_id: "{{ distribution_full_id }}"
server_name: "{{ item }}"
with_items:
- "{{ query('inventory_hostnames', '{{ sap_sid | upper }}_SCS') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
scs_instance_number: "{{ scs_instance_number }}"
pas_instance_number: "{{ pas_instance_number }}"
app_instance_number: "{{ app_instance_number }}"
distribution_full_id: "{{ distribution_full_id }}"
server_name: "{{ item }}"
with_items:
- "{{ query('inventory_hostnames', '{{ sap_sid | upper }}_SCS') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
scs_instance_number: "{{ scs_instance_number }}"
pas_instance_number: "{{ pas_instance_number }}"
app_instance_number: "{{ app_instance_number }}"
distribution_full_id: "{{ distribution_full_id }}"
server_name: "{{ item }}"
with_items:
- "{{ query('inventory_hostnames', '{{ sap_sid | upper }}_SCS') }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
scs_instance_number: "{{ scs_instance_number }}"
pas_instance_number: "{{ pas_instance_number }}"
app_instance_number: "{{ app_instance_number }}"
distribution_full_id: "{{ distribution_full_id }}"
server_name: "{{ item }}"
with_items:
- "{{ query('inventory_hostnames', '{{ sap_sid | upper }}_SCS') }}"
Expand Down

0 comments on commit 7d71ebc

Please sign in to comment.