Clean up after terraria server deployment
This commit is contained in:
parent
6e1bf6a467
commit
f9ae17b34d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user