From edea89971920995651df1282d2c318b9ef5b71ce Mon Sep 17 00:00:00 2001 From: lucybarcenas Date: Wed, 6 May 2026 12:40:43 -0600 Subject: [PATCH] Actualizar helloworld --- helloworld | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/helloworld b/helloworld index 12a765c..e41758e 100644 --- a/helloworld +++ b/helloworld @@ -1 +1,16 @@ -hello this is my first playbook \ No newline at end of file +#hello this is my first playbook +- name: Ejecutar comando dinĂ¡mico + hosts: all + become: yes + + vars: + comando: "{{ command }}" + + tasks: + - name: Ejecutar comando recibido + shell: "{{ comando }}" + register: resultado + + - name: Mostrar salida + debug: + var: resultado.stdout \ No newline at end of file