|
|
|
@ -75,6 +75,11 @@ options:
|
|
|
|
|
- As of Ansible 2.3, the mode may also be the special string C(preserve).
|
|
|
|
|
- C(preserve) means that the file will be given the same permissions as the source file.
|
|
|
|
|
- When doing a recursive copy, see also C(directory_mode).
|
|
|
|
|
- If C(mode) is not specified and the destination file B(does not) exist, the default C(umask) on the system will be used
|
|
|
|
|
when setting the mode for the newly created file.
|
|
|
|
|
- If C(mode) is not specified and the destination file B(does) exist, the mode of the existing file will be used.
|
|
|
|
|
- Specifying C(mode) is the best way to ensure files are created with the correct permissions.
|
|
|
|
|
See CVE-2020-1736 for further details.
|
|
|
|
|
directory_mode:
|
|
|
|
|
description:
|
|
|
|
|
- When doing a recursive copy set the mode for the directories.
|
|
|
|
|