Re: [ansible-project] Re: Import/Include a Single task from one play book to another play book.

2018-03-15 Thread Brian Coca
import_X applies the tags to the imported tasks, include_X has the tags applied to itself, but not to the included tasks (we plan update with feature to allow for this). -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project"

Re: [ansible-project] Re: Import/Include a Single task from one play book to another play book.

2018-03-15 Thread Vino B
Hi All, I was able to find the solution as this was stated in the ansible documentation And import/include statements: - import_tasks: foo.yml tags: [web,foo] or: - include_tasks: foo.yml tags: [web,foo] All of these apply the specified tags to EACH task inside the play, included file,

Re: [ansible-project] Re: Import/Include a Single task from one play book to another play book.

2018-03-14 Thread Brian Coca
no, you cannot pass 'run this tag' to includes. -- -- 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

[ansible-project] Re: Import/Include a Single task from one play book to another play book.

2018-03-14 Thread SUMIT SAHAY
On Wednesday, 14 March 2018 11:01:34 UTC+5:30, Vino B wrote: > > Hi All, > > Not sure whether it is possible, but let me raise the question, it is > possible to import/include a single task for one play book to another play > book rather than importing the entire play book.e.g > > common.yml