update apt playbook
This commit is contained in:
parent
ccc8547e4d
commit
3d94aee458
1 changed files with 13 additions and 3 deletions
|
@ -1,7 +1,17 @@
|
||||||
- hosts: "*"
|
---
|
||||||
|
- name: Weekly System Update
|
||||||
|
hosts: all
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: apt
|
- name: Update apt cache
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
upgrade: 'yes'
|
|
||||||
|
- name: Upgrade all packages
|
||||||
|
apt:
|
||||||
|
upgrade: dist
|
||||||
|
|
||||||
|
- name: Remove unnecessary packages
|
||||||
|
apt:
|
||||||
|
autoremove: yes
|
||||||
|
purge: yes
|
||||||
|
|
Loading…
Reference in a new issue