ansible/upgrade.yml: update to version from template
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
68f370d447
commit
dcbc5f03c3
|
@ -1,14 +1,18 @@
|
||||||
|
---
|
||||||
- name: Update and upgrade apt packages
|
- name: Update and upgrade apt packages
|
||||||
serial: 1
|
|
||||||
become: true
|
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
hosts: all
|
hosts: all
|
||||||
|
serial: 1
|
||||||
tasks:
|
tasks:
|
||||||
- name: Upgrade packages
|
- name: Upgrade packages
|
||||||
apt:
|
apt:
|
||||||
upgrade: true
|
upgrade: true
|
||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 86400
|
cache_valid_time: 86400 # One day
|
||||||
|
register: packages
|
||||||
|
- reboot:
|
||||||
|
when: packages.changed
|
||||||
- name: Remove unused packages
|
- name: Remove unused packages
|
||||||
apt:
|
apt:
|
||||||
autoremove: true
|
autoremove: true
|
||||||
|
autoclean: true
|
||||||
|
|
Loading…
Reference in New Issue