--- - hosts: localhost tasks: - name: 'Call "id"' command: id - name: Copy a file copy: src=test.txt dest=/tmp/test.txt backup=yes - name: 'Call "cat /tmp/test.txt"' command: cat /tmp/test.txt