Skip to content

Conversation

@crweller
Copy link
Contributor

see my comment on issue#30

Start/stop SAP instances in the right order.

@rhmk
Copy link
Member

rhmk commented May 16, 2025

LGTM

Copy link

@marcelmamula marcelmamula left a comment

Choose a reason for hiding this comment

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

LGTM.

Consider cutting down line length in future if you repeat some code like this.

- name: Prepare - Sort sap_facts_register by sap_control_instance_type_sortorder
  ansible.builtin.set_fact:
    sorted_sap_facts: "{{ (sorted_sap_facts | default([]) | unique) + ( __type_list | difference(sorted_sap_facts | default([]))) }}"
  loop: "{{ sap_control_instance_type_sortorder | reverse if funct_type == 'stop' else sap_control_instance_type_sortorder }}"
  vars:
    __type_list: "{{ sap_facts_register.ansible_facts.sap | selectattr('TYPE', 'equalto', item) | list }}"
  when: 
    - __type_list | length > 0

@crweller
Copy link
Contributor Author

Thanks, will do.

@rhmk rhmk merged commit 58a17b4 into sap-linuxlab:dev Jul 22, 2025
1 check passed
@sean-freeman
Copy link
Member

@crweller AAS?

@crweller
Copy link
Contributor Author

crweller commented Aug 5, 2025

@sean-freeman The sap_libs/sap_system_facts module does not contain a type AAS.
Only the types listed here are returned.
Reason is, that the services, which are used to identify the type, are the same on all application servers regardless of the naming as AAS or PAS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants