From b357f4dd72a691d6bafb3d59ac24732a0c2b6faa Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 15 Feb 2016 14:13:38 -0500 Subject: [PATCH] added follow to specific modules that support it was removed from common file docs --- lib/ansible/modules/files/copy.py | 7 +++++++ lib/ansible/modules/files/file.py | 7 +++++++ lib/ansible/modules/files/replace.py | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/lib/ansible/modules/files/copy.py b/lib/ansible/modules/files/copy.py index 76118ed3751..c8c1cf4bae1 100644 --- a/lib/ansible/modules/files/copy.py +++ b/lib/ansible/modules/files/copy.py @@ -85,6 +85,13 @@ options: required: false default: "no" version_added: "2.0" + follow: + required: false + default: "no" + choices: [ "yes", "no" ] + version_added: "1.8" + description: + - 'This flag indicates that filesystem links, if they exist, should be followed.' extends_documentation_fragment: - files - validate diff --git a/lib/ansible/modules/files/file.py b/lib/ansible/modules/files/file.py index 4d047302399..edc3bb9a443 100644 --- a/lib/ansible/modules/files/file.py +++ b/lib/ansible/modules/files/file.py @@ -87,6 +87,13 @@ options: - 'force the creation of the symlinks in two cases: the source file does not exist (but will appear later); the destination exists and is a file (so, we need to unlink the "path" file and create symlink to the "src" file in place of it).' + follow: + required: false + default: "no" + choices: [ "yes", "no" ] + version_added: "1.8" + description: + - 'This flag indicates that filesystem links, if they exist, should be followed.' ''' EXAMPLES = ''' diff --git a/lib/ansible/modules/files/replace.py b/lib/ansible/modules/files/replace.py index dea2c32a54f..634e492953b 100644 --- a/lib/ansible/modules/files/replace.py +++ b/lib/ansible/modules/files/replace.py @@ -66,6 +66,13 @@ options: description: - All arguments accepted by the M(file) module also work here. required: false + follow: + required: false + default: "no" + choices: [ "yes", "no" ] + version_added: "1.9" + description: + - 'This flag indicates that filesystem links, if they exist, should be followed.' """ EXAMPLES = r"""