Fix more ownership

This commit is contained in:
Salt 2020-05-15 11:04:34 -05:00
parent 3e6af36e93
commit b5970881ee

View File

@ -59,12 +59,6 @@
file: file:
path: "{{ terraria_root }}/{{ terraria_name }}/TerrariaServer.bin.x86_64" path: "{{ terraria_root }}/{{ terraria_name }}/TerrariaServer.bin.x86_64"
mode: "0755" mode: "0755"
- name: Fix ownership
file:
path: "{{ terraria_root }}/{{ terraria_name }}"
recurse: yes
owner: terraria
group: ter-admin
- name: Clean up - name: Clean up
file: file:
path: "{{ item }}" path: "{{ item }}"
@ -78,6 +72,12 @@
owner: terraria owner: terraria
group: ter-admin group: ter-admin
state: directory 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 when: not stat_server_binary.stat.exists
- name: Configure server - name: Configure server
block: block:
@ -85,6 +85,8 @@
template: template:
src: config src: config
dest: "{{ terraria_root }}/{{ terraria_name }}/config" dest: "{{ terraria_root }}/{{ terraria_name }}/config"
owner: terraria
group: ter-admin
become: yes become: yes
- name: Enable service - name: Enable service
systemd: systemd: