Re: [ansible-project] Question: how to use variable in with_sequence, casting to int results in zero value

2016-12-08 Thread frank
Hi Kai, Thanks for your reaction. I think item.path won't work because of the structure of result.files. result.files contains a list [..path..], [.path..] ,So in the debug var i should reference item[0].path , item[1].path I worked my way around creating a list # create a list of policies

[ansible-project] Question: how to use variable in with_sequence, casting to int results in zero value

2016-12-01 Thread frank
I am trying to process the result from the find module. The result contains 3 file paths which i would like to process in a loop. The number of files depends on the number of files found in the directories and is set by result.matched Using the with_sequence loop should do the trick, i think.