# {{ ansible_managed }} [Unit] Description=Minecraft server %i After=network.target [Service] ExecStart=/usr/bin/java -Xmx{{ minecraft_java_xmx | default('1024M') }} -Xms{{ minecraft_java_xms | default('1024M') }} -jar {{ minecraft_opt_path }}/bin/server.jar nogui SuccessExitStatus=143 Type=simple User={{ minecraft_user }} Group={{ minecraft_group }} WorkingDirectory={{ minecraft_var_path }}/%i Restart=on-failure SyslogIdentifier=minecraft SyslogFacility={{ minecraft_syslog_facility }} [Install] WantedBy=multi-user.target