community.general/lib/ansible/plugins/callback
Tobias Wolf 87648f7bdf actionable.py: Do not print next task banner in handler callback (#15698)
Fix actionable callback plugin to not print the banner of the previous
task.

When a handler is executed there is no task banner, so in case it is run,
it will reference the banner from the preceding task.

**Author:** @hvhaugwitz

Test case:

      ---

      - name: actionable filter
        hosts: all
        handlers:
          - name: handler
            command: "true"
        tasks:
          - name: task 1
            file: path=/tmp/test state=touch
            notify: handler
          - name: task 2
            file: path=/tmp/test state=absent
          - name: task 3
            file: path=/tmp/test state=absent
          - name: task 4
            file: path=/tmp/test state=absent
          - name: task 5
            file: path=/tmp/test state=absent
          - name: task 6
            file: path=/tmp/test state=absent

Example output:

BEFORE
------

      PLAY [actionable filter] *******************************************************

      TASK [task 1] ******************************************************************
      changed: [localhost]

      TASK [task 2] ******************************************************************
      changed: [localhost]

      RUNNING HANDLER [handler] ******************************************************

      TASK [task 6] ******************************************************************
      changed: [localhost]

      PLAY RECAP *********************************************************************
      localhost                  : ok=8    changed=3    unreachable=0    failed=0

AFTER
-----

      PLAY [actionable filter] *******************************************************

      TASK [task 1] ******************************************************************
      changed: [localhost]

      TASK [task 2] ******************************************************************
      changed: [localhost]

      RUNNING HANDLER [handler] ******************************************************
      changed: [localhost]

      PLAY RECAP *********************************************************************
      localhost                  : ok=8    changed=3    unreachable=0    failed=0
2016-05-03 11:25:46 -04:00
..
__init__.py On change in diff-mode we don't need to see file content in task output 2016-04-01 18:03:51 +02:00
actionable.py actionable.py: Do not print next task banner in handler callback (#15698) 2016-05-03 11:25:46 -04:00
context_demo.py Some attributes of callbacks aren't in v2. Port plugins to the v2 way to do that 2016-01-29 19:45:12 -08:00
default.py Renaming per-item and retry callbacks 2016-03-18 15:17:43 -04:00
hipchat.py Some attributes of callbacks aren't in v2. Port plugins to the v2 way to do that 2016-01-29 19:45:12 -08:00
json.py Add json callback to be used in replace of the default stdout to print a JSON structure to stdout 2016-02-18 16:39:31 -06:00
log_plays.py fixed signature for init on callbacks 2015-12-01 14:06:54 -08:00
logentries.py Get rid of logentries.to_unicode. 2016-04-30 07:45:51 -07:00
mail.py Revert "make callbacks declare needing whitelisting" 2015-10-22 16:34:51 -04:00
minimal.py output color is now configurable 2015-12-29 17:40:47 -05:00
oneline.py output color is now configurable 2015-12-29 17:40:47 -05:00
osx_say.py fixed signature for init on callbacks 2015-12-01 14:06:54 -08:00
profile_tasks.py changed the output to keep backwards compat 2016-03-03 18:03:02 -05:00
profile_tasks.rst updated docs to show new output 2016-03-03 18:05:39 -05:00
skippy.py Renaming per-item and retry callbacks 2016-03-18 15:17:43 -04:00
slack.py avoid exceptiosn when not being called by CLI 2016-03-17 07:19:35 -07:00
syslog_json.py fixed signature for init on callbacks 2015-12-01 14:06:54 -08:00
timer.py fixed signature for init on callbacks 2015-12-01 14:06:54 -08:00
tree.py fix typo 2016-04-29 15:01:25 -04:00