Using Ansible 2.8.0 on Centos 7 with Python 2.7.5

This regex_replace hangs when there is no match. Any idea why this would 
hang?

  tasks:
    - set_fact:
        departStatusDownloadPattern: "\
                   (?sm).*?<TD.*?Depart Status.*?<\\/TD>\\s\\s*\
                   <TD.*?TD>\\s\\s*\
                   <TD.*?DocumentType=AUTH;GAUTH.*?Organization=.*?<
\\/TD>\\s\\s*\
                   <TD.*?TD>\\s\\s*\
                   <TD.*?{{ lookup('pipe', 'date +\"%-b %-d, %Y\"') }}.*?<
\\/TD>\\s\\s*\
                   <TD.*?TD>\\s\\s*\
                   <TD.*?TD>\\s\\s*\
                   <TD.*?TD>\\s\\s*\
                   <TD.*?Completed on {{ lookup('pipe', 'date +\"%-b %-d, 
%Y\"') }}.*?<\\/TD>\\s\\s*\
                   <TD.*?TD>\\s\\s*\
                   <TD.*?javascript:setSelected\\('(.*?)'\\).*"
    - debug:
        msg: "{{ lookup('file', 'work/reportsPage.html') | 
regex_replace(departStatusDownloadPattern,'\\1') }}"

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/203ac309-6287-4d8a-9b94-4155efd66929%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to