From 5b432fc0f184a501a54d9c455c2c44691014eb71 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 19 Jan 2020 23:36:28 +0100 Subject: [PATCH] fix env format in compose file --- defaults/main.yml | 2 +- templates/services/compose.yml.j2 | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6239e76..0fd6a9d 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -114,7 +114,7 @@ bitwardenrs_ldap_ssl: True # @var bitwardenrs_ldap_search_base_dn: $ "_unset_" bitwardenrs_ldap_search_filter: "(&(objectclass=*)(uid=*))" bitwardenrs_ldap_mail_field: "mail" -bitwardenrs_ldap_sync_interval_seconds: "60" +bitwardenrs_ldap_sync_interval_seconds: 60 bitwardenrs_ldap_sync_loop: True bitwardenrs_docker_compose_bin: /usr/local/bin/docker-compose diff --git a/templates/services/compose.yml.j2 b/templates/services/compose.yml.j2 index e46e435..fcb7bc7 100644 --- a/templates/services/compose.yml.j2 +++ b/templates/services/compose.yml.j2 @@ -105,23 +105,23 @@ services: image: {{ bitwardenrs_ldap_image }} restart: {{ bitwardenrs_ldap_restart_policy }} environment: - - BITWARDENRS_LDAP_BITWARDEN_URL="{{ bitwardenrs_ldap_bitwarden_url }}" - - BITWARDENRS_LDAP_BITWARDEN_ADMIN_TOKEN="{{ bitwardenrs_ldap_bitwarden_admin_token }}" - - BITWARDENRS_LDAP_HOST="{{ bitwardenrs_ldap_host }}" + - BITWARDENRS_LDAP_BITWARDEN_URL={{ bitwardenrs_ldap_bitwarden_url }} + - BITWARDENRS_LDAP_BITWARDEN_ADMIN_TOKEN={{ bitwardenrs_ldap_bitwarden_admin_token }} + - BITWARDENRS_LDAP_HOST={{ bitwardenrs_ldap_host }} {% if bitwardenrs_ldap_scheme is defined and bitwardenrs_ldap_scheme %} - - BITWARDENRS_LDAP_SCHEME="{{ bitwardenrs_ldap_scheme }}" + - BITWARDENRS_LDAP_SCHEME={{ bitwardenrs_ldap_scheme }} {% endif %} - - BITWARDENRS_LDAP_SSL="{{ bitwardenrs_ldap_ssl }}" + - BITWARDENRS_LDAP_SSL={{ bitwardenrs_ldap_ssl }} {% if bitwardenrs_ldap_port is defined and bitwardenrs_ldap_port %} - - BITWARDENRS_LDAP_PORT="{{ bitwardenrs_ldap_port }}" + - BITWARDENRS_LDAP_PORT={{ bitwardenrs_ldap_port }} {% endif %} - - BITWARDENRS_LDAP_BIND_DN="{{ bitwardenrs_ldap_bind_dn }}" - - BITWARDENRS_LDAP_BIND_PASSWORD="{{ bitwardenrs_ldap_bind_password }}" - - BITWARDENRS_LDAP_SEARCH_BASE_DN="{{ bitwardenrs_ldap_search_base_dn }}" - - BITWARDENRS_LDAP_SEARCH_FILTER="{{ bitwardenrs_ldap_search_filter }}" - - BITWARDENRS_LDAP_MAIL_FIELD="{{ bitwardenrs_ldap_mail_field }}" - - BITWARDENRS_LDAP_SYNC_INTERVAL_SECONDS="{{ bitwardenrs_ldap_sync_interval_seconds }}" - - BITWARDENRS_LDAP_SYNC_LOOP="{{ bitwardenrs_ldap_sync_loop }}" + - BITWARDENRS_LDAP_BIND_DN={{ bitwardenrs_ldap_bind_dn }} + - BITWARDENRS_LDAP_BIND_PASSWORD={{ bitwardenrs_ldap_bind_password }} + - BITWARDENRS_LDAP_SEARCH_BASE_DN={{ bitwardenrs_ldap_search_base_dn }} + - BITWARDENRS_LDAP_SEARCH_FILTER={{ bitwardenrs_ldap_search_filter }} + - BITWARDENRS_LDAP_MAIL_FIELD={{ bitwardenrs_ldap_mail_field }} + - BITWARDENRS_LDAP_SYNC_INTERVAL_SECONDS={{ bitwardenrs_ldap_sync_interval_seconds }} + - BITWARDENRS_LDAP_SYNC_LOOP={{ bitwardenrs_ldap_sync_loop }} {% if bitwardenrs_ldap_memory_limit is defined %} mem_limit: {{ bitwardenrs_ldap_memory_limit }} {% endif %}