hi all, is there a way to make nested loop without using include_tasks I know it's possible to use with_nested, but how convert this manual example to use only one file?
###################### main.yml#####################- name: Run items asynchronously in batch of two items vars: sleep_durations: - 1 - 2 - 3 - 4 - 5 durations: "{{ item }}" include_tasks: execute_batch.yml loop: - "{{ sleep_durations | batch(2) | list }}" ###################### execute_batch.yml#####################- name: Async sleeping for batched_items command: sleep {{ async_item }} async: 45 poll: 0 loop: "{{ durations }}" loop_control: loop_var: "async_item" register: async_results - name: Check sync status async_status: jid: "{{ async_result_item.ansible_job_id }}" loop: "{{ async_results.results }}" loop_control: loop_var: "async_result_item" register: async_poll_results until: async_poll_results.finished retries: 30 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3dd5b92e-6613-4a29-96c3-04cd54913313%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.