title: Find pattern and replace Ansible
body: <p>I have a file test.xml
  This contain content like bellow</p>
  <pre><code>&lt;logger name=&quot;audit-log&quot; level=&quot;${AUDIT_LEVEL:-OFF}&quot; additivity=&quot;false&quot;&gt;
          &lt;appender-ref ref=&quot;AUDIT-LOG-ASYNC&quot;/&gt;
  </code></pre>
  <p>I wanna use ansible to replace level=&quot;${AUDIT_LEVEL:-OFF}&quot; ==&gt; level=&quot;something&quot;.
  My ansible code like this but it doesn't work.</p>
  <pre><code>    tasks:
        - name: Ansible replace string example
          replace:
            path: test.xml
            regexp: '&quot;${AUDIT_LEVEL:-OFF}&quot;'
            replace: '&quot;something&quot;'
  </code></pre>
  <p>Please help me.
  Thank.</p>