Build minecraft server.properties from Ansible variable
This commit is contained in:
parent
c87dd6cb3e
commit
e9113856ea
@ -20,3 +20,8 @@ minecraft_var_path: /var/opt/minecraft
|
|||||||
minecraft_syslog_facility: local5
|
minecraft_syslog_facility: local5
|
||||||
|
|
||||||
minecraft_notifier_state: present
|
minecraft_notifier_state: present
|
||||||
|
|
||||||
|
minecraft_config:
|
||||||
|
white-list: true
|
||||||
|
enforce-whitelist: true
|
||||||
|
server-port: 25565
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
white-list: {{ (minecraft_config.whitelist | default(true)) | ternary('true', 'false') }}
|
# {{ ansible_managed }}
|
||||||
enforce-whitelist: {{ (minecaft_config.enfoce_whitelist | default(true)) | ternary('true', 'false') }}
|
|
||||||
server-port: {{ item.port | default(25565) }}
|
{% for k, v in minecraft_config.items() | default({}) %}
|
||||||
|
{{ k }}: {{ v }}
|
||||||
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user