thanks! 

I'll research this a bit more, as I still don't see a clear way yet on how 
to condition the second loop to run only on a subset of properties read 
from the variable file; but the loop_control is a good start. 


On Wednesday, November 15, 2017 at 5:33:15 PM UTC+2, Kai Stian Olstad wrote:
>
> On Wednesday, 15 November 2017 16.08.39 CET Andrei Baban wrote: 
> > thanks Kai for your answer! 
> > 
> > the issue with find module would be that it would work fine if there 
> would 
> > be only one type of file with one replace in it. But I store in the 
> > variables file multiple type of files that each have different patterns 
> to 
> > search for and replace. I would need in pseudocode a for each syntax 
> that 
> > would run over both find and replace, something like 
> > 
> > for each type of file { 
> >     find all matching files 
> >     replace all resective patterns relative only to this file 
> > } 
> > 
> > hope this makes sense :) 
>
> You have this functionality in Ansible by using include/include_task, 
> with_item/with_dict and loop_control. 
>
>
> -- 
> Kai Stian Olstad 
>

-- 
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/bfc532f5-12ee-4c9f-a85f-44a683c38393%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to