Fix more ownership
This commit is contained in:
parent
3e6af36e93
commit
b5970881ee
@ -59,12 +59,6 @@
|
||||
file:
|
||||
path: "{{ terraria_root }}/{{ terraria_name }}/TerrariaServer.bin.x86_64"
|
||||
mode: "0755"
|
||||
- name: Fix ownership
|
||||
file:
|
||||
path: "{{ terraria_root }}/{{ terraria_name }}"
|
||||
recurse: yes
|
||||
owner: terraria
|
||||
group: ter-admin
|
||||
- name: Clean up
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
@ -78,6 +72,12 @@
|
||||
owner: terraria
|
||||
group: ter-admin
|
||||
state: directory
|
||||
- name: Fix ownership
|
||||
file:
|
||||
path: "{{ terraria_root }}/{{ terraria_name }}"
|
||||
recurse: yes
|
||||
owner: terraria
|
||||
group: ter-admin
|
||||
when: not stat_server_binary.stat.exists
|
||||
- name: Configure server
|
||||
block:
|
||||
@ -85,6 +85,8 @@
|
||||
template:
|
||||
src: config
|
||||
dest: "{{ terraria_root }}/{{ terraria_name }}/config"
|
||||
owner: terraria
|
||||
group: ter-admin
|
||||
become: yes
|
||||
- name: Enable service
|
||||
systemd:
|
||||
|
Loading…
Reference in New Issue
Block a user