title: Ansible include multiple tasks with loop
body: <p>Task1 - <code>create_user.yml</code>: Creates users via API</p>
  <p>Task2 - <code>add_user_to_group.yml</code>: Adds users to the group via API:</p>
  <p>Task3 - Creates and adds users to the Group by calling/including Task1 &amp; Task2</p>
  <p><strong>Task3</strong></p>
  <pre><code>- name: Creating the User and Adding to the Group ...
    include_tasks: create_user.yml
    loop: &quot;{{ userslist | flatten(levels=1) }}&quot;  
    vars:
      userslist:
        - &quot;{{ ['users'] | product(users) }}&quot;
    loop_control:
      loop_var: tasklists
  
  </code></pre>
  <p>In the above Task3, I have users dictionary as variables for Task1(<code>create_user.yml</code>).</p>
  <p>How do I <code>also</code> include Task2(<code>add_user_to_group.yml</code>) in the above Task3?.</p>
  <p>We can loop over multiple <code>include_tasks</code> for Task1 and Task2 but I l already have a loop in Task3.</p>
  <p>I want to keep the Task1 and Task2 independent of each other and so not including Task2 in Task1.</p>
  <p>How do I include multiple tasks in Task3 in my case?</p>