Rename mc-admin to minecraft
This commit is contained in:
parent
dd698b1420
commit
7ad655fd56
@ -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:
|
||||
|
@ -10,7 +10,7 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
User=minecraft
|
||||
Group=mc-admin
|
||||
Group=minecraft
|
||||
WorkingDirectory=/var/minecraft/%i
|
||||
PrivateUsers=true
|
||||
ProtectSystem=full
|
||||
|
Loading…
Reference in New Issue
Block a user