New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] loop_control until feature #62151
base: devel
Are you sure you want to change the base?
Conversation
remove loop var as normal exit would
Looks like a very nice way to handle these kind of loops! |
Not sure that these changes would fix #46203 I tested @bcoca's branch locally with this playbook: - hosts: localhost
gather_facts: false
tasks:
- name: testing block looping
block:
- debug:
msg: "{{ item }}"
loop:
- 1
- 2
- 3
loop_control:
until: item > 2 Which yields:
Am I missing something? |
Ah I see what I was missing, this fix would only apply to - hosts: localhost
gather_facts: false
tasks:
- name: testing inlcude looping
include_tasks: some_tasks.yml
loop:
- 1
- 2
- 3
loop_control:
until: item > 2 |
Can you guys please fix this, the people are really hoping for this feature. |
I've had some success using |
ISSUE TYPE
posisbly fixes #46203 by providing 'until for includes'
COMPONENT NAME
core