diff --git a/linux/pkgupgrade-apt.yaml b/linux/pkgupgrade-apt.yaml index e69de29..f5cb636 100644 --- a/linux/pkgupgrade-apt.yaml +++ b/linux/pkgupgrade-apt.yaml @@ -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 \ No newline at end of file