11 lines
214 B
YAML
11 lines
214 B
YAML
# ejecuta uptime en los servers especificados
|
|
---
|
|
- name: uptime
|
|
hosts: all
|
|
remote_user: root
|
|
|
|
tasks:
|
|
- name: "ejecutar uptime"
|
|
command: uptime
|
|
register: uptime
|
|
- debug: msg="{{ uptime.stdout }}"
|