That is not currently possible. Some of the command invocation options are exposed but not all:
https://github.com/ansible/ansible/blob/6e857468a222e3f1481b5da9b1372ccdf8099082/lib/ansible/utils/vars.py#L146-L160 Pull requests are welcome. On Wed, Dec 20, 2017 at 7:22 AM, William McKenzie <[email protected]> wrote: > Is there a builtin variable that holds the verbosity passed in -vvvv ? I > want to suppress output unless it is above a certain level. > > So, in a task, i'd like to write: > > no_log: "{{ verbosity <= 2 }}" > > thanks, > ~Bill > > -- > 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/aeac3bee-341b-45e4-8b1d-25852fe77251%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/aeac3bee-341b-45e4-8b1d-25852fe77251%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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/CAD8N0v8V7%3DfcJNVhD4%3DbcqzogSMhBncVmC_5iaXUiiScVfeJUA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
