diff options
author | Tobias Henkel <tobias.henkel@bmw.de> | 2019-01-19 18:07:35 +0100 |
---|---|---|
committer | Paul Belanger <pabelanger@redhat.com> | 2019-05-16 15:07:26 -0400 |
commit | 5b31159717f9db9a30674b35eb220106dda36ed7 (patch) | |
tree | 371399583e5fb224523362550f3bd25cea973fe4 /zuul/ansible/base/callback/zuul_stream.py | |
parent | 9f7c642ae1dc5ac7de1cb0ff5c7e32d6426bd1b3 (diff) | |
download | zuul-5b31159717f9db9a30674b35eb220106dda36ed7.tar.gz |
Support Ansible 2.8
Ansible has released 2.8 and now zuul also supports it. We've had to
update zuul_console to deal with new tasks stats, along with
gather_facts also now being exposed directly to the job.
Change-Id: Ifa4be7cf408b1f05b0f985fa0c9a5e3947858078
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Diffstat (limited to 'zuul/ansible/base/callback/zuul_stream.py')
-rw-r--r-- | zuul/ansible/base/callback/zuul_stream.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/zuul/ansible/base/callback/zuul_stream.py b/zuul/ansible/base/callback/zuul_stream.py index b63e440c2..46a774c37 100644 --- a/zuul/ansible/base/callback/zuul_stream.py +++ b/zuul/ansible/base/callback/zuul_stream.py @@ -514,13 +514,24 @@ class CallbackModule(default.CallbackModule): hosts = sorted(stats.processed.keys()) for host in hosts: t = stats.summarize(host) - self._log( + msg = ( "{host} |" " ok: {ok}" " changed: {changed}" " unreachable: {unreachable}" " failed: {failures}".format(host=host, **t)) + # NOTE(pabelanger) Ansible 2.8 added rescued support + if 'rescued' in t: + # Even though skipped was in stable-2.7 and lower, only + # stable-2.8 started rendering it. So just lump into rescued + # check. + msg += " skipped: {skipped} rescued: {rescued}".format(**t) + # NOTE(pabelanger) Ansible 2.8 added ignored support + if 'ignored' in t: + msg += " ignored: {ignored}".format(**t) + self._log(msg) + # Add a spacer line after the stats so that there will be a line # between each playbook self._log("") |