Newline in copy module, content parameter

Hi,

just a quick question regarding the copy module, content parameter. Is there a way of making this operation output a line separator in the destination file? For example,

copy: dest=/etc/blabla content=“VAR=var\nVAR2=var2”

(this puts a literal \n into the file). Currently I use the shell module for this (to avoid including a template for such a simple thing), but the copy module is prettier.

Cheers

P.S. The documentation for the content parameters mentions it was added in 1.1 twice (When used instead of ‘src’, sets the contents of a file directly to the specified value. (New in 1.1). (added in Ansible 1.1)).

Consider using an actual src file.

The 'content' parameter was a recent addition and you do not need to use this.

Roger, thanks.