collection of ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
338 B

---
- name: download install sets for sysupgrade
become: yes
shell: "sysupgrade -n {{ sysupgrade_openbsd_args }}"
register: sysupgrade_task
changed_when: "'Will upgrade on next reboot' in sysupgrade_task.stdout"
- name: wait for upgrade to finish
become: yes
reboot:
reboot_timeout: 900
when: sysupgrade_task.changed