mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
FEATURE: adding variable serial batches
This feature changes the scalar value of `serial:` to a list, which allows users to specify a list of values, so batches can be ramped up (commonly called "canary" setups): - hosts: all serial: [1, 5, 10, "100%"] tasks: ...
This commit is contained in:
parent
3a83333ef2
commit
159aa26b36
8 changed files with 176 additions and 25 deletions
|
@ -87,7 +87,7 @@ class Play(Base, Taggable, Become):
|
|||
_any_errors_fatal = FieldAttribute(isa='bool', default=False, always_post_validate=True)
|
||||
_force_handlers = FieldAttribute(isa='bool', always_post_validate=True)
|
||||
_max_fail_percentage = FieldAttribute(isa='percent', always_post_validate=True)
|
||||
_serial = FieldAttribute(isa='string', always_post_validate=True)
|
||||
_serial = FieldAttribute(isa='list', default=[], always_post_validate=True)
|
||||
_strategy = FieldAttribute(isa='string', default='linear', always_post_validate=True)
|
||||
|
||||
# =================================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue