From 7ad655fd56c643f66348c24feb62c21f3331dd85 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 18 Nov 2020 08:25:26 -0600 Subject: [PATCH] Rename mc-admin to minecraft --- roles/minecraft-forge/tasks/main.yml | 8 ++++---- roles/minecraft-forge/templates/minecraft@.service | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/minecraft-forge/tasks/main.yml b/roles/minecraft-forge/tasks/main.yml index ba5ebe0..0af30d5 100644 --- a/roles/minecraft-forge/tasks/main.yml +++ b/roles/minecraft-forge/tasks/main.yml @@ -13,11 +13,11 @@ - unzip - name: Assure minecraft admin group group: - name: mc-admin + name: minecraft - name: Assure server user user: name: minecraft - group: mc-admin + group: minecraft system: yes home: /var/minecraft - name: Assure var directory @@ -25,7 +25,7 @@ path: /var/minecraft state: directory owner: root - group: mc-admin + group: minecraft # Sticky, SetGID mode: "3770" - name: Assure systemd unit @@ -152,7 +152,7 @@ path: "/var/minecraft/{{ mcname }}/world" state: directory owner: minecraft - group: mc-admin + group: minecraft when: not stat_mcroot_world.stat.exists - name: Configure server block: diff --git a/roles/minecraft-forge/templates/minecraft@.service b/roles/minecraft-forge/templates/minecraft@.service index 7065330..7b4da21 100644 --- a/roles/minecraft-forge/templates/minecraft@.service +++ b/roles/minecraft-forge/templates/minecraft@.service @@ -10,7 +10,7 @@ After=network.target [Service] User=minecraft -Group=mc-admin +Group=minecraft WorkingDirectory=/var/minecraft/%i PrivateUsers=true ProtectSystem=full