Files
cluster/k3s-cluster/ansible/common/update-hosts.yml
Khwezi Mngoma 0410dc3950 first commit
2026-02-22 16:43:17 +02:00

19 lines
447 B
YAML

# command: ansible-playbook -i config/<target manifest>.ini common/update-hosts.yml
---
- name: Update and upgrade all apt packages
hosts: all
become: true
become_method: sudo
tasks:
- name: Update apt cache
ansible.builtin.apt:
update_cache: yes
- name: Upgrade all packages
ansible.builtin.apt:
upgrade: dist
- name: Autoremove unused packages
ansible.builtin.apt:
autoremove: yes