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/079b0ee0-03b4-47ac-ae18-26aca46891e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to