From 541b086883b8d619cff73eefaea0d0a53c87e79a Mon Sep 17 00:00:00 2001 From: Mike Grozak Date: Tue, 4 Jun 2013 12:06:08 +0200 Subject: [PATCH] Updated documentaion for the file module --- library/files/file | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/library/files/file b/library/files/file index ab0ab6ec1d..9538853c24 100644 --- a/library/files/file +++ b/library/files/file @@ -120,6 +120,20 @@ options: version_added: "1.1" description: - recursively set the specified file attributes (applies only to state=directory) + force: + required: false + default: "no" + choises: [ "yes", "no" ] + description: + - force the creation of the symlinks in two cases: the source file does + not exist (but will appear later); the destination exists and a file (so, we need to unlink the + "path" file and create symlink to the "src" file in place of it). +examples: + - code: "file: path=/etc/foo.conf owner=foo group=foo mode=0644" + description: Example from Ansible Playbooks + - code: "file: src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link" + - code: "action: file state=link path=/etc/localtime src=/usr/share/zoneinfo/Europe/Zurich force=yes" + description: Force /etc/locatime be the symbolic link to /usr/share/zoneinfo/Europe/Zurich notes: - See also M(copy), M(template), M(assemble) requirements: [ ]