Beginning-Ansible-Concepts-.../chapter05/upgrade.yml

13 lines
179 B
YAML
Raw Normal View History

2022-03-21 18:17:54 +01:00
---
- hosts: web-001.local
become: true
tasks:
- name: Upgrade all packages
apt:
upgrade: dist
update_cache: yes
- name: Reboot the host
reboot: