Hi,

This was asked recently.

Tags work on task includes, and roles.

They do not currently do anything on playbook level includes.

This is something we may consider after the current refactoring effort (1.9
timeframe) completes.




On Wed, Dec 17, 2014 at 1:00 PM, Quentin Stafford-Fraser <
quenti...@gmail.com> wrote:
>
> Hello all...
>
> In the docs here <http://docs.ansible.com/playbooks_tags.html> it
> suggests that I should be able to add tags to an include statement like
> this:
>
> ---
> - include: site.yml tags=foo
>
>
> This simple playbook works fine unless I try actually doing anything with
> tags, like this:
>
> ansible-playbook -i hosts foo.yml --tags foo
>
>
> which gives me an error:
>
>  ERROR: tag(s) not found in playbook: foo.  possible values:
>
>
> The documentation suggests this should work.  Am I doing something foolish?
>
> Many thanks!
> Quentin
>
>  --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/d636f98b-9ac6-4930-90a3-6d726802293f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/d636f98b-9ac6-4930-90a3-6d726802293f%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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgxkymxQBqqc2gMFZ1_pKSnqOgcDkGpTnGQzXQWGfAGsqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to