mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-06-27 04:09:23 +00:00
Adding minecraft server infra, so when the server dev work is complete, it's all ready to go
This commit is contained in:
29
roles/shell/tasks/minecraft.yml
Normal file
29
roles/shell/tasks/minecraft.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user