builder3: change apt cache to dist-upgrade and optionally reboot
This commit is contained in:
parent
4f1e2a6938
commit
56495c7059
|
@ -5,9 +5,15 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: Common system setup
|
- name: Common system setup
|
||||||
block:
|
block:
|
||||||
- name: Update apt cache
|
- name: Update all packages: dist-upgrade
|
||||||
|
register: system_update
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
upgrade: dist
|
||||||
|
|
||||||
|
- name: Reboot after system upgrade, when changed
|
||||||
|
when: system_update.changed
|
||||||
|
reboot:
|
||||||
|
|
||||||
- name: Install debconf
|
- name: Install debconf
|
||||||
package:
|
package:
|
||||||
|
|
Loading…
Reference in a new issue