Re: [ansible-project] Logging to readable format

2020-03-12 Thread RayO
I was able to resolve this finding the below thread. In my case I had to alter the config slightly to the below. This was to merge the text together no space and eliminate "_lines" - name: print result debug: var: output1.stdout_lines - name: copy output to file

Re: [ansible-project] Logging to readable format

2020-03-12 Thread RayO
Anyone have any thoughts on this? On Thursday, March 12, 2020 at 10:51:25 AM UTC-4, RayO wrote: > > Hi Stefan, > > Thanks for the reply. Unfortunately though it doesn't look like that > worked. I replaced the below line with the entry you provided but it's > still printing in a bad format > >

Re: [ansible-project] Logging to readable format

2020-03-12 Thread RayO
Hi Stefan, Thanks for the reply. Unfortunately though it doesn't look like that worked. I replaced the below line with the entry you provided but it's still printing in a bad format copy: content="{{ output1.stdout_lines | join('\n') }}" Any other ideas? On Thursday, March 12, 2020 at

Re: [ansible-project] Logging to readable format

2020-03-12 Thread Stefan Hornburg (Racke)
On 3/12/20 2:52 PM, RayO wrote: > Hi. I have a very basic cisco IOS playbook i'm working on and when I log the > output to a file I cannot read the format. > I read a few threads that mention enabling a callback option in the > ansible.cfg but that does not seem to work. Does > anyone know how I

[ansible-project] Logging to readable format

2020-03-12 Thread RayO
Hi. I have a very basic cisco IOS playbook i'm working on and when I log the output to a file I cannot read the format. I read a few threads that mention enabling a callback option in the ansible.cfg but that does not seem to work. Does anyone know how I can accomplish logging to a readable