mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
File module: correct description of "state" (#36327)
* File module: correct description of "state" It was probably intended to say "intermediate subdirectories will be created" and not "immediate subdirectories will be created".
This commit is contained in:
parent
af9d6aadf0
commit
a81c6668eb
1 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@ options:
|
||||||
aliases: [ dest, name ]
|
aliases: [ dest, name ]
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- If C(directory), all immediate subdirectories will be created if they
|
- If C(directory), all intermediate subdirectories will be created if they
|
||||||
do not exist, since 1.7 they will be created with the supplied permissions.
|
do not exist. Since Ansible 1.7 they will be created with the supplied permissions.
|
||||||
If C(file), the file will NOT be created if it does not exist; see the C(touch)
|
If C(file), the file will NOT be created if it does not exist; see the C(touch)
|
||||||
value or M(copy), M(template) module if you want that behavior. If C(link), the
|
value or the M(copy) or M(template) module if you want that behavior. If C(link), the
|
||||||
symbolic link will be created or changed. Use C(hard) for hardlinks. If C(absent),
|
symbolic link will be created or changed. Use C(hard) for hardlinks. If C(absent),
|
||||||
directories will be recursively deleted, and files or symlinks will be unlinked.
|
directories will be recursively deleted, and files or symlinks will be unlinked.
|
||||||
Note that C(absent) will not cause C(file) to fail if the C(path) does not exist
|
Note that C(absent) will not cause C(file) to fail if the C(path) does not exist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue