title: How to use regex_findall in Ansible playbook properly?
body: <p>I have a problem using regex_findall in ansible playbook to pull ipv4 address from string. Here is ansible The offending line appears to be:</p>
  
  <pre><code>- debug:
      msg: "{{ item.stdout | regex_findall('\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b') }}"
                                                           ^ here
  We could be wrong, but this one looks like it might be an issue with
  missing quotes.  Always quote template expression brackets when they
  start a value. For instance:
  
  with_items:
    - {{ foo }}
  
  Should be written as:
  
  with_items:
    - "{{ foo }}"
  
  exception type: &lt;class 'yaml.scanner.ScannerError'&gt;
  exception: while parsing a quoted scalar
  in "&lt;unicode string&gt;", line 29, column 14
  found unknown escape character
  in "&lt;unicode string&gt;", line 29, column 62
  output
  </code></pre>
  
  <p>Where the problem can be ?</p>