Skip to content

Commit

Permalink
sap_swpm: Change shell to command module for process check and set ch…
Browse files Browse the repository at this point in the history
…anged_when to false to fix lint errors
  • Loading branch information
Rob Dobozy committed Jan 14, 2025
1 parent 44151af commit 1520919
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/sap_swpm/tasks/post_install/sum_push_to_finish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@

# Check if the SUMup process is running, give it 5 minutes to start
- name: Check if SAPup_real process is running (wait for 5 minutes until it starts)
ansible.builtin.shell: pgrep -c -u "{{ sap_swpm_sid | lower }}adm" -f SAPup_real
ansible.builtin.command: pgrep -c -u "{{ sap_swpm_sid | lower }}adm" -f SAPup_real
register: _sapup_process
retries: 5
delay: 60
until: _sapup_process.rc == 0 and _sapup_process.stdout|int > 0
failed_when: _sapup_process.rc != 0
changed_when: false

- name: Print SUM monitoring and action URLs
ansible.builtin.debug:
Expand Down

0 comments on commit 1520919

Please sign in to comment.