I'm trying to add tags to tasks via includes but it doesn't work as I 
expect. I have

$ cat site.yml 
#- { include: foo.yml, tags: [ foo ] }
- include: foo.yml tags=foo

$ cat foo.yml 
- hosts: all
  tasks:
     - name: foo
       debug: msg=foo

Then

$ ansible-playbook -i inventory site.yml -t foo
ERROR: tag(s) not found in playbook: foo.  possible values: 

Same error with 1.8.2 and current devel branch and with the other include 
syntax commented above.

Any help much appreciated,

Adam

-- 
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/066af8dd-6b55-4def-b458-7007a686e941%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to