Skip to content

Commit 3d94aee

Browse files
author
Mafyuh
committedJan 13, 2025
update apt playbook
1 parent ccc8547 commit 3d94aee

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed
 

‎ansible/playbooks/weekly/apt.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1-
- hosts: "*"
1+
---
2+
- name: Weekly System Update
3+
hosts: all
24
become: true
35
tasks:
4-
- name: apt
6+
- name: Update apt cache
57
apt:
68
update_cache: yes
7-
upgrade: 'yes'
9+
10+
- name: Upgrade all packages
11+
apt:
12+
upgrade: dist
13+
14+
- name: Remove unnecessary packages
15+
apt:
16+
autoremove: yes
17+
purge: yes

0 commit comments

Comments
 (0)
Please sign in to comment.