mirror of https://github.com/ansible/ansible.git
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.
* 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>
|
1 year ago | |
|---|---|---|
| .. | ||
| _vendor | 2 years ago | |
| ansible_test | 2 years ago | |
| cli | 1 year ago | |
| config | 2 years ago | |
| errors | 2 years ago | |
| executor | 1 year ago | |
| galaxy | 2 years ago | |
| inventory | 2 years ago | |
| inventory_test_data/group_vars | 11 years ago | |
| mock | 2 years ago | |
| module_utils | 1 year ago | |
| modules | 2 years ago | |
| parsing | 1 year ago | |
| playbook | 2 years ago | |
| plugins | 1 year ago | |
| regex | 2 years ago | |
| template | 1 year ago | |
| utils | 1 year ago | |
| vars | 2 years ago | |
| __init__.py | 9 years ago | |
| requirements.txt | 2 years ago | |
| test_context.py | 2 years ago | |
| test_no_tty.py | 2 years ago | |