title: Specify sudo password for Ansible
body: <p>How do I specify a sudo password for Ansible in non-interactive way?</p>
  
  <p>I'm running Ansible playbook like this:</p>
  
  <pre><code>$ ansible-playbook playbook.yml -i inventory.ini \
      --user=username --ask-sudo-pass
  </code></pre>
  
  <p>But I want to run it like this:</p>
  
  <pre><code>$ ansible-playbook playbook.yml -i inventory.ini \
      --user=username` **--sudo-pass=12345**
  </code></pre>
  
  <p>Is there a way? I want to automate my project deployment as much as possible.</p>