henchman icon indicating copy to clipboard operation
henchman copied to clipboard

with_items implementation for tasks

Open madhurranjan opened this issue 9 years ago • 2 comments

madhurranjan avatar Oct 08 '15 05:10 madhurranjan

First pass of with_items will perform like ansible's. Register and using templates as a substitute for a list will not work yet

jlin21 avatar Jan 15 '16 01:01 jlin21

To finish off this task, register support needs to be done. Solution:

  • Add a register param in task.Run(...), if the param is not empty then use it as a list. This way it task.Run knows that it's a with_items call.
  • Could also check the with_items field of the task. If the with_items field isn't null keep adding onto the register variable if it's present

jlin21 avatar Feb 04 '16 19:02 jlin21