Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution to issue#25 #27

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe direkt deletion instead of commenting out the line

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 }}"
Wabri marked this conversation as resolved.
Show resolved Hide resolved
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"
Loading