Remove jinja in when

This commit is contained in:
Salt 2023-12-23 13:25:49 -06:00
parent 9cc45fa8d3
commit b23a4ffa3d

View File

@ -24,7 +24,7 @@
chdir: "{{ tmodloader_data_prefix }}/data/ModLoader/Mods"
creates: "{{ tmodloader_data_prefix }}/data/ModLoader/Mods/{{ item }}.tmod"
with_list: "{{ tmodloader_mods }}"
when: "{{ tmodloader_mods }}"
when: tmodloader_mods
notify: "restart tmodloader {{ tmodloader_name }}"
- name: enable mods
ansible.builtin.template:
@ -33,7 +33,7 @@
owner: "{{ tmodloader_uid }}"
group: "{{ tmodloader_gid }}"
mode: "0750"
when: "{{ tmodloader_mods }}"
when: tmodloader_mods
notify: "restart tmodloader {{ tmodloader_name }}"
- name: assure tmodloader {{ tmodloader_name }} files
ansible.builtin.file: