Hi Kai,

On Thu, Nov 29, 2018 at 07:17:06AM +0100, Kai Stian Olstad wrote:
> On 29.11.2018 06:21, Andy Smith wrote:
> >If I add a tag attribute to each of those imports, i.e.:
> >
> >- import_tasks: configure_this.yml tags=some_server
> >- import_tasks: create_that.yml tags=some_server
> >- import_tasks: other_config.yml tags=some_server
> 
> Since you are setting the tag on the role in the play, you don't need to tag
> it here again.

If I leave out the "tags=some_server" and then do:

$ ansible-playbook --tags some_server

none of the imported tasks are executed (or maybe not even
imported).

If I add "tags=some_server" on the end of them, then they are.

This is with Ansible version 2.5.1.

Cheers,
Andy

-- 
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/20181129064103.GA4569%40bitfolk.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to