title: Ansible get the username from the command line
body: <p>In my playbooks I reference username (exclusively its "ubuntu") a lot.</p>
  
  <p>Is there a built in way to say "get it from the value passed in the command line"?</p>
  
  <p>I know I can do</p>
  
  <pre><code>ansible-playbook &lt;task&gt; -u &lt;user&gt; -K --extra-vars "user=&lt;user&gt;"
  </code></pre>
  
  <p>and then I can use <code>{{user}}</code> in the playbook, but it feels odd defining the user twice.</p>