Might be worth trying
https://awsbloglink.wordpress.com/2018/11/11/how-to-control-the-output-of-ansible-debug-with-verbose/

Also, there is an existing issue with this
https://github.com/ansible/ansible/issues/24215

On Wed, Jun 2, 2021 at 12:10 PM pradnya waghmare <[email protected]>
wrote:

> 8
>
> On Wed, 2 Jun, 2021, 9:00 am prasanna kumar, <[email protected]>
> wrote:
>
>> There are log plugins specifically for these. You can refer logcallback
>> plugin in ansible.
>>
>> Create a copy of it and customize it as per your need.
>>
>>
>> On Wed, Jun 2, 2021, 1:37 AM Vikram S <[email protected]> wrote:
>>
>>> I have several tasks in a playbook. I want to see -vvvv (highest verbose
>>> level) only for a single task in the playbook. So i don't want to give
>>> -vvvv after 'ansible-playbook sample.yaml'.
>>>
>>> Is there any way to display -vvvv info only for a single task while
>>> running the playbook?
>>>
>>>
>>> Thanks,
>>>
>>> Vikram
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/d6d1c317-5a49-4f99-b6b4-7ffa0bbea24an%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/d6d1c317-5a49-4f99-b6b4-7ffa0bbea24an%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAFtMuduR8WXO2BRRW6B5r4RG1iWKRm7Vt98%2B%3DgD3dmswQCJKGQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAFtMuduR8WXO2BRRW6B5r4RG1iWKRm7Vt98%2B%3DgD3dmswQCJKGQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAD0or7ttZSvCLfDUDS32YeaWWT97YjAmOzCb4M9ReUWPCYrThg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAD0or7ttZSvCLfDUDS32YeaWWT97YjAmOzCb4M9ReUWPCYrThg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFwWkHoh9b1fJTO5aV15GMciVJGrz%2BTWH8OGAm1OTNt4x6GF3g%40mail.gmail.com.

Reply via email to