- include_vars: "calico-files.yaml" - name: calico setup block: - name: calico install k8s: state: present context: "{{ my_context }}" resource_definition: "{{ lookup('file', item) | from_yaml }}" with_items: - "{{ calico_files }}"