Skip to content

Commit

Permalink
Merge pull request #27 from crweller/dev
Browse files Browse the repository at this point in the history
solution to issue#25
  • Loading branch information
rhmk authored Jan 14, 2025
2 parents a48fcd2 + 5706c1b commit 2295d51
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions roles/sap_control/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@
# Get SAP Facts
- name: Run sap_facts module to gather SAP facts
community.sap_libs.sap_system_facts:
param: "{{ sap_facts_param }}"
# param: "{{ sap_facts_param }}"
register: sap_facts_register

- name: Debug facts
- name: Debug result from sap_libs.sap_system_facts
ansible.builtin.debug:
msg: "{{ sap_facts_register.sap_facts }}"
msg: "{{ sap_facts_register.ansible_facts.sap }}"
verbosity: 1

- name: pause for 10 Seconds
ansible.builtin.pause:
Expand Down
6 changes: 3 additions & 3 deletions roles/sap_control/tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
vars:
sap_control_execute_sid: "{{ item.SID }}"
sap_control_execute_type: "{{ item.Type }}"
sap_control_execute_instance_nr: "{{ item.InstanceNumber }}"
sap_control_execute_instance_nr: "{{ item.NR }}"
sap_control_execute_instance_type: "{{ item.InstanceType }}"
ansible.builtin.include_tasks: "sapcontrol.yml"
loop: "{{ sap_facts_register.sap_facts }}"
loop: "{{ sap_facts_register.ansible_facts.sap }}"
when:
- "item.Type == sap_type"
- "item.InstanceType | lower == sap_type | lower"

0 comments on commit 2295d51

Please sign in to comment.