Update copy.py (#56370)

* Update copy.py to make the behavior of the `content` option clearer.
This commit is contained in:
Alex IP 2019-07-22 16:57:33 -04:00 committed by Alicia Cozine
parent 65049620ee
commit a2b49854ca

View file

@ -36,7 +36,8 @@ options:
content:
description:
- When used instead of C(src), sets the contents of a file directly to the specified value.
- For advanced formatting or if C(content) contains a variable, use the C(template) module.
- Works only when C(dest) is a file. Creates the file if it does not exist.
- For advanced formatting or if C(content) contains a variable, use the M(template) module.
type: str
version_added: '1.1'
dest: