You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible/executor
Brian Coca 4fa512406b
loop_control "early exit" feature (#62151)
* add a loop_control break_when directive to break out of a loop after any item

* remove loop var as normal exit would

* example usage:

- name: generate a random password up to 10 times, until it matches the policy
  set_fact:
    password: "{{ lookup('password', '/dev/null', chars=character_set, length=length) }}"
  loop: "{{ range(0, 10) }}"
  loop_control:
    break_when:
      - password is match(password_policy)

Co-authored-by: s-hertel <19572925+s-hertel@users.noreply.github.com>
3 months ago
..
discovery Require `from __future__ import annotations` (#81902) 1 year ago
powershell Improve testing for Windows SSH and other connection plugins (#83834) 3 months ago
process Require `from __future__ import annotations` (#81902) 1 year ago
__init__.py Require `from __future__ import annotations` (#81902) 1 year ago
action_write_locks.py Clean up unused imports in core (#79900) 2 years ago
interpreter_discovery.py Typo fixes and other bits and bobs (#83672) 4 months ago
module_common.py Require `from __future__ import annotations` (#81902) 1 year ago
play_iterator.py Fix incorrect rc when executing end_host in rescue (#83522) 5 months ago
playbook_executor.py Correct code comment in PBE to reflect current behavior (#83269) 6 months ago
stats.py Require `from __future__ import annotations` (#81902) 1 year ago
task_executor.py loop_control "early exit" feature (#62151) 3 months ago
task_queue_manager.py Typo fixes and other bits and bobs (#83672) 4 months ago
task_result.py Typo fixes and other bits and bobs (#83672) 4 months ago