Homelab-Automation/linux-update.yaml

12 lines
248 B
YAML
Raw Normal View History

2025-04-03 16:57:45 +00:00
---
- hosts: "{{ target_hosts }}"
become: true
tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
- name: Upgrade all packages
ansible.builtin.apt:
upgrade: dist
autoremove: true