add ansible/upgrade.yml

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-02-17 18:36:36 +01:00
parent dcac3b9a76
commit 6a490efc95
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 12 additions and 0 deletions

12
ansible/upgrade.yml Normal file
View File

@ -0,0 +1,12 @@
- name: Update and upgrade apt packages
gather_facts: false
hosts: all
tasks:
- name: Upgrade packages
apt:
upgrade: true
update_cache: true
cache_valid_time: 86400
- name: Remove unused packages
apt:
autoremove: true