title: Is it possible to include file content in a playbook?
body: <p>I need to create or overwrite files on remote hosts. The modules <code>lineinfile</code> or <code>blockinfile</code> are useful when updating files, but not to create ones from scratch or completely overwrite existing ones.</p>
  
  <p>The obvious solution is to use <code>copy</code> but I would like to have as much as possible a standalone playbook, without files on the side. <strong>Is it possible to include in a playbook the content of the file to create?</strong> </p>
  
  <p>Maybe something along the lines of having a variable with the content of the file which can be used as the <code>src=</code>parameter for <code>copy</code> (I tried this but it does not work as <code>src</code> expects a local file)</p>