community.general.syspatch – Manage OpenBSD system patches¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.syspatch
.
Parameters¶
Examples¶
- name: Apply all available system patches
community.general.syspatch:
apply: true
- name: Revert last patch
community.general.syspatch:
revert: one
- name: Revert all patches
community.general.syspatch:
revert: all
# NOTE: You can reboot automatically if a patch requires it:
- name: Apply all patches and store result
community.general.syspatch:
apply: true
register: syspatch
- name: Reboot if patch requires it
ansible.builtin.reboot:
when: syspatch.reboot_needed
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Andrew Klaus (@precurse)