refactor(all): update hardcoded timezone 'Asia/Seoul' to ansible variable 'timezone'

This commit is contained in:
2026-05-10 18:44:28 +09:00
parent 11ab2f5205
commit 530407c162
34 changed files with 43 additions and 42 deletions
+1
View File
@@ -1,6 +1,7 @@
--- ---
# Global vars # Global vars
ansible_ssh_private_key_file: "/etc/secrets/{{ hostvars['console']['node']['uid'] }}/id_console" ansible_ssh_private_key_file: "/etc/secrets/{{ hostvars['console']['node']['uid'] }}/id_console"
timezone: "Asia/Seoul"
# CA # CA
root_cert_filename: "ilnmors_root_ca.crt" root_cert_filename: "ilnmors_root_ca.crt"
+2 -2
View File
@@ -23,9 +23,9 @@
tags: ["always"] tags: ["always"]
tasks: tasks:
- name: Set timezone to Asia/Seoul - name: Set timezone
community.general.timezone: community.general.timezone:
name: Asia/Seoul name: "{{ timezone }}"
become: true become: true
tags: ["init", "timezone"] tags: ["init", "timezone"]
+2 -2
View File
@@ -23,9 +23,9 @@
tags: ["always"] tags: ["always"]
tasks: tasks:
- name: Set timezone to Asia/Seoul - name: Set timezone
community.general.timezone: community.general.timezone:
name: Asia/Seoul name: "{{ timezone }}"
become: true become: true
tags: ["init", "timezone"] tags: ["init", "timezone"]
+2 -2
View File
@@ -24,9 +24,9 @@
tasks: tasks:
# init # init
- name: Set timezone to Asia/Seoul - name: Set timezone
community.general.timezone: community.general.timezone:
name: Asia/Seoul name: "{{ timezone }}"
become: true become: true
tags: ["init", "timezone"] tags: ["init", "timezone"]
+2 -2
View File
@@ -23,9 +23,9 @@
tags: ["always"] tags: ["always"]
tasks: tasks:
- name: Set timezone to Asia/Seoul - name: Set timezone
community.general.timezone: community.general.timezone:
name: Asia/Seoul name: "{{ timezone }}"
become: true become: true
tags: ["init", "timezone"] tags: ["init", "timezone"]
+2 -2
View File
@@ -23,9 +23,9 @@
tags: ["always"] tags: ["always"]
tasks: tasks:
- name: Set timezone to Asia/Seoul - name: Set timezone
community.general.timezone: community.general.timezone:
name: Asia/Seoul name: "{{ timezone }}"
become: true become: true
tags: ["init", "timezone"] tags: ["init", "timezone"]
+2 -2
View File
@@ -30,9 +30,9 @@
tags: ["always"] tags: ["always"]
tasks: tasks:
# init # init
- name: Set timezone to Asia/Seoul - name: Set timezone
community.general.timezone: community.general.timezone:
name: Asia/Seoul name: "{{ timezone }}"
become: true become: true
tags: ["init", "timezone"] tags: ["init", "timezone"]
@@ -75,7 +75,7 @@
rm: true rm: true
detach: false detach: false
env: env:
TZ: "Asia/Seoul" TZ: "{{ timezone }}"
LLDAP_LDAP_BASE_DN: "{{ domain['dc'] }}" LLDAP_LDAP_BASE_DN: "{{ domain['dc'] }}"
secrets: secrets:
- "LLDAP_DATABASE_URL,type=env" - "LLDAP_DATABASE_URL,type=env"
@@ -19,7 +19,7 @@ Volume=%h/containers/affine/config:/root/.affine/config
Volume=%h/containers/affine/ssl:/etc/ssl/affine:ro Volume=%h/containers/affine/ssl:/etc/ssl/affine:ro
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
## OIDC callback URIs ## OIDC callback URIs
Environment="AFFINE_SERVER_HOST={{ services['affine']['domain']['public'] }}.{{ domain['public'] }}" Environment="AFFINE_SERVER_HOST={{ services['affine']['domain']['public'] }}.{{ domain['public'] }}"
Environment="AFFINE_SERVER_EXTERNAL_URL=https://{{ services['affine']['domain']['public'] }}.{{ domain['public'] }}" Environment="AFFINE_SERVER_EXTERNAL_URL=https://{{ services['affine']['domain']['public'] }}.{{ domain['public'] }}"
@@ -11,7 +11,7 @@ HostName=collabora
PublishPort={{ services['collabora']['ports']['http'] }}:9980/tcp PublishPort={{ services['collabora']['ports']['http'] }}:9980/tcp
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="aliasgroup1=https://{{ services['nextcloud']['domain']['public'] }}.{{ domain['public'] }}" Environment="aliasgroup1=https://{{ services['nextcloud']['domain']['public'] }}.{{ domain['public'] }}"
# Environment="aliasgroup2=other_server_FQDN" # Environment="aliasgroup2=other_server_FQDN"
Environment="extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:server_name={{ services['collabora']['domain']['public'] }}.{{ domain['public'] }} --o:admin_console.enable=false" Environment="extra_params=--o:ssl.enable=false --o:ssl.termination=true --o:server_name={{ services['collabora']['domain']['public'] }}.{{ domain['public'] }} --o:admin_console.enable=false"
@@ -19,7 +19,7 @@ Volume=%h/data/containers/gitea:/data:rw
Volume=%h/containers/gitea/ssl:/etc/ssl/gitea:ro Volume=%h/containers/gitea/ssl:/etc/ssl/gitea:ro
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="GITEA__server__DISABLE_SSH=true" Environment="GITEA__server__DISABLE_SSH=true"
# Database # Database
Environment="GITEA__database__DB_TYPE=postgres" Environment="GITEA__database__DB_TYPE=postgres"
@@ -21,7 +21,7 @@ PodmanArgs=--group-add keep-groups
Volume=%h/containers/immich/ml/cache:/cache:rw Volume=%h/containers/immich/ml/cache:/cache:rw
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
[Service] [Service]
Restart=always Restart=always
@@ -24,7 +24,7 @@ Volume=%h/data/containers/immich:/data:rw
Volume=%h/containers/immich/ssl:/etc/ssl/immich:ro Volume=%h/containers/immich/ssl:/etc/ssl/immich:ro
# Environment # Environment
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# The new environment from version 2.7.0 to enable CSP # The new environment from version 2.7.0 to enable CSP
Environment="IMMICH_HELMET_FILE=true" Environment="IMMICH_HELMET_FILE=true"
@@ -14,7 +14,7 @@ PublishPort={{ services[manticore_service]['ports']['manticore'] }}:9308
Volume=%h/data/containers/manticore/{{ manticore_service }}:/var/lib/manticore:rw Volume=%h/data/containers/manticore/{{ manticore_service }}:/var/lib/manticore:rw
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
[Service] [Service]
Restart=always Restart=always
@@ -17,7 +17,7 @@ Volume=%h/containers/nextcloud/ini/upload.ini:/usr/local/etc/php/conf.d/upload.i
Volume=%h/data/containers/nextcloud/html:/var/www/html:rw Volume=%h/data/containers/nextcloud/html:/var/www/html:rw
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# PostgreSQL # PostgreSQL
Environment="PGSSLMODE=verify-full" Environment="PGSSLMODE=verify-full"
Environment="PGSSLROOTCERT=/etc/ssl/nextcloud/{{ root_cert_filename }}" Environment="PGSSLROOTCERT=/etc/ssl/nextcloud/{{ root_cert_filename }}"
@@ -20,8 +20,8 @@ Volume=%h/data/containers/paperless/consume:/usr/src/paperless/consume:rw
Volume=%h/containers/paperless/ssl:/etc/ssl/paperless:ro Volume=%h/containers/paperless/ssl:/etc/ssl/paperless:ro
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="PAPERLESS_TIME_ZONE=Asia/Seoul" Environment="PAPERLESS_TIME_ZONE={{ timezone }}"
Environment="PAPERLESS_URL=https://{{ services['paperless']['domain']['public'] }}.{{ domain['public'] }}" Environment="PAPERLESS_URL=https://{{ services['paperless']['domain']['public'] }}.{{ domain['public'] }}"
Environment="PAPERLESS_OCR_LANGUAGE=kor+eng" Environment="PAPERLESS_OCR_LANGUAGE=kor+eng"
Environment="PAPERLESS_OCR_LANGUAGES=kor" Environment="PAPERLESS_OCR_LANGUAGES=kor"
@@ -20,7 +20,7 @@ Volume=%h/containers/redis/{{ redis_service }}/redis.conf:/usr/local/etc/redis/r
Exec=redis-server /usr/local/etc/redis/redis.conf Exec=redis-server /usr/local/etc/redis/redis.conf
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
[Service] [Service]
Restart=always Restart=always
@@ -18,7 +18,7 @@ Volume=%h/data/containers/sure/storage:/rails/storage:rw
Volume=%h/containers/sure/ssl:/etc/ssl/sure:ro Volume=%h/containers/sure/ssl:/etc/ssl/sure:ro
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="SELF_HOSTED=true" Environment="SELF_HOSTED=true"
Environment="ONBOARDING_STATE=closed" Environment="ONBOARDING_STATE=closed"
Environment="RAILS_FORCE_SSL=false" Environment="RAILS_FORCE_SSL=false"
@@ -18,7 +18,7 @@ Volume=%h/containers/sure/ssl:/etc/ssl/sure:ro
Exec=bundle exec sidekiq Exec=bundle exec sidekiq
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="SELF_HOSTED=true" Environment="SELF_HOSTED=true"
Environment="ONBOARDING_STATE=closed" Environment="ONBOARDING_STATE=closed"
Environment="RAILS_FORCE_SSL=false" Environment="RAILS_FORCE_SSL=false"
@@ -18,7 +18,7 @@ PublishPort={{ services['vaultwarden']['ports']['http'] }}:80/tcp
Volume=%h/data/containers/vaultwarden:/data:rw Volume=%h/data/containers/vaultwarden:/data:rw
Volume=%h/containers/vaultwarden/ssl:/etc/ssl/vaultwarden:ro Volume=%h/containers/vaultwarden/ssl:/etc/ssl/vaultwarden:ro
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="DOMAIN=https://{{ services['vaultwarden']['domain']['public'] }}.{{ domain['public'] }}" Environment="DOMAIN=https://{{ services['vaultwarden']['domain']['public'] }}.{{ domain['public'] }}"
Environment="SIGNUPS_ALLOWED=false" Environment="SIGNUPS_ALLOWED=false"
Secret=VW_ADMIN_TOKEN,type=env,target=ADMIN_TOKEN Secret=VW_ADMIN_TOKEN,type=env,target=ADMIN_TOKEN
@@ -22,7 +22,7 @@ Volume=%h/containers/authelia/config:/config:rw
Volume=%h/containers/authelia/certs:/etc/ssl/authelia:ro Volume=%h/containers/authelia/certs:/etc/ssl/authelia:ro
# Default # Default
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# Enable Go template engine # Enable Go template engine
# !CAUTION! # !CAUTION!
{% raw %}# If this environment were enabled, you would have to use {{/* ... /*}} for {{ go_filter }} options. Go engine always processes its own grammar first. {% raw %}# If this environment were enabled, you would have to use {{/* ... /*}} for {{ go_filter }} options. Go engine always processes its own grammar first.
@@ -33,7 +33,7 @@ Volume=%h/containers/caddy/data:/data:rw
Volume=/var/log/caddy:/log:rw Volume=/var/log/caddy:/log:rw
{% endif %} {% endif %}
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Secret=CADDY_ACME_KEY,target=/run/secrets/CADDY_ACME_KEY Secret=CADDY_ACME_KEY,target=/run/secrets/CADDY_ACME_KEY
{% if node['name'] == 'auth' %} {% if node['name'] == 'auth' %}
@@ -21,7 +21,7 @@ Volume=%h/containers/ca/config:/home/step/config:rw
Volume=%h/containers/ca/db:/home/step/db:rw Volume=%h/containers/ca/db:/home/step/db:rw
Volume=%h/containers/ca/templates:/home/step/templates:rw Volume=%h/containers/ca/templates:/home/step/templates:rw
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# Since 0.30.0, Docker CMD no longer expands PWDPATH. # Since 0.30.0, Docker CMD no longer expands PWDPATH.
#Environment="PWDPATH=/run/secrets/STEP_CA_PASSWORD" #Environment="PWDPATH=/run/secrets/STEP_CA_PASSWORD"
@@ -24,7 +24,7 @@ Volume=%h/containers/grafana/data:/var/lib/grafana:rw
Volume=%h/containers/grafana/etc:/etc/grafana:ro Volume=%h/containers/grafana/etc:/etc/grafana:ro
Volume=%h/containers/grafana/ssl:/etc/ssl/grafana:ro Volume=%h/containers/grafana/ssl:/etc/ssl/grafana:ro
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="GF_PATHS_CONFIG=/etc/grafana/grafana.ini" Environment="GF_PATHS_CONFIG=/etc/grafana/grafana.ini"
# plugin # plugin
# Environment="GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource" # Environment="GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-simple-json-datasource"
@@ -24,7 +24,7 @@ Volume=%h/containers/ldap/data:/data:rw
Volume=%h/containers/ldap/ssl:/etc/ssl/ldap:ro Volume=%h/containers/ldap/ssl:/etc/ssl/ldap:ro
# Default # Default
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# Domain # Domain
Environment="LLDAP_LDAP_BASE_DN={{ domain['dc'] }}" Environment="LLDAP_LDAP_BASE_DN={{ domain['dc'] }}"
@@ -19,7 +19,7 @@ Volume=%h/containers/loki/data:/loki:rw
Volume=%h/containers/loki/etc:/etc/loki:ro Volume=%h/containers/loki/etc:/etc/loki:ro
Volume=%h/containers/loki/ssl:/etc/ssl/loki:ro Volume=%h/containers/loki/ssl:/etc/ssl/loki:ro
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Exec=--config.file=/etc/loki/loki.yaml Exec=--config.file=/etc/loki/loki.yaml
@@ -21,7 +21,7 @@ Volume=%h/containers/postgresql/ssl:/etc/ssl/postgresql:ro
Volume=%h/containers/postgresql/init:/docker-entrypoint-initdb.d/:ro Volume=%h/containers/postgresql/init:/docker-entrypoint-initdb.d/:ro
Volume=%h/containers/postgresql/backups:/backups:rw Volume=%h/containers/postgresql/backups:/backups:rw
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# This option is only for init process, after init custom config file `pg_hba.conf` will control this option. # This option is only for init process, after init custom config file `pg_hba.conf` will control this option.
Environment="POSTGRES_HOST_AUTH_METHOD=trust" Environment="POSTGRES_HOST_AUTH_METHOD=trust"
@@ -19,7 +19,7 @@ Volume=%h/containers/prometheus/data:/prometheus:rw
Volume=%h/containers/prometheus/etc:/etc/prometheus:ro Volume=%h/containers/prometheus/etc:/etc/prometheus:ro
Volume=%h/containers/prometheus/ssl:/etc/ssl/prometheus:ro Volume=%h/containers/prometheus/ssl:/etc/ssl/prometheus:ro
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Exec=--config.file=/etc/prometheus/prometheus.yaml \ Exec=--config.file=/etc/prometheus/prometheus.yaml \
--web.config.file=/etc/prometheus/web-config.yaml \ --web.config.file=/etc/prometheus/web-config.yaml \
@@ -13,7 +13,7 @@ PublishPort={{ services['actualbudget']['ports']['http'] }}:5006
Volume=%h/data/containers/actual-budget:/data:rw Volume=%h/data/containers/actual-budget:/data:rw
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="ACTUAL_OPENID_DISCOVERY_URL=https://{{ services['authelia']['domain'] }}.{{ domain['public'] }}/.well-known/openid-configuration" Environment="ACTUAL_OPENID_DISCOVERY_URL=https://{{ services['authelia']['domain'] }}.{{ domain['public'] }}/.well-known/openid-configuration"
Environment="ACTUAL_OPENID_CLIENT_ID=actual-budget" Environment="ACTUAL_OPENID_CLIENT_ID=actual-budget"
Environment="ACTUAL_OPENID_SERVER_HOSTNAME=https://{{ services['actualbudget']['domain']['public'] }}.{{ domain['public'] }}" Environment="ACTUAL_OPENID_SERVER_HOSTNAME=https://{{ services['actualbudget']['domain']['public'] }}.{{ domain['public'] }}"
@@ -18,7 +18,7 @@ Volume=%h/data/containers/ezbookkeeping/data:/data:rw
Volume=%h/containers/ezbookkeeping/ssl:/etc/ssl/ezbookkeeping:ro Volume=%h/containers/ezbookkeeping/ssl:/etc/ssl/ezbookkeeping:ro
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="EBK_SERVER_DOMAIN={{ services['ezbookkeeping']['domain']['public'] }}.{{ domain['public'] }}" Environment="EBK_SERVER_DOMAIN={{ services['ezbookkeeping']['domain']['public'] }}.{{ domain['public'] }}"
Environment="EBK_SERVER_ROOT_URL=https://{{ services['ezbookkeeping']['domain']['public'] }}.{{ domain['public'] }}/" Environment="EBK_SERVER_ROOT_URL=https://{{ services['ezbookkeeping']['domain']['public'] }}.{{ domain['public'] }}/"
Environment="EBK_LOG_MODE=console" Environment="EBK_LOG_MODE=console"
@@ -15,7 +15,7 @@ Volume=%h/containers/opencloud:/etc/opencloud:rw
Volume=%h/data/containers/opencloud:/var/lib/opencloud:rw Volume=%h/data/containers/opencloud:/var/lib/opencloud:rw
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# Log level info # Log level info
Environment="OC_LOG_LEVEL=info" Environment="OC_LOG_LEVEL=info"
# TLS configuration # TLS configuration
@@ -18,7 +18,7 @@ PublishPort={{ services['trilium']['ports']['http'] }}:8080/tcp
Volume=%h/data/containers/trilium/data:/home/node/trilium-data:rw Volume=%h/data/containers/trilium/data:/home/node/trilium-data:rw
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="TRILIUM_DATA_DIR=/home/node/trilium-data" Environment="TRILIUM_DATA_DIR=/home/node/trilium-data"
Environment="TRILIUM_NO_UPLOAD_LIMIT=true" Environment="TRILIUM_NO_UPLOAD_LIMIT=true"
@@ -18,9 +18,9 @@ Volume=%h/data/containers/vikunja:/app/vikunja/files:rw
Volume=%h/containers/vikunja/ssl:/etc/ssl/vikunja:ro Volume=%h/containers/vikunja/ssl:/etc/ssl/vikunja:ro
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
Environment="VIKUNJA_DEFAULTSETTINGS_TIMEZONE=Asia/Seoul" Environment="VIKUNJA_DEFAULTSETTINGS_TIMEZONE={{ timezone }}"
Environment="VIKUNJA_SERVICE_TIMEZONE=Asia/Seoul" Environment="VIKUNJA_SERVICE_TIMEZONE={{ timezone }}"
Environment="VIKUNJA_SERVICE_PUBLICURL=https://{{ services['vikunja']['domain']['public'] }}.{{ domain['public'] }}" Environment="VIKUNJA_SERVICE_PUBLICURL=https://{{ services['vikunja']['domain']['public'] }}.{{ domain['public'] }}"
Environment="VIKUNJA_SERVICE_ENABLEREGISTRATION=false" Environment="VIKUNJA_SERVICE_ENABLEREGISTRATION=false"
Secret=VIKUNJA_SERVICE_JWTSECRET,type=env Secret=VIKUNJA_SERVICE_JWTSECRET,type=env
@@ -19,7 +19,7 @@ Volume=%h/data/containers/wikijs/export:/wiki/export:rw
Volume=%h/containers/wikijs/ssl:/etc/ssl/wiki:ro Volume=%h/containers/wikijs/ssl:/etc/ssl/wiki:ro
# General # General
Environment="TZ=Asia/Seoul" Environment="TZ={{ timezone }}"
# Database # Database
Environment="DB_TYPE=postgres" Environment="DB_TYPE=postgres"