Hello thank,

well I can have - role: javajdk
                           tags: javajdk 

but this tags this role in this ONE palybook. But if I run an other 
playbook with - role: javajdk there is not tag.
So either I have to tag it every time or, smater, I would tag the role 
itself. But I have not found a method to do so

Michael 

Am Dienstag, 21. November 2017 14:59:11 UTC+1 schrieb [email protected]:
>
> Hello 
>
> I have a site.yml which imports several playbooks. 
> - import_playbook: webservers.yml
> - ....
>
> Every playbook "calls" several roles: 
> - name: apply the webserver configuration 
> hosts: webservers
> roles:
> - javajdk
> - tomcat
> - apache
>
> Now how can I run lets say only the javajdk role ?
>
> ansible-playbook -i inventory/xx  webservers.yml      would run all 
> roles...  I know that there are tags, but how do I assign them to a role in 
> general?
>
> Thanks a lot 
> Michael
>
>

-- 
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/fbabf22b-c297-4d9e-b210-004c90d9329e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to