How do I loop over each line inside a file with ansible?


I am looking for something that would be similar to with_items: but that would get the list of items from a file instead of having to include it in the playbook file.

How can I do this in ansible?


I managed to find an easy alternative:

Leave a Reply