Remove remnants of old pack when pushing an update

This commit is contained in:
Salt 2020-06-24 10:18:09 -05:00
parent c8b5d97c02
commit 3517e71f60

View File

@ -49,6 +49,15 @@
register: get_mcpack
- name: Install modpack
block:
- name: Remove remnants of old pack
file:
path: "{{ item }}"
state: absent
loop:
- "/var/minecraft/{{ mcname }}/config"
- "/var/minecraft/{{ mcname }}/coremods"
- "/var/minecraft/{{ mcname }}/mods"
- "/var/minecraft/{{ mcname }}/scripts"
- name: Unpack zip
unarchive:
src: "/var/minecraft/{{ mcname }}/modpack.zip"