On 31.07.2019 16:32, Kristiyan Zdravkov wrote:
Could you please advise me whether I can iterate separately to each of the
variable files in the directory prod with Ansible and how to do it.

You would need to include_vars on one file, do some task(s), and then include the next var and do some task(s) and so on.

With include_tasks you can loop over a yaml file with one or more tasks in it.

The variable files you can add in a variable that you use in the loop, if you need get the variable dynamicly use the find module.

--
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a9bf31ed78f2c63ecd5e5026ee241ac7%40olstad.com.

Reply via email to