mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
files/patch: improve examples (#20463)
This commit is contained in:
committed by
John R Barker
parent
05879d331a
commit
a0abaf5409
@@ -91,15 +91,15 @@ note:
|
||||
|
||||
EXAMPLES = '''
|
||||
- name: apply patch to one file
|
||||
patch: >
|
||||
src=/tmp/index.html.patch
|
||||
dest=/var/www/index.html
|
||||
patch:
|
||||
src: /tmp/index.html.patch
|
||||
dest: /var/www/index.html
|
||||
|
||||
- name: apply patch to multiple files under basedir
|
||||
patch: >
|
||||
src=/tmp/customize.patch
|
||||
basedir=/var/www
|
||||
strip=1
|
||||
patch:
|
||||
src: /tmp/customize.patch
|
||||
basedir: /var/www
|
||||
strip: 1
|
||||
'''
|
||||
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user