Skip to main content
Terminology and markup
Source Link
Kusalananda
  • 357.6k
  • 42
  • 743
  • 1.1k

I found the solution. The solution is to quote the whole stringvalue of variables as one variable: the template_src: "{{ path_to_vm_directory }}/{{ name_of_vm_to_reset }}/{{ name_of_vm_to_reset }}.qcow2{{ vdisk_template_filename_suffix }}" key as one string value:

template_src: "{{ path_to_vm_directory }}/{{ name_of_vm_to_reset }}/{{ name_of_vm_to_reset }}.qcow2{{ vdisk_template_filename_suffix }}"

I found the solution. The solution is to quote the whole string of variables as one variable: template_src: "{{ path_to_vm_directory }}/{{ name_of_vm_to_reset }}/{{ name_of_vm_to_reset }}.qcow2{{ vdisk_template_filename_suffix }}"

I found the solution. The solution is to quote the whole value of the template_src key as one string value:

template_src: "{{ path_to_vm_directory }}/{{ name_of_vm_to_reset }}/{{ name_of_vm_to_reset }}.qcow2{{ vdisk_template_filename_suffix }}"
Source Link
jitter
  • 117
  • 5

I found the solution. The solution is to quote the whole string of variables as one variable: template_src: "{{ path_to_vm_directory }}/{{ name_of_vm_to_reset }}/{{ name_of_vm_to_reset }}.qcow2{{ vdisk_template_filename_suffix }}"