Actualizar helloworld
This commit is contained in:
+16
-1
@@ -1 +1,16 @@
|
|||||||
hello this is my first playbook
|
#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
|
||||||
Reference in New Issue
Block a user