Hey – when running adhoc commands (using shell module), the stdout returned from target systems is stripped of formatting. Is there a standard way to retain the formatting?
Not sure what exactly you mean. Is stdout_lines what you’re looking for?
I think so, but wasn’t able to get that working with adhoc commands.
What formatting are you missing? I get this:
$ ansible localhost -a "toilet -f letter Ansible"
localhost | SUCCESS | rc=0 >>
A N N SSSS III BBBB L EEEEE
A A NN N S I B B L E
AAAAA N N N SSS I BBBB L EEEE
A A N NN S I B B L E
A A N N SSSS III BBBB LLLLL EEEEE