title: Ansible lookup a single line in a json file
body: <p>I need to read an ip line from  a dynamic generated json file and add it to a configuration file on the server.</p>
  
  <p>At Ansible home page i found two modules which would help:
  <br>
  - lookup module
  <br>
  - fileinline module</p>
  
  <p>The lookup examples however show  looking up for the whole contents of a file using this phrase <code>"{{ lookup('file', '/etc/foo.txt') }}"</code><br>
  How could i filter the result into reading a single line?</p>
  
  <p>Does anybody know a good way to achieve this ?</p>