From 9d177c783d258254be42dc67c3e91d4674ac2594 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 6 Dec 2019 18:51:08 +0100 Subject: [PATCH] server/minecraft: Split service controlling scripts and server controlling scripts --- roles/server/minecraft/tasks/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/roles/server/minecraft/tasks/main.yml b/roles/server/minecraft/tasks/main.yml index 495a8c8..2eb6996 100644 --- a/roles/server/minecraft/tasks/main.yml +++ b/roles/server/minecraft/tasks/main.yml @@ -69,7 +69,7 @@ group: "{{ system_user }}" mode: "u=r,g=r,o=" -- name: Configure control scripts +- name: Configure service controlling scripts template: src: "{{ item.name }}" dest: "{{ item.path }}" @@ -79,6 +79,15 @@ loop: - name: "launch.sh" path: "{{ launch_script }}" + +- name: Configure server controlling scripts + template: + src: "{{ item.name }}" + dest: "{{ item.path }}" + owner: "{{ system_user }}" + group: "{{ system_user }}" + mode: "u=rx,g=r,o=" + loop: - name: "control.sh" path: "{{ remote_control_script }}"