We can specify a log_path in ansible.cfg <https://github.com/ansible/ansible/blob/devel/examples/ansible.cfg> which instructs Ansible to log to a certain file. Is there a way to specify the verbosity of that logging as well? (The default is not verbose). Logging verbosity is not affected by the verbosity from the command line either.
If this does not exist, I think it should be a feature request. It could be quite useful to get more verbose output in the log file. This would be especially useful in the following scenario: You run a play with no/little verbosity and something goes wrong. You run it again with more verbosity but it doesn't produce the same error. For some reason it only happens once or now you're getting a different error. Maybe you made a permanent change in the environment that means you can't reproduce the same error. If this happens, you're hopeless. If by default you've configured your log to be verbose, you can not worry about what you're logging to the command line, get a pretty and uncluttered output but still have verbose logs for when something goes wrong. Thank you -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5cbed347-1870-4e25-8f65-b46d1d91efb0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
