Skip to content

Commit 2295d51

Browse files
authored
Merge pull request #27 from crweller/dev
solution to issue#25
2 parents a48fcd2 + 5706c1b commit 2295d51

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

roles/sap_control/tasks/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@
8787
# Get SAP Facts
8888
- name: Run sap_facts module to gather SAP facts
8989
community.sap_libs.sap_system_facts:
90-
param: "{{ sap_facts_param }}"
90+
# param: "{{ sap_facts_param }}"
9191
register: sap_facts_register
9292

93-
- name: Debug facts
93+
- name: Debug result from sap_libs.sap_system_facts
9494
ansible.builtin.debug:
95-
msg: "{{ sap_facts_register.sap_facts }}"
95+
msg: "{{ sap_facts_register.ansible_facts.sap }}"
96+
verbosity: 1
9697

9798
- name: pause for 10 Seconds
9899
ansible.builtin.pause:

roles/sap_control/tasks/prepare.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
vars:
1414
sap_control_execute_sid: "{{ item.SID }}"
1515
sap_control_execute_type: "{{ item.Type }}"
16-
sap_control_execute_instance_nr: "{{ item.InstanceNumber }}"
16+
sap_control_execute_instance_nr: "{{ item.NR }}"
1717
sap_control_execute_instance_type: "{{ item.InstanceType }}"
1818
ansible.builtin.include_tasks: "sapcontrol.yml"
19-
loop: "{{ sap_facts_register.sap_facts }}"
19+
loop: "{{ sap_facts_register.ansible_facts.sap }}"
2020
when:
21-
- "item.Type == sap_type"
21+
- "item.InstanceType | lower == sap_type | lower"

0 commit comments

Comments
 (0)