--- - name: Setup test fixture shell: cat {{ role_path }}/fixtures/ansible-xml-beers.xml | sed 's/^[ ]*//g' > /tmp/ansible-xml-beers.xml - name: Pretty print without modification xml: path: /tmp/ansible-xml-beers.xml pretty_print: True - name: Test expected result command: diff -u {{ role_path }}/results/test-pretty-print-only.xml /tmp/ansible-xml-beers.xml