Beginning-Ansible-Concepts-.../chapter05/upgrade.yml
2022-04-23 08:57:49 +01:00

12 lines
179 B
YAML

---
- hosts: web-001.local
become: true
tasks:
- name: Upgrade all packages
apt:
upgrade: dist
update_cache: yes
- name: Reboot the host
reboot: