title: Difference in import_role and include_role in terms of variable precedence
body: <p>I have defined a variable <code>var_for_all</code> in <code>group_vars/all.yml</code> and another one <code>variables_role_var1</code> in <code>roles/../vars/main.yml</code>. Overriding them in playbook using <code>import_role</code> and <code>include_role</code> seems to follow different precedence rules and results different values. </p>
  
  <p>I was under the assumption that first role block will output below debug message:</p>
  
  <pre><code>"msg": "var_for_all = From group_vars/all.yml, variables_role_var1 = from role vars/ dir"
  </code></pre>
  
  <p>But getting output as:</p>
  
  <pre><code>"msg": "var_for_all = From playbook import_role_test2, variables_role_var1 = from role vars/ dir"
  </code></pre>
  
  <p>Could anyone please explain the behavior or point me if I am missing something?
  Have gone thorough <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable" rel="nofollow noreferrer">variable precedence</a>, <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse.html#dynamic-vs-static" rel="nofollow noreferrer">Dynamic vs Static</a> and <a href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#playbooks-reuse-roles" rel="nofollow noreferrer">Roles</a>.</p>
  
  <p>my_playbook.yml</p>
  
  <pre><code>- hosts: localhost
    gather_facts: no
    tasks:
      - name: import_role_test1
        import_role:
          name: variables
          tasks_from: precedence
  
      - name: import_role_test2
        import_role:
          name: variables
          tasks_from: precedence
        vars: 
          var_for_all: From playbook import_role_test2
          variables_role_var1: From playbook import_role_test2
  
      - name: include_role_test3
        include_role:
          name: variables
          tasks_from: precedence
        vars: 
          var_for_all: From playbook import_role_test3
          variables_role_var1: From playbook import_role_test3
  </code></pre>