community.general/lib/ansible/plugins
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
..
action When var name is the same as var content, try to template it before reporting that var is not defined. (#13629) 2016-05-01 06:42:09 -07:00
cache Expand tilde after expanding vars 2016-04-05 22:27:07 -07:00
callback actionable.py: Do not print next task banner in handler callback (#15698) 2016-05-03 11:25:46 -04:00
connection winrm connection tweaks for pywinrm (#15584) 2016-04-25 14:20:27 -04:00
filter Rename function bool() as it is a Python built-in function (#15651) 2016-04-28 14:39:35 -04:00
inventory Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
lookup Use to_bytes and to_str instead of str as str is unsafe. 2016-04-04 12:57:32 -07:00
shell Use /var/tmp is user set remote_tmp below /var/tmp. 2016-04-11 21:03:13 -07:00
strategy Don't fail hosts when using any_errors_fatal when ignoring errors 2016-05-01 12:40:09 -04:00
test Reverse boilerplate order because from __future__ must be the first code in the file 2016-03-24 20:08:39 -07:00
vars Making the switch to v2 2015-05-03 21:47:26 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00