playbooks/uptime.yml
2025-03-15 22:06:02 +01:00

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 }}"