Skip to content

Commit

Permalink
🚸 Simplified env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
anarion80 committed Mar 18, 2024
1 parent bdcec28 commit 77a7021
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions roles/valheim/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ valheim_env:
TYPE: "{{ valheim_type }}"
SCHEDULED_RESTART: "{{ valheim_scheduled_restart }}"
SCHEDULED_RESTART_SCHEDULE: "{{ valheim_scheduled_restart_schedule }}"

# valheim_optional_env:
# WEBHOOK_URL: "{{ valheim_webhook_url }}"
# WEBHOOK_INCLUDE_PUBLIC_IP: "{{ valheim_webhook_include_public_ip }}"
# PRESET: "{{ valheim_preset }}"
# MODIFIERS: "{{ valheim_modifiers }}"
# SET_KEY: "{{ valheim_set_key }}"
# MODS: "{{ valheim_mods }}"
# ADDITIONAL_STEAMCMD_ARGS: "{{ valheim_additional_steamcmd_args }}"
# WEBHOOK_URL: "{{ valheim_webhook_url }}"
# WEBHOOK_INCLUDE_PUBLIC_IP: "{{ valheim_webhook_include_public_ip }}"
# PRESET: "{{ valheim_preset }}"
# MODIFIERS: "{{ valheim_modifiers }}"
# SET_KEY: "{{ valheim_set_key }}"
# MODS: "{{ valheim_mods }}"
# ADDITIONAL_STEAMCMD_ARGS: "{{ valheim_additional_steamcmd_args }}"
2 changes: 1 addition & 1 deletion roles/valheim/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- "{{ valheim_port_a }}:2456/udp"
- "{{ valheim_port_b }}:2457/udp"
- "{{ valheim_port_c }}:2458/udp"
env: "{{ valheim_optional_env | default({}) | combine(valheim_env) }}"
env: "{{ valheim_env }}"
restart_policy: unless-stopped
memory: "{{ valheim_memory }}"
capabilities:
Expand Down

0 comments on commit 77a7021

Please sign in to comment.