From af9d6aadf04a1b940685bfc8e1ff02db0d74fb73 Mon Sep 17 00:00:00 2001 From: Adam Dobrawy Date: Thu, 19 Apr 2018 20:52:43 +0200 Subject: [PATCH] [file] Update description of state (#38451) * [file] Update description of state --- lib/ansible/modules/files/file.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ansible/modules/files/file.py b/lib/ansible/modules/files/file.py index 4463d19826..c12420fd4b 100644 --- a/lib/ansible/modules/files/file.py +++ b/lib/ansible/modules/files/file.py @@ -40,9 +40,9 @@ options: description: - If C(directory), all immediate subdirectories will be created if they do not exist, since 1.7 they will be created with the supplied permissions. - If C(file), the file will NOT be created if it does not exist, see the M(copy) - or M(template) module if you want that behavior. If C(link), the symbolic - link will be created or changed. Use C(hard) for hardlinks. If C(absent), + If C(file), the file will NOT be created if it does not exist; see the C(touch) + value or M(copy), M(template) module if you want that behavior. If C(link), the + symbolic link will be created or changed. Use C(hard) for hardlinks. If C(absent), directories will be recursively deleted, and files or symlinks will be unlinked. Note that C(absent) will not cause C(file) to fail if the C(path) does not exist as the state did not change.