Fix server icon and add a private /tmp, allow rw tmpfs

This commit is contained in:
Alex 2020-06-19 23:27:10 +02:00
parent cedb64d948
commit 682fb98785
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
3 changed files with 13 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -31,6 +31,17 @@
tags:
- minecraft
when: ( minecraft.local_plugins|default([]) ) | length
- name: Copy binary files
loop: "{{ minecraft.files }}"
copy:
src: "{{ role_path }}/files/mcdir/{{ item }}"
dest: "{{ minecraft.paths.data }}/{{ item }}"
mode: "700"
owner: "nobody"
group: "nogroup"
tags:
- minecraft
when: ( minecraft.files|default([]) ) | length
- name: Fetch plugins
loop: "{{ minecraft.plugins }}"
get_url:

View File

@ -10,7 +10,8 @@ Group=nogroup
WorkingDirectory={{ minecraft.paths.data }}
ProtectSystem=strict
BindPaths=-{{ minecraft.paths.data }}
TemporaryFileSystem=/:ro
TemporaryFileSystem=/:rw
PrivateTmp=true
[Install]
WantedBy=multi-user.target