Update linux/pkgupgrade-apt.yaml
This commit is contained in:
parent
f050d57572
commit
b17d9297bd
@ -0,0 +1,14 @@
|
||||
---
|
||||
## Runs automated apt update and apt upgrade on servers, skipping apt upgrade if there are no pkgs to be upgraded
|
||||
|
||||
- hosts: all
|
||||
gather_facts: yes
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Update apt repo package lists
|
||||
apt: update_cache=yes force_apt_get=yes cache_valid_time=3600
|
||||
|
||||
- name: Upgrade all apt packages
|
||||
apt: upgrade=dist force_apt_get=yes
|
||||
throttle: 1
|
Loading…
x
Reference in New Issue
Block a user