Is it possible to apply a list of items to multiple tasks in an Ansible playbook? To give an example:
- name: download and execute hosts: server1 tasks:
You have the possibility to define a yaml list in a variables file:
--- myfiles: - "file1.sh" - "file2.sh" ...
and then you can use
with_items: "{{ myfiles }}"
in the task.