title: stripping out characters in ansible
body: <p>We currently have this naming convention in our environment</p>
  
  <pre><code>abc.dev.example.com ## dev servers
  abc.staging.example.com ## staging servers
  abc.example.com ### prod servers
  </code></pre>
  
  <p>As part of my playbook, I have the following which pretty much prints <code>abc.dev.example.com</code></p>
  
  <pre><code>   vars:
      env: dev
     tasks:
     - name: show vars
       debug: msg=abc.{{env | default([])}}.example.com
  </code></pre>
  
  <p>However when i leave the env variables blank, i get the following <code>abc..example.com</code>. I need it to be <code>abc.example.com</code>.</p>
  
  <p>Any idea how to scrip out the extra <code>.</code> character in ansible?</p>