title: Ansible: read remote file
body: <p>I generate files with ansible on remote host and after this generation, I would like to read theses files in another task.</p>
  
  <p>I don't find any module to read remote file with ansible (lookup seems only on local host).</p>
  
  <p>Do you know a module like this ?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Here is my use case:</p>
  
  <p>I generate ssh keys and I add it to github. These keys are setting by an object in var files so I loop like this to generate it:</p>
  
  <pre><code>    tasks:
    - name: Create ssh key
      user:
        name: "{{sshConfigFile.user}}"
        generate_ssh_key: yes
        ssh_key_file: ".ssh/{{item.value.file}}"
        state: present
      with_dict: "{{sshConfiguration}}"
  </code></pre>
  
  <p>It works very fine but how read these keys to send it to github via the API ?</p>