mirror of
https://github.com/Apress/Beginning-Ansible-Concepts-and-Application.git
synced 2024-09-19 14:17:29 +02:00
12 lines
179 B
YAML
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:
|
|
|