Work through ansible and manage your local ansible.log however you wish.
Any way I can do it with Puppet?
Re:How and Why to Log Your Bash History
by superuser2 on Tuesday May 31, 2016 @12:20PM
(#11807456)
Do what? Puppet doesn't have a facility for running ad-hoc remote shell commands on demand. Sort of the whole point is to not do that.
At the moment, I get around this by storing as much as I can in searchable scratch files, but this relies on me knowing what to copy. I'm sure there's a better way.