Hi Vlado,
I think you are misunderstanding the feature. There is no sub
-election with tags on role definition, when you:
- {role: testrole, tags: ['aaaa']}
What you are doing is tagging all tasks in testrole with 'aaaa' on top
of existing tags. So it would look like this once imported:
- name: aaaa tag
local_action: command echo
tags:
- aaaa
- name: bbbb tag
local_action: command echo
tags:
- bbbb
- aaaa
You are not saying 'run only those tagged with 'aaaa', that is not
possible when specifying a role to import.
I suggest making 2 roles and only importing the one with the tasks you
want to execute.
--
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 [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/CAJ5XC8mRn1qWaU2qf0f4NGdtt7WREqvE1aRVw6YL0xMM7gqH0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.