Hi, I tried this but it doesn't exactly meet my requirements. I need to run only a single task with highest level verbosity. If i were to specify verbosity level as 4 as given in the article and if i were to run -vvvv, then all other tasks which have lower verbosity will also show debug info, not just the single task that i want shown.
Regards, Vikram On Wednesday, 2 June, 2021 at 12:33:22 pm UTC+5:30 Abhijeet Kasurde wrote: > 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/f0690dc4-89d9-4640-a5ed-d7a8a6574a13n%40googlegroups.com.
