Commit f386e137 by Mike Grozak

Updated the force parameter description; added one example how to create the…

Updated the force parameter description; added one example how to create the symlinks pointing to non-absolute paths
parent d3b544e8
...@@ -123,8 +123,7 @@ options: ...@@ -123,8 +123,7 @@ options:
default: "no" default: "no"
choices: [ "yes", "no" ] choices: [ "yes", "no" ]
description: description:
- 'force the creation of the symlinks in two cases: the source file does - 'force the creation of the symlinks when the destination exists and is a file (so, we need to unlink the
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).' "path" file and create symlink to the "src" file in place of it).'
notes: notes:
- See also M(copy), M(template), M(assemble) - See also M(copy), M(template), M(assemble)
...@@ -135,6 +134,10 @@ author: Michael DeHaan ...@@ -135,6 +134,10 @@ author: Michael DeHaan
EXAMPLES = ''' EXAMPLES = '''
- file: path=/etc/foo.conf owner=foo group=foo mode=0644 - file: path=/etc/foo.conf owner=foo group=foo mode=0644
- file: src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link - file: src=/file/to/link/to dest=/path/to/symlink owner=foo group=foo state=link
- file: path=/tmp/{{ item.path }} dest={{ item.dest }} state=link
with_items:
- { path: 'x', dest: 'y' }
- { path: 'z', dest: 'k' }
''' '''
def main(): def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment