From 2cfcab54114799ef612c59a04e537d8c44438814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Fri, 8 Nov 2024 17:46:06 +0100 Subject: feat(roles/upgrade): kickstart upgrade role for openbsd --- roles/upgrade/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/upgrade/tasks/main.yml (limited to 'roles/upgrade/tasks/main.yml') 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 -- cgit v1.2.3