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/test
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
..
integration loop_control "early exit" feature (#62151) 3 months ago
lib/ansible_test ansible-test - Reduce scope of empty-init test (#83878) 3 months ago
sanity ansible-test - Reduce scope of empty-init test (#83878) 3 months ago
support Typo fixes and other bits and bobs (#83672) 4 months ago
units loop_control "early exit" feature (#62151) 3 months ago