On Tue, 13 Jan 2015, Brian Coca wrote:

> I'm not sure I'm reading this right, would you just want?:
> 
> - include: tasklist.yml

The problem's when it's:

- include: ../../common/tasks/tasklist.yml param1=...

which is klunky to read, error-prone to write, and makes refactoring the 
common tasks tricky (particularly if the common tasks and their consumers 
live in separately-gated repositories).

As far as I can tell* ansible avoids having sprawling search paths for 
task includes (presumably so that it's easy to tell what's going on 
without too much external context); but used judiciously, something like 
this would let me introduce a smidgen of useful abstraction into my 
playbooks.

* if that's not right, please correct me!



-- 
[email protected]  http://ioctl.org/jan/ Short, dark, ugly: pick any three
Donate a signature: http://ioctl.org/jan/sig-submit

Reply via email to