title: ansible playbook execute in this order: task, role, task, role, task
body: <p>Forgive my newbie question, but I would like to execute three tasks and use two roles in a playbook, in the order:</p>
  
  <ol>
  <li>task </li>
  <li>role</li>
  <li>task</li>
  <li>role</li>
  <li>task</li>
  </ol>
  
  <p>This is what I have so far (task, role, task):</p>
  
  <pre><code>---
  - name: Task Role Task
    hosts: 127.0.0.1
    connection: local
    gather_facts: false
  
    pre_tasks:
     - name: Do this task first
       foo:
  
    roles:
    - role: this role second
      foo:
  
    post_tasks: 
     - name: Do this task third
       foo:
  </code></pre>
  
  <p>Is this possible or should I be changing my tasks into roles?</p>