Hi,

I have to run something like this in a playbook task:

ansible-playbook sites/playbook.yml --limit=server1,server2

I would like to include this playbook in another playbook. How to add the 
--limit parameter:

- name: my run list
  hosts: localhost
  connection: local
  gather_facts: False
  tasks:
    - include: sites/playbook.yml
    - name: my other tasks
    ...

The --limit parameter content is generated on the fly, so I don't know in 
advance the servers where the playbook will be applied.

Any ideas ?

Thanks

-- 
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/64330d1d-da69-4d1f-a303-f7bc66b5d1f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to