|
53 | 53 | # - stop_sap_hana
|
54 | 54 | # - start_sap_hana
|
55 | 55 |
|
56 |
| -- name: Set function list facts |
57 |
| - ansible.builtin.set_fact: |
58 |
| - sap_control_act_type: "{{ sap_control_function.split('_')[0] | lower }}" |
59 |
| - sap_control_get_type: "{{ sap_control_function.split('_')[1] | lower }}" |
60 |
| - sap_control_sap_type: "{{ sap_control_function.split('_')[2] | lower }}" |
61 |
| - |
62 |
| -- name: Set sap_facts_param |
63 |
| - ansible.builtin.set_fact: |
64 |
| - sap_facts_param: "{{ sap_control_get_type }}" |
| 56 | +# These facts were only used for the sap_system_facts module, but it doesn't accept sap_facts_param anymore. |
| 57 | +# - name: Set function list facts |
| 58 | +# ansible.builtin.set_fact: |
| 59 | +# sap_control_act_type: "{{ sap_control_function.split('_')[0] | lower }}" |
| 60 | +# sap_control_get_type: "{{ sap_control_function.split('_')[1] | lower }}" |
| 61 | +# sap_control_sap_type: "{{ sap_control_function.split('_')[2] | lower }}" |
| 62 | + |
| 63 | +# - name: Set sap_facts_param |
| 64 | +# ansible.builtin.set_fact: |
| 65 | +# sap_facts_param: "{{ sap_control_get_type }}" |
| 66 | + |
| 67 | +# - name: Set sap_facts_param |
| 68 | +# ansible.builtin.set_fact: |
| 69 | +# sap_facts_param: "{{ sap_control_sap_type }}" |
| 70 | +# when: |
| 71 | +# - "'all' in sap_control_function" |
| 72 | +# - "'sap' not in sap_control_sap_type" |
65 | 73 |
|
66 |
| -- name: Set sap_facts_param |
67 |
| - ansible.builtin.set_fact: |
68 |
| - sap_facts_param: "{{ sap_control_sap_type }}" |
69 |
| - when: |
70 |
| - - "'all' in sap_control_function" |
71 |
| - - "'sap' not in sap_control_sap_type" |
| 74 | +# # When not all |
| 75 | +# - name: Set sap_facts_param |
| 76 | +# ansible.builtin.set_fact: |
| 77 | +# sap_facts_param: "{{ sap_sid }}" |
| 78 | +# when: |
| 79 | +# - "'all' not in sap_control_function" |
72 | 80 |
|
73 |
| -# When not all |
74 |
| -- name: Set sap_facts_param |
75 |
| - ansible.builtin.set_fact: |
76 |
| - sap_facts_param: "{{ sap_sid }}" |
77 |
| - when: |
78 |
| - - "'all' not in sap_control_function" |
| 81 | +# # Get SAP Info |
| 82 | +# - name: Get SAP Info |
| 83 | +# vars: |
| 84 | +# sap_info_get_function: "get_{{ sap_control_get_type }}_{{ sap_control_sap_type }}" |
| 85 | +# ansible.builtin.include_role: |
| 86 | +# name: roles/sap_info |
79 | 87 |
|
80 | 88 | # # Get SAP Info
|
81 | 89 | # - name: Get SAP Info
|
|
0 commit comments