patch

Patch files.

Parameters

Parameter

Type

Comments

path

string required

Path to file to be patched.

patch

dict required

Parameters of patch module (see files-patch.yml)

src

string required

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