Still no luck with templating, guessing I am not supposed to have any. So decided to convert with these builtins to stay on the safe side:
- name: Prepare temporary files
ansible.builtin.tempfile:
state: directory
register: temp_vars
delegate_to: localhost
- name: Fetch remote variables
ansible.builtin.uri:
url: "{{ fetch_vars_url }}"
dest: "{{ temp_vars.path + '/vars.yaml' }}"
delegate_to: localhost
- name: Add remote variables
ansible.builtin.include_vars:
file: "{{ temp_vars.path + '/vars.yaml' }}"
temp tasks are (probably) getting no change attr