ansible/apt_update_debian.yml

18 lines
380 B
YAML

---
- hosts: debian
become: true
tasks:
- name: Update package cache
apt:
update_cache: yes
tags: update
- name: Upgrade all packages
apt:
upgrade: dist # or "safe" for safe-upgrade, or "full" for full-upgrade
tags: update
#- name: Reboot the system if required
#reboot:
#when: ansible_reboot_pending