Question:
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?
Answer:
I managed to find an easy alternative:
1 2 3 |
- debug: msg="{{item}}" with_lines: cat files/branches.txt |