title: Ansible run same role multiple times using different variable files
body: <p>Supose I have a server that is used to serve one static website (e.g. <code>catpics.com</code>). Using Ansible, I have a <code>base</code> role (used to set up firewall, time, user accounts, etc.), a <code>letsencrypt</code> role (gets TLS certificates for a website), and a <code>webserver</code> role (creates web root directory for a website).</p>
  
  <p>Now I want to host another website (e.g. <code>snakepics.com</code>) on this same server. With this new addition, the <code>base</code> role still needs to be run once, but the <code>letsencrypt</code> and <code>webserver</code> roles now need to be run twice. At this point, I have two variable files:</p>
  
  <p><code>vars/catpics.com</code>:</p>
  
  <pre><code>---
  domain_name: catpics.com
  # and other variables...
  ...
  </code></pre>
  
  <p><code>vars/snakepics.com</code>:</p>
  
  <pre><code>---
  domain_name: snakepics.com
  # and other variables...
  ...
  </code></pre>
  
  <p>Now that I have these two variable files, how do I run both the <code>letsencrypt</code> and  <code>webserver</code> roles twice? (once using the <code>vars/catpics.com</code> variables file, and once using the <code>vars/snakepics.com</code> variables file)</p>