community.general.sysupgrade – Manage OpenBSD system upgrades
This plugin is part of the community.general collection (version 4.2.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.general.
To use it in a playbook, specify:
New in version 1.1.0: of community.general
- name: Upgrade to latest release community.general.sysupgrade: register: sysupgrade - name: Upgrade to latest snapshot community.general.sysupgrade: snapshot: yes installurl: https://cloudflare.cdn.openbsd.org/pub/OpenBSD register: sysupgrade - name: Reboot to apply upgrade if needed ansible.builtin.reboot: when: sysupgrade.changed # Note: Ansible will error when running this way due to how # the reboot is forcefully handled by sysupgrade: - name: Have sysupgrade automatically reboot community.general.sysupgrade: fetch_only: no ignore_errors: yes
Common return values are documented here, the following are the fields unique to this module:
The command return code (0 means success).
Sysupgrade standard error.
sysupgrade: need root privileges
Sysupgrade standard output.