title: Remove Exact Block of lines in config file with Ansible
body: <p>I want to delete a block of text with ansible from a config file.</p>
  
  <pre><code>- name: Remove Block Of Text
     blockinfile:
       path: /oracle/config/domains/soa_domain/config/config.xml
       block: |
        &lt;file-store&gt;
          &lt;name/&gt;
          &lt;directory/&gt;
          &lt;target&gt;AdminServer&lt;/target&gt;
        &lt;/file-store&gt;
       state: absent
  </code></pre>
  
  <p>Nothing happens. Hope someone has an answer.</p>
  
  <p>Kind Regards</p>
  
  <p>M</p>