File tree Expand file tree Collapse file tree 5 files changed +5
-8
lines changed Expand file tree Collapse file tree 5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 13
13
# Stop sapstartsrv
14
14
- name : SAPstartsrv - Stop sapstartsrv {{ passed_sap_sid }}-{{ passed_sap_nr }}
15
15
ansible.builtin.shell : |
16
- source ~/.profile && cdexe ; sapcontrol -nr {{ passed_sap_nr }} -function StopService {{ passed_sap_sid }}
16
+ source ~/.profile ; sapcontrol -nr {{ passed_sap_nr }} -function StopService {{ passed_sap_sid }}
17
17
args :
18
18
executable : /bin/bash
19
19
become : true
25
25
# Start sapstartsrv
26
26
- name : SAPstartsrv - Start sapstartsrv {{ passed_sap_sid }}-{{ passed_sap_nr }}
27
27
ansible.builtin.shell : |
28
- source ~/.profile && cdexe ; sapcontrol -nr {{ passed_sap_nr }} -function StartService {{ passed_sap_sid }}
28
+ source ~/.profile ; sapcontrol -nr {{ passed_sap_nr }} -function StartService {{ passed_sap_sid }}
29
29
args :
30
30
executable : /bin/bash
31
31
become : true
Original file line number Diff line number Diff line change 6
6
# Check sapstartsrv
7
7
- name : SAPstartsrv - Check sapstartsrv
8
8
ansible.builtin.shell : |
9
- source ~/.profile && cdexe ; sapcontrol -nr {{ passed_sap_nr }} -function GetSystemInstanceList
9
+ source ~/.profile ; sapcontrol -nr {{ passed_sap_nr }} -function GetSystemInstanceList
10
10
args :
11
11
executable : /bin/bash
12
12
become : true
Original file line number Diff line number Diff line change 17
17
source ~/.profile && sapcontrol -nr {{ passed_sap_nr }} -function {{ vars['sap_control_' + funct_type] }}
18
18
args :
19
19
executable : /bin/bash
20
- warn : false
21
20
become : true
22
21
become_user : " {{ passed_sap_sid | lower }}adm"
23
22
register : sapcontrol_status
Original file line number Diff line number Diff line change 3
3
- name : SAP Profile Update - Get Instance Profile
4
4
ansible.builtin.shell : |
5
5
set -o pipefail
6
- source ~/.profile && cdexe ; sapcontrol -nr {{ sap_update_profile_instance_nr }} -function ParameterValue SAPPROFILE | grep profile
6
+ source ~/.profile ; sapcontrol -nr {{ sap_update_profile_instance_nr }} -function ParameterValue SAPPROFILE | grep profile
7
7
args :
8
8
executable : /bin/bash
9
9
become : true
10
10
become_user : " {{ sap_update_profile_sid | lower }}adm"
11
11
register : get_instance_profile
12
12
13
- - name : setup facts
13
+ - name : SAP Profile Update - Setup facts
14
14
ansible.builtin.set_fact :
15
15
sap_update_profile_default_profile_file_path : " /sapmnt/{{ sap_update_profile_sid }}/profile/DEFAULT.PFL"
16
16
sap_update_profile_instance_profile_file_path : " {{ get_instance_profile.stdout }}"
Original file line number Diff line number Diff line change 42
42
43
43
- name : Yum clean all
44
44
ansible.builtin.command : " yum clean all"
45
- args :
46
- warn : false
47
45
48
46
- name : Yum search sap-
49
47
ansible.builtin.command : " yum -y search sap-"
You can’t perform that action at this time.
0 commit comments