patch
Patch files.
Parameters
Parameter |
Type |
Comments |
|
|---|---|---|---|
path |
string |
Path to file to be patched. |
|
patch |
dict |
Parameters of patch module (see files-patch.yml) |
|
src |
string |
Path of the patch file. |
|
basedir |
path |
Apply patch in this dir. |
|
… |
… |
<TBD> |
|
handlers |
list |
List of handlers. |
|
Example
File /etc/network.subr for /etc/rc.d/wpa_cli
[contrib/freebsd-custom-image-wpacli/conf-light/files.d/network_subr.yml]
1---
2network_subr:
3 path: "{{ bsd_cimage_mount_path }}/etc/network.subr"
4 patch:
5 src: "{{ playbook_dir }}/files/network.subr.patch"
6 basedir: "{{ bsd_cimage_mount_path }}/etc"
See also
See files-patch.yml annotated source code
See details about the example in the role vbotka.freebsd_wpa_cli