actually added update.yml
This commit is contained in:
16
update.yml
Normal file
16
update.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Update and upgrade all servers
|
||||
hosts: all
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Update apt cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
|
||||
- name: Upgrade all packages
|
||||
apt:
|
||||
upgrade: dist
|
||||
autoremove: yes
|
||||
autoclean: yes
|
||||
Reference in New Issue
Block a user