- name: Restore volumes ansible.builtin.include_tasks: file: tasks/steps/restore-volume.yml loop: "{{ all_services | service_get_backups(role_name) }}" when: volume.type == 'docker' loop_control: loop_var: volume