Clean up after terraria server deployment

This commit is contained in:
Salt 2020-05-15 10:55:39 -05:00
parent 6e1bf6a467
commit f9ae17b34d

View File

@ -55,6 +55,13 @@
dest: "{{ terraria_root }}/{{ terraria_name }}"
- name: Move zip contents
shell: mv "{{ terraria_root }}/{{ terraria_name }}/Dedicated Server/*" "{{ terraria_root }}/{{ terraria_name }}"
- name: Clean up
file:
path: "{{ item }}"
state: absent
loop:
- "{{ terraria_root }}/{{ terraria_name }}/pack.zip"
- "{{ terraria_root }}/{{ terraria_name }}/Dedicated Server"
- name: Create worlds directory
file:
path: "{{ terraria_root }}/{{ terraria_name }}/worlds"