title: How to fallback to a default value when ansible lookup fails?
body: <p>I was a little bit surprised to discover that his piece of code fails with an IOError exception instead of defaulting to omitting the value.</p>
  
  <pre><code>#!/usr/bin/env ansible-playbook -i localhost,
  ---
  - hosts: localhost
    tasks:
      - debug: msg="{{ lookup('ini', 'foo section=DEFAULT file=missing-file.conf') | default(omit) }}"
  </code></pre>
  
  <p>How can I load a value without raising an exception?</p>
  
  <p>Please note that the lookup module supports a default value parameter but this one is useless to me because it works only when it can open the file. </p>
  
  <p>I need a default value that works even when the it fails to open the file.</p>