ansible/playbooks/pkg_upgrade.yml
2021-06-10 14:41:21 +02:00

28 lines
563 B
YAML

---
- name: Linux Package Upgrade
hosts: all
remote_user: root
tasks:
- name: Refresh Package Cache if not older that 1h
apt:
update_cache: yes
cache_valid_time: 3600
become: true
- name: Remove Packages that can no longer be downloaded
apt:
autoclean: yes
become: true
- name: Remove packages that are no longer required
apt:
autoremove: yes
become: true
- name: Upgrade all packages that need an update
apt:
upgrade: full
become: true
...