- name: copiar fichero index.html
template: src=index.html.j2 dest=/var/www/html/index.html
register: out_copia
- name: mostrar contenido
command: cat /var/www/html/index.html
register: out_salida
when: out_copia|changed
- debug: var=out_copia.stdout
when: out_copia|changed