diff --git a/roles/docker-tmodloader13/tasks/main.yml b/roles/docker-tmodloader13/tasks/main.yml index 1a7b8da..c3a829b 100644 --- a/roles/docker-tmodloader13/tasks/main.yml +++ b/roles/docker-tmodloader13/tasks/main.yml @@ -23,6 +23,7 @@ chdir: "{{ tmodloader_data_prefix }}/data/ModLoader/Mods" creates: "{{ tmodloader_data_prefix }}/data/ModLoader/Mods/{{ item }}.tmod" with_list: "{{ tmodloader_mods }}" + when: "{{ tmodloader_mods }}" notify: "restart tmodloader {{ tmodloader_name }}" - name: enable mods ansible.builtin.template: @@ -31,6 +32,7 @@ owner: "{{ tmodloader_uid }}" group: "{{ tmodloader_gid }}" mode: "0750" + when: "{{ tmodloader_mods }}" notify: "restart tmodloader {{ tmodloader_name }}" - name: assure tmodloader {{ tmodloader_name }} files ansible.builtin.file: