my first playbooks!

This commit is contained in:
2026-07-10 17:06:23 -05:00
parent 18b5cbf644
commit 0502c4f766
3 changed files with 41 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
---
# CHANGEME - handle multiple software packaging systems (apt, yum, dnf, rpm, etc.)
- name: Update software
hosts: all
become: yes
post_tasks:
- name: Remove packages installed as dependencies that are no longer required and purge their configuration files
ansible.builtin.apt:
autoremove: yes
purge: true
- name: Remove old downloaded packages
ansible.builtin.apt:
clean: yes