1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
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
..
cli Merge pull request #15656 from abadger/ziploader-namespace 2016-04-29 11:12:11 -07:00
compat 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
config
errors Add options to make includes 'static' 2016-03-24 10:12:51 -04:00
executor Fix the mapping of module_name to Locks 2016-04-29 20:47:51 -07:00
galaxy API now connects to server lazily (#15632) 2016-04-28 23:28:02 -04:00
inventory Fix inventory on python3 2016-04-30 07:28:41 -07:00
module_utils Add get_distribution_Archlinux (#15696) 2016-05-03 08:20:08 -07:00
modules Update core submodule ref to fix docs build 2016-05-03 07:53:27 -07:00
new_inventory fix some warning of undefined name. 2015-10-09 12:43:42 +08:00
parsing make vi the default editor if no EDITOR 2016-05-03 09:39:19 -04:00
playbook Treat "static: yes/no" with higher priority than "task_includes_static" in ansible.cfg 2016-05-03 12:15:13 +02:00
plugins actionable.py: Do not print next task banner in handler callback (#15698) 2016-05-03 11:25:46 -04:00
template moved last utils.debug to display.debug 2016-04-08 16:00:36 -04:00
utils Merge pull request #15618 from chouseknecht/docker_doc_frag 2016-04-29 01:27:57 -04:00
vars Fix var precedence bug introduced in ff9f5d7d 2016-04-19 12:40:31 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py add centrify dzdo escalation (#15219) 2016-04-25 11:24:26 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt