Add factorio service/game-server
This commit is contained in:
parent
d6c2dd419a
commit
1a6395f602
3 changed files with 139 additions and 0 deletions
playbooks/roles/factorio/vars
66
playbooks/roles/factorio/vars/main.yml
Normal file
66
playbooks/roles/factorio/vars/main.yml
Normal file
|
@ -0,0 +1,66 @@
|
|||
---
|
||||
factorio_port: 34197
|
||||
factorio_uid: 845
|
||||
factorio_gid: 845
|
||||
|
||||
factorio_svc:
|
||||
domain: "{{ all_services | service_get_domain(role_name) }}"
|
||||
port: "{{ factorio_port }}"
|
||||
|
||||
factorio_env:
|
||||
PORT: "{{ factorio_port }}"
|
||||
USERNAME: "{{ vault_factorio.username }}"
|
||||
TOKEN: "{{ vault_factorio.token }}"
|
||||
|
||||
factorio_json:
|
||||
name: "StammtischOnAutomation"
|
||||
description: "Private Server"
|
||||
tags: []
|
||||
|
||||
max_players: 0
|
||||
visibility:
|
||||
public: true
|
||||
lan: true
|
||||
|
||||
username: "{{ vault_factorio.username }}"
|
||||
password: ""
|
||||
token: "{{ vault_factorio.token }}"
|
||||
|
||||
game_password: "{{ vault_factorio.game_password }}"
|
||||
require_user_verification: true
|
||||
|
||||
max_upload_in_kilobytes_per_second: 0
|
||||
max_upload_slots: 0
|
||||
max_heartbeats_per_second: 60
|
||||
ignore_player_limit_for_returning_players: true
|
||||
allow_commands: "admins-only"
|
||||
autosave_interval: 10
|
||||
autosave_slots: 6
|
||||
afk_autokick_interval: 60
|
||||
|
||||
auto_pause: true
|
||||
auto_pause_when_players_connect: false
|
||||
only_admins_can_pause_the_game: true
|
||||
autosave_only_on_server: true
|
||||
non_blocking_saving: false
|
||||
|
||||
minimum_segment_size: 25
|
||||
minimum_segment_size_peer_count: 20
|
||||
maximum_segment_size: 100
|
||||
maximum_segment_size_peer_count: 10
|
||||
|
||||
|
||||
factorio_compose:
|
||||
watchtower: false
|
||||
image: "factoriotools/factorio:stable"
|
||||
volumes:
|
||||
- data:/factorio
|
||||
- ./config:/factorio/config
|
||||
file:
|
||||
services:
|
||||
app:
|
||||
ports:
|
||||
- "{{ factorio_port }}:{{ factorio_port }}/udp"
|
||||
- "27015:27015/tcp"
|
||||
volumes:
|
||||
data:
|
Loading…
Add table
Add a link
Reference in a new issue