Homelab-Automation/linux-update.yaml
2025-04-03 19:11:57 +02:00

14 lines
No EOL
306 B
YAML

---
- hosts: "{{ target_hosts }}"
become: true
tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
delegate_to: localhost
- name: Upgrade all packages
ansible.builtin.apt:
upgrade: dist
autoremove: true
delegate_to: localhost