--- - hosts: all tasks: - name: ls command: ls -lah / register: streamoutput become: true - debug: msg="{{ streamoutput.stdout }}"