add package-update role
This commit is contained in:
parent
3cb30d2985
commit
1541a24467
7
ubuntu/package-update.yml
Normal file
7
ubuntu/package-update.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: Update packages on nodes
|
||||
hosts: cloud
|
||||
user: root
|
||||
|
||||
roles:
|
||||
- package-update
|
5
ubuntu/roles/package-update/tasks/main.yml
Normal file
5
ubuntu/roles/package-update/tasks/main.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user