zuul/zuul/ansible
James E. Blair d6f1fd13fa Temporarily override Ansible linear strategy (1/2)
The log streaming callback is not being called in the same way
in Ansible 2.5 as it was in 2.3.  In particular, in some cases
different Task objects are used for different hosts.  This,
combined with the fact that the callback is only called once for
a given task means that in these cases we are unable to supply
the zuul_log_id to the Task object for the second host on a task.

To correct this, a local copy of the linear strategy plugin is
added, with the change that for every host-task, it calls either
the normal on_task_start callback, or a new zuul_task_start
callback.  This ensures that we are able to set up log streaming
on every host-task.

We plan to move to a different system for establishing log streaming
soon so that we don't have to keep carrying this patched plugin.

This first commit just adds linear.py directly from the 2.5.4 release
of Ansible.

Change-Id: I5ae546b76c5c55a914c99e5bde179e55529cc37a
Story: 2002528
Task: 22067
2018-06-13 15:38:30 -07:00
..
action Merge "Disable action and lookup plugins from 2.4" 2018-06-07 15:02:30 +00:00
callback Fix command tasks with free play strategy 2018-06-12 08:54:08 -07:00
filter Be explicit about legacy var additions/omissions 2017-10-17 18:28:43 +00:00
library Fix broken command tasks in handlers 2018-06-12 08:53:59 -07:00
lookup Merge "Disable action and lookup plugins from 2.4" 2018-06-07 15:02:30 +00:00
strategy Temporarily override Ansible linear strategy (1/2) 2018-06-13 15:38:30 -07:00
__init__.py Ansible launcher: add zuul_runner module 2016-05-12 11:37:19 -07:00
logconfig.py Add cherrypy to built-in logging config 2018-06-04 12:58:54 -07:00
paths.py Check out more appropriate branches of role and playbook repos 2018-04-05 10:41:51 -07:00