Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
9fe2bcd0
Commit
9fe2bcd0
authored
Mar 31, 2014
by
James Tanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge #5903 from rhaido/ansible
Update files documentation for usage of force=True and hardlinks
parents
2492c271
f386e137
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
library/files/file
+5
-2
No files found.
library/files/file
View file @
9fe2bcd0
...
@@ -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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment