4e08320786
actualización variable shell
16 lines
307 B
Plaintext
16 lines
307 B
Plaintext
#hello this is my first playbookk
|
|
- 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 |