From e0d6244aaec9f4f7259b45543201f10a4b718dff Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Tue, 21 Feb 2023 21:30:33 -0600 Subject: [PATCH] Add conditionals to tmodloader download logic --- roles/docker-tmodloader13/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) 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: