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