add package-update role

This commit is contained in:
staticsafe 2021-01-17 19:14:31 -05:00
parent 3cb30d2985
commit 1541a24467
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
- name: Update packages on nodes
hosts: cloud
user: root
roles:
- package-update

View File

@ -0,0 +1,5 @@
---
# This role updates packages and performs autoremove
- name: Update apt cache and then packages with autoremove
apt: update_cache=yes upgrade=safe autoremove=yes