Files
playbooks/helloworld
T
2026-05-06 12:40:43 -06:00

16 lines
306 B
Plaintext

#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