Fix Jinja2 syntax error (else if -> elif)

This commit is contained in:
Slavi Pantaleev 2020-12-14 22:40:37 +02:00
parent dd797ba6a7
commit e2ba46bf01
8 changed files with 8 additions and 8 deletions
roles
matrix-bridge-appservice-irc/defaults
matrix-bridge-appservice-slack/defaults
matrix-bridge-mx-puppet-discord/defaults
matrix-bridge-mx-puppet-instagram/defaults
matrix-bridge-mx-puppet-skype/defaults
matrix-bridge-mx-puppet-slack/defaults
matrix-bridge-mx-puppet-steam/defaults
matrix-bridge-mx-puppet-twitter/defaults

View File

@ -26,7 +26,7 @@ matrix_appservice_irc_database_name: matrix_appservice_irc
matrix_appservice_irc_database_connString: >-2
{%- if matrix_appservice_irc_database_engine == 'postgres' -%}
postgresql://{{ matrix_appservice_irc_database_username }}:{{ matrix_appservice_irc_database_password }}@{{ matrix_appservice_irc_database_hostname }}:{{ matrix_appservice_irc_database_port }}/{{ matrix_appservice_irc_database_name }}?sslmode=disable
{%- else if matrix_appservice_irc_database_engine == 'nedb' -%}
{%- elif matrix_appservice_irc_database_engine == 'nedb' -%}
{{ matrix_appservice_irc_database_engine }}://{{ matrix_appservice_irc_database_file }}
{%- endif -%}

View File

@ -55,7 +55,7 @@ matrix_appservice_slack_database_file: /data
matrix_appservice_slack_database_connString: >-2
{%- if matrix_appservice_slack_database_engine == 'postgres' -%}
postgresql://{{ matrix_appservice_slack_database_username }}:{{ matrix_appservice_slack_database_password }}@{{ matrix_appservice_slack_database_hostname }}:{{ matrix_appservice_slack_database_port }}/{{ matrix_appservice_slack_database_name }}?sslmode=disable
{%- else if matrix_appservice_slack_database_engine == 'nedb' -%}
{%- elif matrix_appservice_slack_database_engine == 'nedb' -%}
{{ matrix_appservice_slack_database_engine }}://{{ matrix_appservice_slack_database_file }}
{%- endif -%}

View File

@ -66,7 +66,7 @@ matrix_mx_puppet_discord_database_file: /data/database.db
matrix_mx_puppet_discord_database_connString: >-2
{%- if matrix_mx_puppet_discord_database_engine == 'postgres' -%}
postgresql://{{ matrix_mx_puppet_discord_database_username }}:{{ matrix_mx_puppet_discord_database_password }}@{{ matrix_mx_puppet_discord_database_hostname }}:{{ matrix_mx_puppet_discord_database_port }}/{{ matrix_mx_puppet_discord_database_name }}?sslmode=disable
{%- else if matrix_mx_puppet_discord_database_engine == 'sqlite' -%}
{%- elif matrix_mx_puppet_discord_database_engine == 'sqlite' -%}
{{ matrix_mx_puppet_discord_database_engine }}://{{ matrix_mx_puppet_discord_database_file }}
{%- endif -%}

View File

@ -56,7 +56,7 @@ matrix_mx_puppet_instagram_database_file: /data/database.db
matrix_mx_puppet_instagram_database_connString: >-2
{%- if matrix_mx_puppet_instagram_database_engine == 'postgres' -%}
postgresql://{{ matrix_mx_puppet_instagram_database_username }}:{{ matrix_mx_puppet_instagram_database_password }}@{{ matrix_mx_puppet_instagram_database_hostname }}:{{ matrix_mx_puppet_instagram_database_port }}/{{ matrix_mx_puppet_instagram_database_name }}?sslmode=disable
{%- else if matrix_mx_puppet_instagram_database_engine == 'sqlite' -%}
{%- elif matrix_mx_puppet_instagram_database_engine == 'sqlite' -%}
{{ matrix_mx_puppet_instagram_database_engine }}://{{ matrix_mx_puppet_instagram_database_file }}
{%- endif -%}

View File

@ -64,7 +64,7 @@ matrix_mx_puppet_skype_database_file: /data/database.db
matrix_mx_puppet_skype_database_connString: >-2
{%- if matrix_mx_puppet_skype_database_engine == 'postgres' -%}
postgresql://{{ matrix_mx_puppet_skype_database_username }}:{{ matrix_mx_puppet_skype_database_password }}@{{ matrix_mx_puppet_skype_database_hostname }}:{{ matrix_mx_puppet_skype_database_port }}/{{ matrix_mx_puppet_skype_database_name }}?sslmode=disable
{%- else if matrix_mx_puppet_skype_database_engine == 'sqlite' -%}
{%- elif matrix_mx_puppet_skype_database_engine == 'sqlite' -%}
{{ matrix_mx_puppet_skype_database_engine }}://{{ matrix_mx_puppet_skype_database_file }}
{%- endif -%}

View File

@ -68,7 +68,7 @@ matrix_mx_puppet_slack_database_file: /data/database.db
matrix_mx_puppet_slack_database_connString: >-2
{%- if matrix_mx_puppet_slack_database_engine == 'postgres' -%}
postgresql://{{ matrix_mx_puppet_slack_database_username }}:{{ matrix_mx_puppet_slack_database_password }}@{{ matrix_mx_puppet_slack_database_hostname }}:{{ matrix_mx_puppet_slack_database_port }}/{{ matrix_mx_puppet_slack_database_name }}?sslmode=disable
{%- else if matrix_mx_puppet_slack_database_engine == 'sqlite' -%}
{%- elif matrix_mx_puppet_slack_database_engine == 'sqlite' -%}
{{ matrix_mx_puppet_slack_database_engine }}://{{ matrix_mx_puppet_slack_database_file }}
{%- endif -%}

View File

@ -65,7 +65,7 @@ matrix_mx_puppet_steam_database_file: /data/database.db
matrix_mx_puppet_steam_database_connString: >-2
{%- if matrix_mx_puppet_steam_database_engine == 'postgres' -%}
postgresql://{{ matrix_mx_puppet_steam_database_username }}:{{ matrix_mx_puppet_steam_database_password }}@{{ matrix_mx_puppet_steam_database_hostname }}:{{ matrix_mx_puppet_steam_database_port }}/{{ matrix_mx_puppet_steam_database_name }}?sslmode=disable
{%- else if matrix_mx_puppet_steam_database_engine == 'sqlite' -%}
{%- elif matrix_mx_puppet_steam_database_engine == 'sqlite' -%}
{{ matrix_mx_puppet_steam_database_engine }}://{{ matrix_mx_puppet_steam_database_file }}
{%- endif -%}

View File

@ -71,7 +71,7 @@ matrix_mx_puppet_twitter_database_file: /data/database.db
matrix_mx_puppet_twitter_database_connString: >-2
{%- if matrix_mx_puppet_twitter_database_engine == 'postgres' -%}
postgresql://{{ matrix_mx_puppet_twitter_database_username }}:{{ matrix_mx_puppet_twitter_database_password }}@{{ matrix_mx_puppet_twitter_database_hostname }}:{{ matrix_mx_puppet_twitter_database_port }}/{{ matrix_mx_puppet_twitter_database_name }}?sslmode=disable
{%- else if matrix_mx_puppet_twitter_database_engine == 'sqlite' -%}
{%- elif matrix_mx_puppet_twitter_database_engine == 'sqlite' -%}
{{ matrix_mx_puppet_twitter_database_engine }}://{{ matrix_mx_puppet_twitter_database_file }}
{%- endif -%}