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/plugins/callback
patchback[bot] ebda14ba41
Enable counter_enabled.py to support batch mode (#3709) (#3731)
* Enable counter_enabled.py to support serial mode

Enable counter_enabled.py to support batch playbook executions using the serial tag in plays. Currently, the host counter gets reset at the beginning of every task. However, during batch executions we want it to keep track of the previous batch executions and print the host counter based on the previous runs. This proposal keeps track of how many servers have been updated in previous batches and starts the host counter at that tracked value.

```
- hosts: allthethings
  gather_facts: no
  serial:
    - 3
    - 15%
    - 20%
    - 35%
    - 55%
    - 90%
    - 100%
  tasks:
    - name: Ping Hello!
      ping:
        data: "Hello!!!!"
```

* Reset task counter on play start

Reset task counter on play start for batch mode playbook executions.

* Add changelog fragment

* change changelog fragment after feedback

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit f5b4dcc564)

Co-authored-by: Nabheet Sandhu <nabheet@users.noreply.github.com>
2021-11-15 22:13:12 +01:00
..
cgroup_memory_recap.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
context_demo.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
counter_enabled.py Enable counter_enabled.py to support batch mode (#3709) (#3731) 2021-11-15 22:13:12 +01:00
dense.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
diy.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) (#2882) 2021-06-27 09:39:18 +02:00
elastic.py Add elastic callback plugin (#3380) (#3542) 2021-10-11 07:35:09 +02:00
hipchat.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
jabber.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
log_plays.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
loganalytics.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
logdna.py [PR #3194/1fec1d0c backport][stable-3] Fix sanity failures (#3195) 2021-08-12 13:46:55 +02:00
logentries.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
logstash.py Bugfix issue2692 logstash callbackmodule with no attribute options (#3530) (#3550) 2021-10-12 05:07:26 +00:00
mail.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) (#2882) 2021-06-27 09:39:18 +02:00
nrdp.py Add option type validation. (#2878) (#2886) 2021-06-27 10:24:38 +02:00
null.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
opentelemetry.py [opentelemetry][callback] add option to support enabling plugin in the CI (#3498) (#3524) 2021-10-07 22:16:28 +02:00
osx_say.py Initial commit 2020-03-09 09:11:07 +00:00
say.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
selective.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
slack.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
splunk.py callback_splunk - Add user-configurable event correlation id (#2790) (#2817) 2021-06-16 21:02:00 +02:00
sumologic.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
syslog_json.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
unixy.py fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
yaml.py yaml callback: prevent plugin from modifying PyYAML (#3478) (#3494) 2021-10-02 20:22:35 +02:00