Commit 8521ca7c authored by Peter Nerlich's avatar Peter Nerlich
Browse files

provide enable_mods and disable_mods to union with the defaults for load_mods and disabled_mods

parent ab7972c0
......@@ -47,6 +47,7 @@ Variables for the `kif_minetest_server` role:
* `server_default_privs`: list, default: `['interact', 'shout', 'railway_operator', 'interlocking', 'itm', 'train_operator', 'ui_full', 'travelnet_attach', 'track_builder', 'home', 'atlatc']`. Priviledges to give new players. Please refer to the official minetest documentation as well as the documentation of the mods registering the priviledges.
* `load_mods`: list, default omitted for brevity. Mods to enable.
* `disabled_mods`: list, default omitted for brevity. Mods to explicitly disable. Not needed for the configuration, but for idempotence as the minetest server adds the present but not enabled mods to the config on startup.
* *you can use* `enable_mods` *and* `disable_mods` *to enable/disable mods in addition to the default. Mods that appear in both lists will be disabled.*
* *for more please refer to the documentation of `kif_minetest_server`*
Dependencies
......
......@@ -41,6 +41,7 @@ Most important variables:
* `mapserver_key`: string, default: `CHANGE_TO_PROPER_PASSWORD`. Secret for exchanging in-game data from the companion mod with the mapserver. Please, please always have this be something different than the default.
* `load_mods`: list, default omitted for brevity. Mods to enable.
* `disabled_mods`: list, default omitted for brevity. Mods to explicitly disable. Not needed for the configuration, but for idempotence as the minetest server adds the present but not enabled mods to the config on startup.
* *you can use* `enable_mods` *and* `disable_mods` *to enable/disable mods in addition to the default. Mods that appear in both lists will be disabled.*
* ...
Dependencies
......
......@@ -9,10 +9,10 @@ pgsql_connection = host={{ psql_host }} user={{ psql_user }} password={{ psql_pa
pgsql_player_connection = host={{ psql_host }} user={{ psql_user }} password={{ psql_password }} dbname={{ psql_db }}
{% endif %}
{% for mod in load_mods|sort() %}
{% for mod in load_mods | union(enable_mods | default([])) | difference(disable_mods | default([])) | sort() %}
load_mod_{{ mod }} = true
{% endfor %}
{% for mod in disabled_mods|sort() %}
{% for mod in disabled_mods | union(disable_mods | default([])) | sort() %}
load_mod_{{ mod }} = false
{% endfor %}
......@@ -20,191 +20,8 @@
server_player_backend: sqlite3
server_backend: sqlite3
server_announce: false
load_mods:
- 3d_armor
- 3d_armor_ip
- 3d_armor_sfinv
- 3d_armor_stand
- 3d_armor_ui
- advtrains
- advtrains_assets
- advtrains_freight_train
- advtrains_interlocking
- advtrains_line_automation
- advtrains_luaautomation
- advtrains_railbus
- advtrains_signals_ks
- advtrains_train_industrial
- advtrains_train_japan
- advtrains_train_jre231
- advtrains_train_rocket
- advtrains_train_steam
- advtrains_train_subway
- advtrains_train_track
- ak_announcer
- ambience
- areas
- assets
- bakedclay
- basic_materials
- basic_signs
- beacons
- bike
- biome_lib
- boards
- bonemeal
- building_blocks
- character_creator
- coloredwood
- computer
- computers
- death_markers
- digilines
- digiterms
- display_api
- elevators
- fake_fire
- farming
- font_api
- font_metro
- food
- food_basic
- hbarmor
- hbhunger
- home_workshop_common
- home_workshop_machines
- home_workshop_misc
- homedecor_3d_extras
- homedecor_bathroom
- homedecor_bedroom
- homedecor_books
- homedecor_climate_control
- homedecor_clocks
- homedecor_cobweb
- homedecor_common
- homedecor_doors_and_gates
- homedecor_electrical
- homedecor_electronics
- homedecor_exterior
- homedecor_fences
- homedecor_foyer
- homedecor_furniture
- homedecor_furniture_medieval
- homedecor_gastronomy
- homedecor_kitchen
- homedecor_laundry
- homedecor_lighting
- homedecor_misc
- homedecor_office
- homedecor_pictures_and_paintings
- homedecor_roofing
- homedecor_seating
- homedecor_tables
- homedecor_trash_cans
- homedecor_wardrobe
- homedecor_windows_and_treatments
- hudbars
- ilights
- illumination
- inbox
- itemframes
- kif_custom
- kiffood
- lavalamp
- led_marquee
- mapserver
- mesecar
- mesecons
- mesecons_alias
- mesecons_blinkyplant
- mesecons_button
- mesecons_commandblock
- mesecons_delayer
- mesecons_detector
- mesecons_doors
- mesecons_extrawires
- mesecons_fpga
- mesecons_gates
- mesecons_hydroturbine
- mesecons_insulated
- mesecons_lamp
- mesecons_lightstone
- mesecons_luacontroller
- mesecons_materials
- mesecons_microcontroller
- mesecons_movestones
- mesecons_mvps
- mesecons_noteblock
- mesecons_pistons
- mesecons_powerplant
- mesecons_pressureplates
- mesecons_random
- mesecons_receiver
- mesecons_solarpanel
- mesecons_stickyblocks
- mesecons_switch
- mesecons_torch
- mesecons_walllever
- mesecons_wires
- mobkit
- mokapi
- moreblocks
- morelights
- morelights_extras
- morelights_modern
- morelights_vintage
- moreores
- moretrains_basic
- moretrains_industrial
- moretrains_japan
- moretrains_steam
- moretrains_vintage
- moretrees
- my_castle_doors
- my_cottage_doors
- my_default_doors
- my_door_wood
- my_fancy_doors
- my_future_doors
- my_garage_door
- my_hidden_doors
- my_misc_doors
- my_old_doors
- my_saloon_doors
- my_sliding_doors
- ontime_clocks
- orienteering
- petz
- pie
- pipeworks
- plasmascreen
- protector
- serialize_lib
- shields
- signs
- signs_api
- signs_lib
- signs_road
- stained_glass
- steles
- street_signs
- streetlights_api
- streetlights_lamps
- streetlights_poles
- streets
- tfl_s7stock
- travelnet
- ts_workshop
- unified_inventory
- unifiedbricks
- unifieddyes
- waffles
- wield3d
- wieldview
disabled_mods:
- advtrains_itrainmap
- skinsdb
- snowdrift
enable_mods: []
disable_mods: []
tasks:
- name: Stop minetest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment