No, this is not available, it doesn't really make sense for a task to know
what tags are available because it can't do anything with that information.

Boolean operations other than "OR" on --tags is also not presently
available.




On Fri, Sep 12, 2014 at 5:54 AM, Nicolai Froehlich <
[email protected]> wrote:

> ---- Question
>
> Is it possible to access the list of provided tags ( --tags, --skip-tags )
> from a variable inside a task?
>
> Is it maybe possible to access the invoked command itself from variable?
>
> Is it possible to use patterns (
> http://docs.ansible.com/intro_patterns.html) with tags?
> Something like --tags=config,&reload would be very helpful.
>
> ------ Example
>
> Given i have:
>
> - task A with tags: [ config ]
> - task B with tags: [ config, reload ]
> - task C with tags: [ service, reload ]
>
> ---- Problem
>
> I'd like to skip task B if --tags does not contain 'config' AND 'reload'.
>
> Thanks in advance.
>
>
>
>
>
>
>  --
> 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/5c9e5307-59b7-4b30-b366-3b279cecdd4c%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/5c9e5307-59b7-4b30-b366-3b279cecdd4c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgwKT_EZ1w4hkFKBrReGT2P7GUAb%3DPkiw%2BxBWKtNHKYyxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to