Remove remnants of old pack when pushing an update
This commit is contained in:
parent
c8b5d97c02
commit
3517e71f60
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user