diff options
Diffstat (limited to 'roles/upgrade/tasks/main.yml')
-rw-r--r-- | roles/upgrade/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/upgrade/tasks/main.yml b/roles/upgrade/tasks/main.yml new file mode 100644 index 0000000..c8a041b --- /dev/null +++ b/roles/upgrade/tasks/main.yml @@ -0,0 +1,18 @@ +--- + +- 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 |