mirror of
https://github.com/Apress/Beginning-Ansible-Concepts-and-Application.git
synced 2024-11-09 17:07:44 +01:00
13 lines
179 B
YAML
13 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:
|
||
|
|