patch

Collection: posix

Full Name: parallax.posix.patch

Aliases: ansible.posix.patch, patch

Synopsis

Manage patch

Parameters

NameTypeRequiredDefaultDescription
srcstringyesPath to the patch file to apply
deststring/Path to the file or directory on the remote host to patch
stripstring0Number of leading path components to strip from file names
remote_srcboolfalseIf true, the src is on the remote host instead of the controller
backupboolfalseCreate a backup of the original file(s)
binarystringpatchPath to the patch binary
statestringpresentWhether the patch should be applied (present) or reverted (absent)

Example

- name: Example patch task
  patch:
    src: <your_src>