Sorry i just realized there is a simlear question https://groups.google.com/forum/#!topic/ansible-project/c8bdwPtR640
On Wednesday, December 17, 2014 11:53:52 PM UTC+1, DomaNitro wrote: > > Hi, > > I have play that includes another play > > apps.yml > - name: apps.yml | provision > hosts: apps > include: provision.yml > > > - name: apps.yml | common stuff > hosts: apps > roles: > - do_common_stuff > > provision.yml > - hosts: "{{subset_var}}" > connection: local > gather_facts: no > pre_tasks: > - name: do some stuff > dosome_tasks > roles: > - { role: do_some_provisioning } > - { role: do_more_stuff} > - { role: maybe_also_dns} > > > The concept is that provision will be called from different plays for > different groups and the provision play will take the subset of the parent > play. > > If you have a solution that does not involve passing "-e" it would be > great to share > > > -- 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/27ee3c13-2698-4689-8b08-576ad098ad63%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.