Can items in Ansible loop or with_items be processed concurrently?

1.1k views Asked by At
- block:
    - name: ensure backup directory exists
      win_file:
        path: "{{ BACKUP }}"
        state: directory
        recurse: yes
    - include_tasks: increment_backup.yml
      with_items: "{{ filelist.stdout_lines }}"
  when: work_status.stat.exists

I just want these items be dealt with concurrently. For example, there are 10 items within filelist.stdout_lines. What I wanna do is these 10 items can be processed parallel. It's not task level. It's within one single task. But I didn't find any clues from Ansible documents.

Does anybody know about this?

0

There are 0 answers