Hi pushparaj, The problem with this approach is that it is hiding even the normal output (success/fail, etc) of each task when i don't use -vvvv. So it is hiding output of each task that i would otherwise need to see. Thanks for replying though.
Regards, Vikram On Wednesday, 2 June, 2021 at 7:00:01 am UTC+5:30 rajthecomputerguy wrote: > I don't think there is a straightforward way. > > As a workaround you could run the whole play with no_log: true and add > no_log: false explicitly to your task calling ec2 action. Then run the > playbook with -v. > > On Wed, Jun 2, 2021 at 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> >> . >> > > > -- > > Thanks, > > Pushparaj G > > -- 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/28feafd2-030e-4d0b-bf17-5a905a94ac9bn%40googlegroups.com.
