Fix server icon and add a private /tmp, allow rw tmpfs
This commit is contained in:
parent
cedb64d948
commit
682fb98785
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
@ -31,6 +31,17 @@
|
||||||
tags:
|
tags:
|
||||||
- minecraft
|
- minecraft
|
||||||
when: ( minecraft.local_plugins|default([]) ) | length
|
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
|
- name: Fetch plugins
|
||||||
loop: "{{ minecraft.plugins }}"
|
loop: "{{ minecraft.plugins }}"
|
||||||
get_url:
|
get_url:
|
||||||
|
|
|
@ -10,7 +10,8 @@ Group=nogroup
|
||||||
WorkingDirectory={{ minecraft.paths.data }}
|
WorkingDirectory={{ minecraft.paths.data }}
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
BindPaths=-{{ minecraft.paths.data }}
|
BindPaths=-{{ minecraft.paths.data }}
|
||||||
TemporaryFileSystem=/:ro
|
TemporaryFileSystem=/:rw
|
||||||
|
PrivateTmp=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Reference in New Issue