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 - unzip
- name: Assure minecraft admin group - name: Assure minecraft admin group
group: group:
name: mc-admin name: minecraft
- name: Assure server user - name: Assure server user
user: user:
name: minecraft name: minecraft
group: mc-admin group: minecraft
system: yes system: yes
home: /var/minecraft home: /var/minecraft
- name: Assure var directory - name: Assure var directory
@ -25,7 +25,7 @@
path: /var/minecraft path: /var/minecraft
state: directory state: directory
owner: root owner: root
group: mc-admin group: minecraft
# Sticky, SetGID # Sticky, SetGID
mode: "3770" mode: "3770"
- name: Assure systemd unit - name: Assure systemd unit
@ -152,7 +152,7 @@
path: "/var/minecraft/{{ mcname }}/world" path: "/var/minecraft/{{ mcname }}/world"
state: directory state: directory
owner: minecraft owner: minecraft
group: mc-admin group: minecraft
when: not stat_mcroot_world.stat.exists when: not stat_mcroot_world.stat.exists
- name: Configure server - name: Configure server
block: block:

View File

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