2

On Ansible config I can set if output log should be human-readable or JSON. Human readable format is displayed task-by-task as it runs and JSON only after playing ends.

It is possible to output to stdout human readable format and also create some logfile with the JSON format?

1 Answer 1

1

I am not sure if dual format logging is fully possible in the way your are looking for, but in general regarding

It is possible to output to stdout human readable format AND also create some logfile with the JSON format?

and the logging configuration, you may have a look into Logging Ansible output

By default Ansible sends output about plays, tasks, and module arguments to your screen (STDOUT) on the control node. If you want to capture Ansible output in a log, you have three options ...

as well you could take advantage from Callback plugins and the community.general plugins.

Further Q&A

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .