What is the problem with using tags?  We tag every role.  At the moment, we
have 65 tags aggregated across site.yml.

tags are designed specifically for this functionality.

On Fri, Feb 12, 2016 at 9:21 AM, Daniele Varrazzo <
daniele.varra...@gmail.com> wrote:

> Hello,
>
> All my playbooks looks like:
>
>     - hosts: web_servers
>       roles:
>         - role: nginx
>           tags: nginx
>         - role: web_landing
>           tags: web_landing
>         - role: web_server
>           tags: web_server
>
> because I want to be able to deploy only a certain role or subset of roles
> sometimes: because I'm developing on these, because a playbook may be huge
> and people know what bit are to be deployed and so on. And the only way
> I've found to run only a subset of the playbook is to use tags.
>
> Is there any command-line parameter or other options I'm missing in order
> to deploy only certain roles in a playbook, without abusing tags?
>
> Thank you very much!
>
> -- Daniele
>
> --
> 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/52f56d5d-717a-4fa2-9c14-344153c6f174%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/52f56d5d-717a-4fa2-9c14-344153c6f174%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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/CAD8N0v-nb2iYs3wQodc77cu9u4U99217YNRkOt4rJXpj1u%2BrjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to