That's a common logical error that I've come across too. Tags aren't
called, they are only applied in playbooks, someone might be able to word
that better.

The only way to call a tag is when running ansible playbook.

I spoke to Michael after Ansible fest San Fran and he mentioned that other
are having this issue too.

I'm not sure if this is being addressed, someone else might know off the
top of their head?

Stephen

On 17 December 2014 at 10:00, 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.
>


-- 
Steve

-- 
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%2Bemtqu%3DFiz-8KCBD%2BcndobiBytL%2BLkAVDi19oOqUfgAcpZKVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to