So when you fetch it the first time the odd chars shows up at some random places. You fetch the same command again and the odd chars shows now up at different random places?
Sounds like some bad RAM or bad storage is in play here?
Yes, different places, randomly.
Not odd chars but ANSI code (reset color) invisible on console or tty but if you redirect on a file, they are on file.
There was a discussion at slack regarding failed upgrades (add system image) which seems to be a known thing but hard to replicate since they seem to occur at random.
That is you upgrade to a new version (could be from one to another rolling release) but the configuration fails the migration. If you save the configuration at this point sections will be missing (compared to how the config was before the upgrade).
The workaround for this is (credit Sander) to reapply the upgrade twice (with a reboot in between to the old version) like so:
add system image
reboot
Check if it works or not. Works, then \o/. Fail the goto 4.
reboot into old image selecting it in grub
delete system image
add system image again
reboot
This always works for me ™
A theory is if what you see through ansible could be related to the above?
That is if bogus characters shows up during migration phase of the upgrade then of course that section of the config would fail. But it doesnt explain why reapply the same upgrade would fix this issue.
Is the above something you could test with your installation and see if it resolves anything?
Maybe this as a band-aid until things are figured out? I’m wondering since xterm supports a subset of ANSI could a different terminal type be used? xterm-mono or VT220?