Rename mc-admin to minecraft

This commit is contained in:
Salt 2020-11-18 08:25:26 -06:00
parent dd698b1420
commit 7ad655fd56
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -10,7 +10,7 @@ After=network.target
[Service]
User=minecraft
Group=mc-admin
Group=minecraft
WorkingDirectory=/var/minecraft/%i
PrivateUsers=true
ProtectSystem=full