So what if I want to run playbook a,b,c if group a and c,d,e if group type
is b

can it be achieved via one combined playbook

On Thu, Feb 22, 2018 at 12:53 AM, Brian Coca <bc...@redhat.com> wrote:

> Your roles sounds like 'other type of group', i.e webserver, dbserver,
> just define those as groups in Ansible. and then:
>
> hosts; rolea:&groupa
>
> ^ play runs against hosts in BOTH groups.
>
>
> In Ansible 'role' means a 'reusable component' that can be
> tasks/templates/vars/etc, it is not associated to a host directly,
> that is what plays do.
>
>
> --
> ----------
> Brian Coca
>
> --
> 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/CACVha7fpmuhoM-LS-vU-nTwDqTMRZ95%3DWwmP1DrP_cQ%
> 3D81tSoQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPWPJXYvQhyRV%2BTrWU%2BdX2nFL1opHH7mAiLZ%2BP7a1Udr__LPgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to