mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #46640 from terminalmage/file.copy-docs
Clarify the docs for the file.copy state
This commit is contained in:
commit
d329e7af78
1 changed files with 8 additions and 3 deletions
|
@ -5218,9 +5218,14 @@ def copy(
|
|||
subdir=False,
|
||||
**kwargs):
|
||||
'''
|
||||
If the source file exists on the system, copy it to the named file. The
|
||||
named file will not be overwritten if it already exists unless the force
|
||||
option is set to True.
|
||||
If the file defined by the ``source`` option exists on the minion, copy it
|
||||
to the named path. The file will not be overwritten if it already exists,
|
||||
unless the ``force`` option is set to ``True``.
|
||||
|
||||
.. note::
|
||||
This state only copies files from one location on a minion to another
|
||||
location on the same minion. For copying files from the master, use a
|
||||
:py:func:`file.managed <salt.states.file.managed>` state.
|
||||
|
||||
name
|
||||
The location of the file to copy to
|
||||
|
|
Loading…
Add table
Reference in a new issue