Skip to content
Snippets Groups Projects
Commit bf32bbe0 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: gracefully handle command errors while checking for TSM systemd unitfile

parent 328c0372
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@
#command: systemctl list-unit-files | grep dsmcad
command: systemctl list-unit-files dsmcad.service
register: tsm_client_installed
failed_when:
- '"0 unit files listed." not in tsm_client_installed.stdout'
- '"1 unit files listed." not in tsm_client_installed.stdout'
- tsm_client_installed.rc >= 2
#ignore_errors: true
# - name: debug
# debug:
# msg: "tsm_client_installed: {{ tsm_client_installed }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment