Make use of Jinja tests 'finished' (#43233)

And also used 'changed' and 'failed' tests while we are at it.
This commit is contained in:
Dag Wieers 2018-07-30 10:41:49 +02:00 committed by GitHub
commit 12e7e9650e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 21 deletions

View file

@ -75,7 +75,7 @@
- name: assert task was successfully started
assert:
that:
- fnf_task.started
- fnf_task.started == 1
- "'ansible_job_id' in fnf_task"
- name: 'check on task started as a "fire-and-forget"'