Adding minecraft server infra, so when the server dev work is complete, it's all ready to go
This commit is contained in:
parent
3386385459
commit
f180c12f02
|
@ -0,0 +1,29 @@
|
|||
# Configure minecraft server
|
||||
---
|
||||
- name: Create home dirs for znc
|
||||
file:
|
||||
path: /var/lib/minecraft
|
||||
state: directory
|
||||
owner: minecraft
|
||||
group: root
|
||||
mode: 0770
|
||||
recurse: yes
|
||||
|
||||
- name: Install minecraft target
|
||||
copy:
|
||||
dest: /etc/systemd/system/minecraft.service
|
||||
content: |
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Unit]
|
||||
Description=Minecraft Game Server
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
User=znc
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -7,7 +7,12 @@
|
|||
- group:
|
||||
name: sudo
|
||||
state: present
|
||||
#Service accounts
|
||||
- include: users/minecraft.yml
|
||||
- include: users/bzflag.yml
|
||||
- include: users/znc.yml
|
||||
|
||||
#Normal Users
|
||||
- include: users/amcclure.yml
|
||||
- include: users/ben.yml
|
||||
- include: users/ubergeek.yml
|
||||
|
@ -42,7 +47,6 @@
|
|||
- include: users/k4j.yml
|
||||
- include: users/ultima.yml
|
||||
- include: users/ragnarok.yml
|
||||
- include: users/znc.yml
|
||||
- include: users/campari.yml
|
||||
- include: users/jundi.yml
|
||||
- include: users/rado.yml
|
||||
|
@ -54,7 +58,6 @@
|
|||
- include: users/bercik.yml
|
||||
- include: users/khuxkm.yml
|
||||
- include: users/z00t.yml
|
||||
- include: users/bzflag.yml
|
||||
- include: users/swann.yml
|
||||
- include: users/ukhuwah.yml
|
||||
- include: users/mom.yml
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: add group minecraft
|
||||
group:
|
||||
name: minecraft
|
||||
system: yes
|
||||
state: present
|
||||
|
||||
- name: Add the user minecraft
|
||||
user:
|
||||
name: minecraft
|
||||
system: yes
|
||||
shell: /bin/false
|
||||
groups: minecraft
|
||||
create_home: yes
|
||||
home: /var/lib/minecraft
|
||||
state: present
|
Loading…
Reference in New Issue