title: ansible playbook role variable
body: <p>fairly new to ansible.
  having following role e.g.: <code>my-role</code> - i have trouble overriding the default variables from the playbook</p>
  
  <p>follwing files:</p>
  
  <pre><code>my-role/tasks/main.yml
  my-role/defaults/main.yml
  sample-playbook.yml
  </code></pre>
  
  <p>my-role/tasks/main.yml</p>
  
  <pre><code>- name: "Add Test User"
    user: name={{ my_config_test_user }} comment="{{ my_config_test_user }}" group={{ my_config_test_user }}
  </code></pre>
  
  <p>my-role/defaults/main.yml</p>
  
  <pre><code>my_config_test_user: "test"
  </code></pre>
  
  <p>playbook:</p>
  
  <pre><code>- name: TestCase
    hosts: all
    remote_user: root
    vars:
      my_config_test_user: "override"
    roles:
      - my-role
  </code></pre>
  
  <p>in the task the value of <code>my_config_test_user</code> stays <code>test</code> instead of my expected result <code>override</code></p>
  
  <p>any hints?</p>
  
  <p>regards</p>