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
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
..
action fixed the utf-8 marker (#3162) (#3165) 2021-08-07 15:59:29 +02:00
become Update BOTMETA, fix some plugin authors, improve BOTMETA extra sanity test (#3069) (#3087) 2021-07-26 14:13:28 +02:00
cache [PR #3194/1fec1d0c backport][stable-3] Fix sanity failures (#3195) 2021-08-12 13:46:55 +02:00
callback Enable counter_enabled.py to support batch mode (#3709) (#3731) 2021-11-15 22:13:12 +01:00
connection [PR #3194/1fec1d0c backport][stable-3] Fix sanity failures (#3195) 2021-08-12 13:46:55 +02:00
doc_fragments Add new modules rundeck_job_run and rundeck_job_executions_info (#3521) (#3544) 2021-10-11 07:26:27 +02:00
filter New filter plugin - unicode_normalization (#3359) (#3362) 2021-09-12 14:40:02 +02:00
inventory Added OpenNebula inventory plugin (#810) (#3460) 2021-09-28 17:41:54 +02:00
lookup tss: add option for token authorization (#3327) (#3372) 2021-09-14 19:49:51 +02:00
module_utils Redfish: Do not set the boot source override mode if not provided by the user (#3581) (#3595) 2021-10-22 07:41:09 +02:00
modules Allow LDAP search to run in check mode (#3667) (#3724) 2021-11-13 15:27:43 +01:00