mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Clarify the behaviour of file's src parameter with relative paths
Fixes #21401 Also sdd some more tests to validate file state=link creates a symlink which points to the file we intended.
This commit is contained in:
parent
8eaef34340
commit
ce796bc34d
2 changed files with 30 additions and 3 deletions
|
@ -53,8 +53,9 @@ options:
|
|||
choices: [ absent, directory, file, hard, link, touch ]
|
||||
src:
|
||||
description:
|
||||
- path of the file to link to (applies only to C(state=link) and C(state=hard)). Will accept absolute,
|
||||
relative and nonexisting paths. Relative paths are not expanded.
|
||||
- path of the file to link to (applies only to C(state=link) and C(state=hard)). Will accept
|
||||
absolute, relative and nonexisting paths. Relative paths are relative to the file being
|
||||
created (C(path)) which is how the UNIX command C(ln -s SRC DEST) treats relative paths.
|
||||
recurse:
|
||||
description:
|
||||
- recursively set the specified file attributes (applies only to directories)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue