title: programmatically create sudo rules for running ansible-playbook
body: <p>How could I create a list for all possible commands an <code>ansible-playbook</code> is using so that I could create a <code>sudoers</code> file?</p>
  <p>For testing the playbooks, temporally I create an entry in the <code>/etc/sudoers.d</code>:</p>
  <pre><code>tempuser ALL=(ALL:ALL) NOPASSWD:ALL
  </code></pre>
  <p>But is there a plugin or way to get like the list of commands so that I could later create a list like</p>
  <pre><code>tempuser ALL= NOPASSWD:  /bin/systemctl start  mariadb.service
  ...
  </code></pre>
  <p>Any ideas?</p>