mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
add sample for follow parameter of copy.py (#45765)
* add sample for follow parameter of copy.py
This commit is contained in:
committed by
Toshio Kuratomi
parent
19c0511f57
commit
761f99a4e3
@@ -164,6 +164,18 @@ EXAMPLES = r'''
|
|||||||
copy:
|
copy:
|
||||||
content: '# This file was moved to /etc/other.conf'
|
content: '# This file was moved to /etc/other.conf'
|
||||||
dest: /etc/mine.conf
|
dest: /etc/mine.conf
|
||||||
|
|
||||||
|
- name: if follow is true, /path/to/file will be overwritten by contents of foo.conf
|
||||||
|
copy:
|
||||||
|
src: /etc/foo.conf
|
||||||
|
dest: /path/to/link # /path/to/link is link to /path/to/file
|
||||||
|
follow: True
|
||||||
|
|
||||||
|
- name: if follow is False, /path/to/link will become a file and be overwritten by contents of foo.conf
|
||||||
|
copy:
|
||||||
|
src: /etc/foo.conf
|
||||||
|
dest: /path/to/link # /path/to/link is link to /path/to/file
|
||||||
|
follow: False
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r'''
|
||||||
|
|||||||
Reference in New Issue
Block a user