From 1f96925159fd7fffc2a10dff53d7d953feed6164 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 24 Apr 2013 22:31:21 -0400 Subject: [PATCH] Update role example to show tag usage --- examples/playbooks/roletest.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/playbooks/roletest.yml b/examples/playbooks/roletest.yml index d973565cb4..46ee13da7d 100644 --- a/examples/playbooks/roletest.yml +++ b/examples/playbooks/roletest.yml @@ -41,10 +41,11 @@ # - webservers # but you can also pass variables to them, so they can be parameterized. You can call - # a role more than once with different parameters too. It might look like this: + # a role more than once with different parameters too. It might look like the section + # below. Note I can also declare tags at this time. - - { role: foo, param1: 1000, param2: 2000 } - - { role: foo, param1: 8000, param2: 9000 } + - { role: foo, param1: 1000, param2: 2000, tags: [ 'foo', 'bar' ] } + - { role: foo, param1: 8000, param2: 9000, tags: [ 'baz' ] } # add as many roles as you like, roles takes a list of roles names # these paths can be qualified, but if bare, it will look from them in