patch
Collection: posix
Full Name: parallax.posix.patch
Aliases: ansible.posix.patch, patch
Synopsis
Manage patch
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| src | string | yes | Path to the patch file to apply | |
| dest | string | / | Path to the file or directory on the remote host to patch | |
| strip | string | 0 | Number of leading path components to strip from file names | |
| remote_src | bool | false | If true, the src is on the remote host instead of the controller | |
| backup | bool | false | Create a backup of the original file(s) | |
| binary | string | patch | Path to the patch binary | |
| state | string | present | Whether the patch should be applied (present) or reverted (absent) |
Example
- name: Example patch task
patch:
src: <your_src>