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