--- - name: apply system upgrade community.general.sysupgrade: register: upgrade__result_sysupgrade - name: reboot to apply upgrade ansible.builtin.reboot: reboot_timeout: 1200 when: upgrade__result_sysupgrade.changed - name: apply post-upgrade update ansible.builtin.command: pkg_add -Uu when: upgrade__result_sysupgrade.changed - name: update dependencies ansible.builtin.include_role: name: update