I have a play which has two tasks, something looks like the following 
snippet of code. The Task2 has dependency on the result of Task 1. And I 
want to loop over the two tasks, is it feasible? It appears the 
‘with_items’ only loops over one task. The ‘include + with_items’ seems to 
be a solution, but it gets deprecated since Ansible 1.6. Do you have other 
solutions? Please advise.

 

- name: Task 1

  Module 1:

  register: result

 

- name: Task 2

  Module 2:

    Parameter:  “{{ result }}” 

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2fbfed74-23bb-4152-b588-836caafdc4b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to