title: How can I skip role in Ansible?
body: <p>I have this playbook:</p>
  
  <pre><code>  roles:
      - { role: common}
      - { role: mariadb}
      - { role: wordpress}
  </code></pre>
  
  <p>What is want is in every role I want to have first task as some conditional which if true then I want to skip the whole role and playbook continues to next.</p>
  
  <p>Now I can use <code>when</code> like this:</p>
  
  <pre><code>  roles:
      - { role: common, when: mvar is False }
  </code></pre>
  
  <p>But for that I have to evaluate the <code>mvar</code> in playbook itself but for that <code>mvar</code> I need all other vars etc. stuff which is in that role itself. So it will be easier for me to do in role.</p>
  
  <p>Is there any way?</p>