I think this functionality has been moved to roles. You can call roles with tags and I think also call dependency roles with tags.
Henning On Tuesday, January 27, 2015 at 1:55:32 AM UTC+1, baldwin wong wrote: > > -> % cat playbook1.yml > - hosts: 127.0.0.1 > gather_facts: false > > tasks: > - name: Task1 > shell: echo "This is Task1" > > - include: playbook2.yml tags=play2 > > > -> % cat playbook2.yml > - hosts: 127.0.0.1 > gather_facts: false > > tasks: > - name: Task2 > shell: echo "This is Task2" > > - include: playbook3.yml tags=play3 > > > -> % cat playbook3.yml > - hosts: 127.0.0.1 > gather_facts: false > > tasks: > - name: Task3 > shell: echo "This is Task3" > > -> % > > -> % ansible-playbook playbook1.yml -t 'play2' > ERROR: tag(s) not found in playbook: play2. possible values: > > Hi, > > In some devel version of 1.8 I was able to run this play with no problem. > Now I am unable to do it this way due to the changes. > Since most of our plays are built this way... is there a way to call > playbooks within playbooks with a tag? > If not, what would the best way to fix this problem? > > > -- 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/59abb328-e789-43c7-b35a-7a01ef6bc8fd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
