Merge "ara: check for return code instead of succeed"

This commit is contained in:
Zuul 2018-03-05 16:02:09 +00:00 committed by Gerrit Code Review
commit fd35b1b9aa
1 changed files with 2 additions and 2 deletions

View File

@ -12,13 +12,13 @@
- ara_save_database | bool
- name: Check for ARA install
command: which ara
command: bash -c "type -p ara"
ignore_errors: yes
register: ara_command_type
when: ara_db_stat.stat.exists
- when:
- ara_command_type | succeeded
- ara_command_type.rc == 0
- not ara_command_type | skipped
block:
# Always generate (true), never (false) or only on failure ('failure')