I need to create an xml formated file in ansible. The file contains <> and spaces.
When I run the playbook without the <> or any white spaces between lines in it, the playbook creates the files.
How can I create a file with the following context
blockinfile: path: /tmp/testfile.txt content: | <example1> this is test1 blah blah </example1> <example2> this is test2 hello </example2>