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/2172409.x5mzheyiT5%40x1.
For more options, visit https://groups.google.com/d/optout.