ansible/test/units
James Cammarata 51b33b79c0
T woerner max concurrent (#60702)
* play, block, task: New attribute forks

With this it is possible to limit the number of concurrent task runs.
forks can now be used in play, block and task. If forks is set in different
levels in the chain, then the smallest value will be used for the task.

The attribute has been added to the Base class as a list to easily provide
all the values that have been set in the different levels of the chain.

A warning has been added because of the conflict with run_once. forks will
be ignored in this case.

The forks limitation in StrategyBase._queue_task is not used for the free
strategy.

Signed-off-by: Thomas Woerner <twoerner@redhat.com>

* Handle forks in free strategy

The forks attribute for the free strategy is handled in run in the free
StrategyModule. This is dony by counting the amount of tasks where the uuid
is the same as the current task, that should be queued next. If this amount
is bigger or equal to the forks attribute from the chain (task, block,
play), then it will be skipped to the next host. Like it is also done with
blocked_hosts.

Signed-off-by: Thomas Woerner <twoerner@redhat.com>

* Test cases for forks with linear and free strategy

With ansible_python_interpreter defined in inventory file using
ansible_playbook_python.

Signed-off-by: Thomas Woerner <twoerner@redhat.com>

* Changing forks keyword to throttle and adding some more docs
2019-08-28 18:47:39 -05:00
..
cli ansible-galaxy - define multiple galaxy instances in ansible.cfg (#60553) 2019-08-21 07:49:05 +10:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config fixes to config manager (#58530) 2019-07-17 10:39:30 -04:00
contrib Fix vmware_inventory unit tests so they run. 2018-10-09 22:52:04 -07:00
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 2018-12-04 12:32:02 -05:00
executor Support relative imports in AnsiballZ. (#61196) 2019-08-27 18:11:21 -07:00
galaxy Support galaxy v3/autohub API in ansible-galaxy (#60982) 2019-08-28 16:59:34 -04:00
inventory_test_data/group_vars
mock Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
module_utils Meraki - Enable API call rate limiting for requests (#54827) 2019-08-27 16:32:09 -04:00
modules New storage/netapp module - na_ontap_kerberos_realm (#59923) 2019-08-28 18:03:45 -04:00
parsing Properly JSON encode AnsibleUnsafe, using a pre-processor (#60602) 2019-08-26 09:08:22 -05:00
playbook unit tests: remove unused imports (#60462) 2019-08-13 19:21:43 +02:00
plugins T woerner max concurrent (#60702) 2019-08-28 18:47:39 -05:00
regex Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
template unit tests: remove unused imports (#60462) 2019-08-13 19:21:43 +02:00
utils add subdir support to collection loading (#60682) 2019-08-21 10:45:04 +01:00
vars Fix inventory cache interface (#50446) 2019-03-06 12:12:35 -06:00
__init__.py
test_constants.py
test_context.py Unit tests: remove unused imports (#59740) 2019-07-29 22:10:13 +02:00