From a2b49854ca5ccfc73a70890ab37764a51508f274 Mon Sep 17 00:00:00 2001 From: Alex IP <47459973+AlexImray@users.noreply.github.com> Date: Mon, 22 Jul 2019 16:57:33 -0400 Subject: [PATCH] Update copy.py (#56370) * Update copy.py to make the behavior of the `content` option clearer. --- lib/ansible/modules/files/copy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/copy.py b/lib/ansible/modules/files/copy.py index 0bbbf5a6ba6..f0951bde7d7 100644 --- a/lib/ansible/modules/files/copy.py +++ b/lib/ansible/modules/files/copy.py @@ -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: