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
Nabheet Sandhu f5b4dcc564
Enable counter_enabled.py to support batch mode (#3709)
* 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>
2021-11-15 21:39:51 +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) 2021-08-07 15:02:21 +02:00
counter_enabled.py Enable counter_enabled.py to support batch mode (#3709) 2021-11-15 21:39:51 +01:00
dense.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
diy.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
elastic.py [callback][elastic] enrich stacktrace errors (#3556) 2021-10-14 21:19:02 +02:00
hipchat.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
jabber.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
log_plays.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
loganalytics.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
logdna.py Fix new devel sanity errors. (#3194) 2021-08-12 12:07:50 +02:00
logentries.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
logstash.py Bugfix issue2692 logstash callbackmodule with no attribute options (#3530) 2021-10-11 22:55:18 +02:00
mail.py Replace ansible.module_utils._text by ansible.module_utils.common.text.converters (#2877) 2021-06-26 23:59:11 +02:00
nrdp.py Add option type validation. (#2878) 2021-06-27 09:57:51 +02:00
null.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
opentelemetry.py [opentelemetry][callback] Support loops error handling (#3599) 2021-10-27 07:51:49 +02:00
osx_say.py Initial commit 2020-03-09 09:11:07 +00:00
say.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
selective.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
slack.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
splunk.py callback_splunk - Add user-configurable event correlation id (#2790) 2021-06-16 22:28:09 +04:30
sumologic.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
syslog_json.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
unixy.py fixed the utf-8 marker (#3162) 2021-08-07 15:02:21 +02:00
yaml.py yaml callback: prevent plugin from modifying PyYAML (#3478) 2021-10-01 22:42:39 +02:00