aboutsummaryrefslogtreecommitdiffstats
path: root/roles/upgrade/tasks/main.yml
blob: c8a041b122a8317fd09ee13ad3436e06f3bf7cbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
remember that computers suck.