Skip to content
Snippets Groups Projects
Commit ed516f18 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

improveworsening service detections

parent af7831df
No related branches found
No related tags found
1 merge request!335Version pinning and enableing the upgrade role to run at all times
......@@ -7,16 +7,17 @@
- name: remove conflicting packages if kernel is going to changed
block:
- name: see if we have a lustre-client service
- name: see if we have a lustre-client service or not
shell: systemctl status lustre-client
register: lustreStatus
changed_when: False
failed_when: '"could not be found" in lustreStatus.stdout'
failed_when: '"could not" in lustreStatus.stderr'
ignore_errors: yes
- name: stop lustre
service: name=lustre-client state=stopped
become: true
when: lustreStatus
when: not lustreStatus.failed
- name: remove conflicting packages if kernel is going to changed
package:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment