Skip to content

Commit 03dd57e

Browse files
committed
Add become directive for ASCS instance stop and start tasks to ensure proper permissions
1 parent c5807b5 commit 03dd57e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/roles/ha_scs/tasks/manual-restart.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
test_execution_hostname: "{{ hostvars[cluster_status_pre.ascs_node].ansible_hostname }}"
3535

3636
- name: "Test Execution: Stop ASCS Instance"
37+
become: true
3738
become_user: "{{ sap_sid | lower }}adm"
3839
ansible.builtin.shell: sapcontrol -nr {{ scs_instance_number }} -function StopWait 600 2
3940
register: stop_ascs_result
@@ -58,6 +59,7 @@
5859
and cluster_status_test_execution.ers_node == cluster_status_pre.ers_node
5960
6061
- name: "Test Execution: Start ASCS Instance"
62+
become: true
6163
become_user: "{{ sap_sid | lower }}adm"
6264
ansible.builtin.shell: sapcontrol -nr {{ scs_instance_number }} -function StartWait 600 2
6365
register: start_ascs_result

0 commit comments

Comments
 (0)