-
Notifications
You must be signed in to change notification settings - Fork 24.2k
Closed
Labels
affects_2.14bot_closedfeatureThis issue/PR relates to a feature request.This issue/PR relates to a feature request.has_prThis issue has an associated PR.This issue has an associated PR.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.
Description
SUMMARY
It would be quite useful if you can loop over more than one single tasks.
For instance if you have to poll a remote system for some progress and at the same time you want to push this progress to another backend, you could be doing:
- hosts: localhost
tasks:
- name: Start a long-running task
uri:
url: https://some-service/v1/put/new_job
body: { foo: bar }
register: new_job
- until: job_status.json.message in ['Finished', 'Failed']
block:
- name: Get job status
uri:
url: https://some-service/v1/get/new_job
register: job_status
- name: Report job status to web service
uri:
url: https://backend-system/v1/post/job_status
body: '{{ job_status.json }}'There are many uses to this.
ISSUE TYPE
- Feature Idea
COMPONENT NAME
Core
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affects_2.14bot_closedfeatureThis issue/PR relates to a feature request.This issue/PR relates to a feature request.has_prThis issue has an associated PR.This issue has an associated PR.support:coreThis issue/PR relates to code supported by the Ansible Engineering Team.This issue/PR relates to code supported by the Ansible Engineering Team.