Skip to content

Commit b38e6d1

Browse files
committed
collection: legacy syntax fixes
1 parent 0ee7de2 commit b38e6d1

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

roles/sap_control/tasks/functions/restart_sapstartsrv.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Stop sapstartsrv
1414
- name: SAPstartsrv - Stop sapstartsrv {{ passed_sap_sid }}-{{ passed_sap_nr }}
1515
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 }}
1717
args:
1818
executable: /bin/bash
1919
become: true
@@ -25,7 +25,7 @@
2525
# Start sapstartsrv
2626
- name: SAPstartsrv - Start sapstartsrv {{ passed_sap_sid }}-{{ passed_sap_nr }}
2727
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 }}
2929
args:
3030
executable: /bin/bash
3131
become: true

roles/sap_control/tasks/functions/sapstartsrv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Check sapstartsrv
77
- name: SAPstartsrv - Check sapstartsrv
88
ansible.builtin.shell: |
9-
source ~/.profile && cdexe; sapcontrol -nr {{ passed_sap_nr }} -function GetSystemInstanceList
9+
source ~/.profile ; sapcontrol -nr {{ passed_sap_nr }} -function GetSystemInstanceList
1010
args:
1111
executable: /bin/bash
1212
become: true

roles/sap_control/tasks/sapcontrol.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
source ~/.profile && sapcontrol -nr {{ passed_sap_nr }} -function {{ vars['sap_control_' + funct_type] }}
1818
args:
1919
executable: /bin/bash
20-
warn: false
2120
become: true
2221
become_user: "{{ passed_sap_sid | lower }}adm"
2322
register: sapcontrol_status

roles/sap_profile_update/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
- name: SAP Profile Update - Get Instance Profile
44
ansible.builtin.shell: |
55
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
77
args:
88
executable: /bin/bash
99
become: true
1010
become_user: "{{ sap_update_profile_sid | lower }}adm"
1111
register: get_instance_profile
1212

13-
- name: setup facts
13+
- name: SAP Profile Update - Setup facts
1414
ansible.builtin.set_fact:
1515
sap_update_profile_default_profile_file_path: "/sapmnt/{{ sap_update_profile_sid }}/profile/DEFAULT.PFL"
1616
sap_update_profile_instance_profile_file_path: "{{ get_instance_profile.stdout }}"

roles/sap_rhsm/tasks/rhsm_register.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242

4343
- name: Yum clean all
4444
ansible.builtin.command: "yum clean all"
45-
args:
46-
warn: false
4745

4846
- name: Yum search sap-
4947
ansible.builtin.command: "yum -y search sap-"

0 commit comments

Comments
 (0)