mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'gh-7432' of https://github.com/hfinucane/ansible into hfinucane-gh-7432
This commit is contained in:
commit
178075489b
2 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,7 @@ class AsyncPoller(object):
|
||||||
self.active = True
|
self.active = True
|
||||||
else:
|
else:
|
||||||
skipped = skipped and res.get('skipped', False)
|
skipped = skipped and res.get('skipped', False)
|
||||||
|
self.runner.vars_cache[host]['ansible_job_id'] = ''
|
||||||
self.results['contacted'][host] = res
|
self.results['contacted'][host] = res
|
||||||
for (host, res) in results['dark'].iteritems():
|
for (host, res) in results['dark'].iteritems():
|
||||||
self.runner.vars_cache[host]['ansible_job_id'] = ''
|
self.runner.vars_cache[host]['ansible_job_id'] = ''
|
||||||
|
|
|
@ -56,3 +56,9 @@
|
||||||
- "'ansible_job_id' in async_result"
|
- "'ansible_job_id' in async_result"
|
||||||
- "'started' in async_result"
|
- "'started' in async_result"
|
||||||
- "'finished' not in async_result"
|
- "'finished' not in async_result"
|
||||||
|
|
||||||
|
- name: test skipped task handling
|
||||||
|
command: /bin/true
|
||||||
|
async: 15
|
||||||
|
poll: 0
|
||||||
|
when: False
|
||||||
|
|
Loading…
Reference in a new issue