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

13 lines
No EOL
279 B
YAML

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