title: Add line in visudo after root line
body: <p>I'm testing some Ansible deployment and need to add ansible user to sudoers. Instead of editing I just every time copy this script:</p>
  
  <pre><code>echo 'ansible ALL=(ALL)       NOPASSWD: ALL' | sudo EDITOR='tee -a' visudo
  </code></pre>
  
  <p>Which is adds <code>ansible ALL=(ALL)       NOPASSWD: ALL</code> to the end of file.</p>
  
  <p>How to add it after root line to make it like this via script?</p>
  
  <pre><code>## Allow root to run any commands anywhere
  root    ALL=(ALL)       ALL
  ansible ALL=(ALL)       NOPASSWD: ALL
  </code></pre>