Guarding on the empty string ('') as well was misleading: systemd unit
templates still render an unconditional --network= flag, so an empty
network value produces a broken docker create command. Only 'host' is
actually supported, so only guard on that. This also matches the
existing convention in the Traefik role
(when: traefik_container_network != 'host').
Also fix a duplicate when key in the meshtastic-relay role, where the
network-creation task already had a when condition - the two are now
combined into a list.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull/5310/head
| @@ -73,7 +73,7 @@ | |||||
| changed_when: true | changed_when: true | ||||
| - name: Ensure matrix-alertmanager-receiver container network is created | - name: Ensure matrix-alertmanager-receiver container network is created | ||||
| when: matrix_alertmanager_receiver_container_network not in ['', 'host'] | |||||
| when: matrix_alertmanager_receiver_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_alertmanager_receiver_container_network }}" | name: "{{ matrix_alertmanager_receiver_container_network }}" | ||||
| @@ -33,7 +33,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| --config-path=/config/config.yml {{ matrix_alertmanager_receiver_container_process_extra_arguments | join(' ') }} \ | --config-path=/config/config.yml {{ matrix_alertmanager_receiver_container_process_extra_arguments | join(' ') }} \ | ||||
| --log-level={{ matrix_alertmanager_receiver_container_process_argument_log_level }} | --log-level={{ matrix_alertmanager_receiver_container_process_argument_log_level }} | ||||
| {% if matrix_alertmanager_receiver_container_network not in ['', 'host'] %} | |||||
| {% if matrix_alertmanager_receiver_container_network != 'host' %} | |||||
| {% for network in matrix_alertmanager_receiver_container_additional_networks %} | {% for network in matrix_alertmanager_receiver_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-alertmanager-receiver | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-alertmanager-receiver | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -88,7 +88,7 @@ | |||||
| register: matrix_appservice_draupnir_for_all_registration_config_result | register: matrix_appservice_draupnir_for_all_registration_config_result | ||||
| - name: Ensure matrix-appservice-draupnir-for-all container network is created | - name: Ensure matrix-appservice-draupnir-for-all container network is created | ||||
| when: matrix_appservice_draupnir_for_all_container_network not in ['', 'host'] | |||||
| when: matrix_appservice_draupnir_for_all_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_appservice_draupnir_for_all_container_network }}" | name: "{{ matrix_appservice_draupnir_for_all_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_appservice_draupnir_for_all_container_image }} \ | {{ matrix_appservice_draupnir_for_all_container_image }} \ | ||||
| appservice -c /data/config/production-appservice.yaml -f /data/config/draupnir-for-all-registration.yaml -p {{ matrix_appservice_draupnir_for_all_appservice_port }} --draupnir-config /data/config/production-bots.yaml | appservice -c /data/config/production-appservice.yaml -f /data/config/draupnir-for-all-registration.yaml -p {{ matrix_appservice_draupnir_for_all_appservice_port }} --draupnir-config /data/config/production-bots.yaml | ||||
| {% if matrix_appservice_draupnir_for_all_container_network not in ['', 'host'] %} | |||||
| {% if matrix_appservice_draupnir_for_all_container_network != 'host' %} | |||||
| {% for network in matrix_appservice_draupnir_for_all_container_additional_networks %} | {% for network in matrix_appservice_draupnir_for_all_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-draupnir-for-all | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-draupnir-for-all | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -114,7 +114,7 @@ | |||||
| changed_when: true | changed_when: true | ||||
| - name: Ensure Matrix Authentication Service container network is created | - name: Ensure Matrix Authentication Service container network is created | ||||
| when: matrix_authentication_service_container_network not in ['', 'host'] | |||||
| when: matrix_authentication_service_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_authentication_service_container_network }}" | name: "{{ matrix_authentication_service_container_network }}" | ||||
| @@ -36,7 +36,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_authentication_service_container_image }} | {{ matrix_authentication_service_container_image }} | ||||
| {% if matrix_authentication_service_container_network not in ['', 'host'] %} | |||||
| {% if matrix_authentication_service_container_network != 'host' %} | |||||
| {% for network in matrix_authentication_service_container_additional_networks %} | {% for network in matrix_authentication_service_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-authentication-service | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-authentication-service | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -69,7 +69,7 @@ | |||||
| register: matrix_bot_baibot_container_image_build_result | register: matrix_bot_baibot_container_image_build_result | ||||
| - name: Ensure baibot container network is created | - name: Ensure baibot container network is created | ||||
| when: matrix_bot_baibot_container_network not in ['', 'host'] | |||||
| when: matrix_bot_baibot_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_baibot_container_network }}" | name: "{{ matrix_bot_baibot_container_network }}" | ||||
| @@ -37,7 +37,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_bot_baibot_container_image }} | {{ matrix_bot_baibot_container_image }} | ||||
| {% if matrix_bot_baibot_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_baibot_container_network != 'host' %} | |||||
| {% for network in matrix_bot_baibot_container_additional_networks %} | {% for network in matrix_bot_baibot_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-baibot | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-baibot | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -110,7 +110,7 @@ | |||||
| }} | }} | ||||
| - name: Ensure Buscarron container network is created | - name: Ensure Buscarron container network is created | ||||
| when: matrix_bot_buscarron_container_network not in ['', 'host'] | |||||
| when: matrix_bot_buscarron_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_buscarron_container_network }}" | name: "{{ matrix_bot_buscarron_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_bot_buscarron_container_image }} | {{ matrix_bot_buscarron_container_image }} | ||||
| {% if matrix_bot_buscarron_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_buscarron_container_network != 'host' %} | |||||
| {% for network in matrix_bot_buscarron_container_additional_networks %} | {% for network in matrix_bot_buscarron_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-buscarron | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-buscarron | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -82,7 +82,7 @@ | |||||
| register: matrix_bot_draupnir_config_result | register: matrix_bot_draupnir_config_result | ||||
| - name: Ensure matrix-bot-draupnir container network is created | - name: Ensure matrix-bot-draupnir container network is created | ||||
| when: matrix_bot_draupnir_container_network not in ['', 'host'] | |||||
| when: matrix_bot_draupnir_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_draupnir_container_network }}" | name: "{{ matrix_bot_draupnir_container_network }}" | ||||
| @@ -36,7 +36,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_bot_draupnir_container_image }} \ | {{ matrix_bot_draupnir_container_image }} \ | ||||
| bot --draupnir-config /data/config/production.yaml | bot --draupnir-config /data/config/production.yaml | ||||
| {% if matrix_bot_draupnir_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_draupnir_container_network != 'host' %} | |||||
| {% for network in matrix_bot_draupnir_container_additional_networks %} | {% for network in matrix_bot_draupnir_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-draupnir | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-draupnir | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -94,7 +94,7 @@ | |||||
| register: matrix_bot_honoroit_container_image_build_result | register: matrix_bot_honoroit_container_image_build_result | ||||
| - name: Ensure Honoroit container network is created | - name: Ensure Honoroit container network is created | ||||
| when: matrix_bot_honoroit_container_network not in ['', 'host'] | |||||
| when: matrix_bot_honoroit_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_honoroit_container_network }}" | name: "{{ matrix_bot_honoroit_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_bot_honoroit_container_image }} | {{ matrix_bot_honoroit_container_image }} | ||||
| {% if matrix_bot_honoroit_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_honoroit_container_network != 'host' %} | |||||
| {% for network in matrix_bot_honoroit_container_additional_networks %} | {% for network in matrix_bot_honoroit_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-honoroit | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-honoroit | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -62,7 +62,7 @@ | |||||
| register: matrix_bot_matrix_registration_bot_container_image_build_result | register: matrix_bot_matrix_registration_bot_container_image_build_result | ||||
| - name: Ensure matrix-registration-bot container network is created | - name: Ensure matrix-registration-bot container network is created | ||||
| when: matrix_bot_matrix_registration_bot_container_network not in ['', 'host'] | |||||
| when: matrix_bot_matrix_registration_bot_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_matrix_registration_bot_container_network }}" | name: "{{ matrix_bot_matrix_registration_bot_container_network }}" | ||||
| @@ -29,7 +29,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| --network={{ matrix_bot_matrix_registration_bot_container_network }} \ | --network={{ matrix_bot_matrix_registration_bot_container_network }} \ | ||||
| {{ matrix_bot_matrix_registration_bot_container_image }} | {{ matrix_bot_matrix_registration_bot_container_image }} | ||||
| {% if matrix_bot_matrix_registration_bot_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_matrix_registration_bot_container_network != 'host' %} | |||||
| {% for network in matrix_bot_matrix_registration_bot_container_additional_networks %} | {% for network in matrix_bot_matrix_registration_bot_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-matrix-registration-bot | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-matrix-registration-bot | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -93,7 +93,7 @@ | |||||
| register: matrix_bot_matrix_reminder_bot_config_result | register: matrix_bot_matrix_reminder_bot_config_result | ||||
| - name: Ensure matrix-reminder-bot container network is created | - name: Ensure matrix-reminder-bot container network is created | ||||
| when: matrix_bot_matrix_reminder_bot_container_network not in ['', 'host'] | |||||
| when: matrix_bot_matrix_reminder_bot_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_matrix_reminder_bot_container_network }}" | name: "{{ matrix_bot_matrix_reminder_bot_container_network }}" | ||||
| @@ -34,7 +34,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_bot_matrix_reminder_bot_container_image }} \ | {{ matrix_bot_matrix_reminder_bot_container_image }} \ | ||||
| -c "matrix-reminder-bot /config/config.yaml" | -c "matrix-reminder-bot /config/config.yaml" | ||||
| {% if matrix_bot_matrix_reminder_bot_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_matrix_reminder_bot_container_network != 'host' %} | |||||
| {% for network in matrix_bot_matrix_reminder_bot_container_additional_networks %} | {% for network in matrix_bot_matrix_reminder_bot_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-matrix-reminder-bot | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-matrix-reminder-bot | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -98,7 +98,7 @@ | |||||
| register: matrix_bot_maubot_support_files_result | register: matrix_bot_maubot_support_files_result | ||||
| - name: Ensure maubot container network is created | - name: Ensure maubot container network is created | ||||
| when: matrix_bot_maubot_container_network not in ['', 'host'] | |||||
| when: matrix_bot_maubot_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_maubot_container_network }}" | name: "{{ matrix_bot_maubot_container_network }}" | ||||
| @@ -41,7 +41,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_bot_maubot_container_image_final }} \ | {{ matrix_bot_maubot_container_image_final }} \ | ||||
| python3 -m maubot -c /config/config.yaml --no-update | python3 -m maubot -c /config/config.yaml --no-update | ||||
| {% if matrix_bot_maubot_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_maubot_container_network != 'host' %} | |||||
| {% for network in matrix_bot_maubot_container_additional_networks %} | {% for network in matrix_bot_maubot_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-maubot | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-maubot | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -68,7 +68,7 @@ | |||||
| register: matrix_bot_mjolnir_config_result | register: matrix_bot_mjolnir_config_result | ||||
| - name: Ensure matrix-bot-mjolnir container network is created | - name: Ensure matrix-bot-mjolnir container network is created | ||||
| when: matrix_bot_mjolnir_container_network not in ['', 'host'] | |||||
| when: matrix_bot_mjolnir_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_bot_mjolnir_container_network }}" | name: "{{ matrix_bot_mjolnir_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_bot_mjolnir_container_image }} \ | {{ matrix_bot_mjolnir_container_image }} \ | ||||
| bot --mjolnir-config /data/config/production.yaml | bot --mjolnir-config /data/config/production.yaml | ||||
| {% if matrix_bot_mjolnir_container_network not in ['', 'host'] %} | |||||
| {% if matrix_bot_mjolnir_container_network != 'host' %} | |||||
| {% for network in matrix_bot_mjolnir_container_additional_networks %} | {% for network in matrix_bot_mjolnir_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-mjolnir | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-bot-mjolnir | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -118,7 +118,7 @@ | |||||
| changed_when: false | changed_when: false | ||||
| - name: Ensure matrix-appservice-discord container network is created | - name: Ensure matrix-appservice-discord container network is created | ||||
| when: matrix_appservice_discord_container_network not in ['', 'host'] | |||||
| when: matrix_appservice_discord_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_appservice_discord_container_network }}" | name: "{{ matrix_appservice_discord_container_network }}" | ||||
| @@ -34,7 +34,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_appservice_discord_container_image }} \ | {{ matrix_appservice_discord_container_image }} \ | ||||
| node /build/src/discordas.js -p 9005 -c /cfg/config.yaml -f /cfg/registration.yaml | node /build/src/discordas.js -p 9005 -c /cfg/config.yaml -f /cfg/registration.yaml | ||||
| {% if matrix_appservice_discord_container_network not in ['', 'host'] %} | |||||
| {% if matrix_appservice_discord_container_network != 'host' %} | |||||
| {% for network in matrix_appservice_discord_container_additional_networks %} | {% for network in matrix_appservice_discord_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-discord | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-discord | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -245,7 +245,7 @@ | |||||
| register: matrix_appservice_irc_registration_result | register: matrix_appservice_irc_registration_result | ||||
| - name: Ensure matrix-appservice-irc container network is created | - name: Ensure matrix-appservice-irc container network is created | ||||
| when: matrix_appservice_irc_container_network not in ['', 'host'] | |||||
| when: matrix_appservice_irc_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_appservice_irc_container_network }}" | name: "{{ matrix_appservice_irc_container_network }}" | ||||
| @@ -39,7 +39,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_appservice_irc_container_image }} \ | {{ matrix_appservice_irc_container_image }} \ | ||||
| -c 'node app.js -c /config/config.yaml -f /config/registration.yaml -p 9999' | -c 'node app.js -c /config/config.yaml -f /config/registration.yaml -p 9999' | ||||
| {% if matrix_appservice_irc_container_network not in ['', 'host'] %} | |||||
| {% if matrix_appservice_irc_container_network != 'host' %} | |||||
| {% for network in matrix_appservice_irc_container_additional_networks %} | {% for network in matrix_appservice_irc_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-irc | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-irc | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -99,7 +99,7 @@ | |||||
| register: matrix_appservice_kakaotalk_registration_result | register: matrix_appservice_kakaotalk_registration_result | ||||
| - name: Ensure matrix-appservice-kakaotalk container network is created | - name: Ensure matrix-appservice-kakaotalk container network is created | ||||
| when: matrix_appservice_kakaotalk_container_network not in ['', 'host'] | |||||
| when: matrix_appservice_kakaotalk_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_appservice_kakaotalk_container_network }}" | name: "{{ matrix_appservice_kakaotalk_container_network }}" | ||||
| @@ -30,7 +30,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_appservice_kakaotalk_node_container_image }} \ | {{ matrix_appservice_kakaotalk_node_container_image }} \ | ||||
| node src/main.js --config /config.json | node src/main.js --config /config.json | ||||
| {% if matrix_appservice_kakaotalk_container_network not in ['', 'host'] %} | |||||
| {% if matrix_appservice_kakaotalk_container_network != 'host' %} | |||||
| {% for network in matrix_appservice_kakaotalk_container_additional_networks %} | {% for network in matrix_appservice_kakaotalk_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-kakaotalk-node | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-kakaotalk-node | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -31,7 +31,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_appservice_kakaotalk_container_image }} \ | {{ matrix_appservice_kakaotalk_container_image }} \ | ||||
| python3 -m matrix_appservice_kakaotalk -c /config/config.yaml --no-update | python3 -m matrix_appservice_kakaotalk -c /config/config.yaml --no-update | ||||
| {% if matrix_appservice_discord_container_network not in ['', 'host'] %} | |||||
| {% if matrix_appservice_discord_container_network != 'host' %} | |||||
| {% for network in matrix_appservice_discord_container_additional_networks %} | {% for network in matrix_appservice_discord_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-kakaotalk | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-appservice-kakaotalk | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -92,7 +92,7 @@ | |||||
| register: matrix_beeper_linkedin_container_image_build_result | register: matrix_beeper_linkedin_container_image_build_result | ||||
| - name: Ensure beeper-linkedin container network is created | - name: Ensure beeper-linkedin container network is created | ||||
| when: matrix_beeper_linkedin_container_network not in ['', 'host'] | |||||
| when: matrix_beeper_linkedin_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_beeper_linkedin_container_network }}" | name: "{{ matrix_beeper_linkedin_container_network }}" | ||||
| @@ -31,7 +31,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_beeper_linkedin_container_image }} \ | {{ matrix_beeper_linkedin_container_image }} \ | ||||
| python3 -m linkedin_matrix -c /config/config.yaml -r /config/registration.yaml --no-update | python3 -m linkedin_matrix -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_beeper_linkedin_container_network not in ['', 'host'] %} | |||||
| {% if matrix_beeper_linkedin_container_network != 'host' %} | |||||
| {% for network in matrix_beeper_linkedin_container_additional_networks %} | {% for network in matrix_beeper_linkedin_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-beeper-linkedin | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-beeper-linkedin | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -50,7 +50,7 @@ | |||||
| register: matrix_heisenbridge_support_files_result | register: matrix_heisenbridge_support_files_result | ||||
| - name: Ensure Heisenbridge container network is created | - name: Ensure Heisenbridge container network is created | ||||
| when: matrix_heisenbridge_container_network not in ['', 'host'] | |||||
| when: matrix_heisenbridge_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_heisenbridge_container_network }}" | name: "{{ matrix_heisenbridge_container_network }}" | ||||
| @@ -44,7 +44,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| --listen-port 9898 \ | --listen-port 9898 \ | ||||
| {{ matrix_heisenbridge_homeserver_url }} | {{ matrix_heisenbridge_homeserver_url }} | ||||
| {% if matrix_heisenbridge_container_network not in ['', 'host'] %} | |||||
| {% if matrix_heisenbridge_container_network != 'host' %} | |||||
| {% for network in matrix_heisenbridge_container_additional_networks %} | {% for network in matrix_heisenbridge_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-heisenbridge | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-heisenbridge | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -133,7 +133,7 @@ | |||||
| register: matrix_hookshot_github_key_result | register: matrix_hookshot_github_key_result | ||||
| - name: Ensure matrix-hookshot container network is created | - name: Ensure matrix-hookshot container network is created | ||||
| when: matrix_hookshot_container_network not in ['', 'host'] | |||||
| when: matrix_hookshot_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_hookshot_container_network }}" | name: "{{ matrix_hookshot_container_network }}" | ||||
| @@ -30,7 +30,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create --rm - | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_hookshot_container_image }} | {{ matrix_hookshot_container_image }} | ||||
| {% if matrix_hookshot_container_network not in ['', 'host'] %} | |||||
| {% if matrix_hookshot_container_network != 'host' %} | |||||
| {% for network in matrix_hookshot_container_additional_networks %} | {% for network in matrix_hookshot_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} {{ matrix_hookshot_identifier }} | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} {{ matrix_hookshot_identifier }} | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -82,7 +82,7 @@ | |||||
| register: matrix_mautrix_bluesky_support_files_result | register: matrix_mautrix_bluesky_support_files_result | ||||
| - name: Ensure matrix-mautrix-bluesky container network is created | - name: Ensure matrix-mautrix-bluesky container network is created | ||||
| when: matrix_mautrix_bluesky_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_bluesky_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_bluesky_container_network }}" | name: "{{ matrix_mautrix_bluesky_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_bluesky_container_image }} \ | {{ matrix_mautrix_bluesky_container_image }} \ | ||||
| /usr/bin/mautrix-bluesky -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-bluesky -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_bluesky_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_bluesky_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_bluesky_container_additional_networks %} | {% for network in matrix_mautrix_bluesky_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-bluesky | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-bluesky | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -110,7 +110,7 @@ | |||||
| register: matrix_mautrix_discord_support_files_result | register: matrix_mautrix_discord_support_files_result | ||||
| - name: Ensure mautrix-discord container network is created | - name: Ensure mautrix-discord container network is created | ||||
| when: matrix_mautrix_discord_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_discord_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_discord_container_network }}" | name: "{{ matrix_mautrix_discord_container_network }}" | ||||
| @@ -33,7 +33,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_discord_container_image }} \ | {{ matrix_mautrix_discord_container_image }} \ | ||||
| /usr/bin/mautrix-discord -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-discord -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_discord_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_discord_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_discord_container_additional_networks %} | {% for network in matrix_mautrix_discord_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-discord | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-discord | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -150,7 +150,7 @@ | |||||
| register: matrix_mautrix_gmessages_support_files_result | register: matrix_mautrix_gmessages_support_files_result | ||||
| - name: Ensure matrix-mautrix-gmessages container network is created | - name: Ensure matrix-mautrix-gmessages container network is created | ||||
| when: matrix_mautrix_gmessages_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_gmessages_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_gmessages_container_network }}" | name: "{{ matrix_mautrix_gmessages_container_network }}" | ||||
| @@ -33,7 +33,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_gmessages_container_image }} \ | {{ matrix_mautrix_gmessages_container_image }} \ | ||||
| /usr/bin/mautrix-gmessages -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-gmessages -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_gmessages_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_gmessages_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_gmessages_container_additional_networks %} | {% for network in matrix_mautrix_gmessages_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-gmessages | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-gmessages | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -133,7 +133,7 @@ | |||||
| register: matrix_mautrix_googlechat_support_files_result | register: matrix_mautrix_googlechat_support_files_result | ||||
| - name: Ensure matrix-mautrix-googlechat container network is created | - name: Ensure matrix-mautrix-googlechat container network is created | ||||
| when: matrix_mautrix_googlechat_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_googlechat_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_googlechat_container_network }}" | name: "{{ matrix_mautrix_googlechat_container_network }}" | ||||
| @@ -35,7 +35,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_googlechat_container_image }} \ | {{ matrix_mautrix_googlechat_container_image }} \ | ||||
| python3 -m mautrix_googlechat -c /config/config.yaml --no-update | python3 -m mautrix_googlechat -c /config/config.yaml --no-update | ||||
| {% if matrix_mautrix_googlechat_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_googlechat_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_googlechat_container_additional_networks %} | {% for network in matrix_mautrix_googlechat_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-googlechat | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-googlechat | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -107,7 +107,7 @@ | |||||
| register: matrix_mautrix_meta_instagram_support_files_result | register: matrix_mautrix_meta_instagram_support_files_result | ||||
| - name: Ensure mautrix-meta-instagram container network is created | - name: Ensure mautrix-meta-instagram container network is created | ||||
| when: matrix_mautrix_meta_instagram_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_meta_instagram_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_meta_instagram_container_network }}" | name: "{{ matrix_mautrix_meta_instagram_container_network }}" | ||||
| @@ -35,7 +35,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_meta_instagram_container_image }} \ | {{ matrix_mautrix_meta_instagram_container_image }} \ | ||||
| /usr/bin/mautrix-meta -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-meta -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_meta_instagram_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_meta_instagram_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_meta_instagram_container_additional_networks %} | {% for network in matrix_mautrix_meta_instagram_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} {{ matrix_mautrix_meta_instagram_identifier }} | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} {{ matrix_mautrix_meta_instagram_identifier }} | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -107,7 +107,7 @@ | |||||
| register: matrix_mautrix_meta_messenger_support_files_result | register: matrix_mautrix_meta_messenger_support_files_result | ||||
| - name: Ensure mautrix-meta-messenger container network is created | - name: Ensure mautrix-meta-messenger container network is created | ||||
| when: matrix_mautrix_meta_messenger_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_meta_messenger_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_meta_messenger_container_network }}" | name: "{{ matrix_mautrix_meta_messenger_container_network }}" | ||||
| @@ -35,7 +35,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_meta_messenger_container_image }} \ | {{ matrix_mautrix_meta_messenger_container_image }} \ | ||||
| /usr/bin/mautrix-meta -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-meta -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_meta_messenger_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_meta_messenger_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_meta_messenger_container_additional_networks %} | {% for network in matrix_mautrix_meta_messenger_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} {{ matrix_mautrix_meta_messenger_identifier }} | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} {{ matrix_mautrix_meta_messenger_identifier }} | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -148,7 +148,7 @@ | |||||
| register: matrix_mautrix_signal_support_files_result | register: matrix_mautrix_signal_support_files_result | ||||
| - name: Ensure matrix-mautrix-signal container network is created | - name: Ensure matrix-mautrix-signal container network is created | ||||
| when: matrix_mautrix_signal_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_signal_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_signal_container_network }}" | name: "{{ matrix_mautrix_signal_container_network }}" | ||||
| @@ -33,7 +33,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_signal_container_image }} \ | {{ matrix_mautrix_signal_container_image }} \ | ||||
| /usr/bin/mautrix-signal -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-signal -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_signal_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_signal_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_signal_container_additional_networks %} | {% for network in matrix_mautrix_signal_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-signal | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-signal | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -98,7 +98,7 @@ | |||||
| register: matrix_mautrix_slack_registration_result | register: matrix_mautrix_slack_registration_result | ||||
| - name: Ensure matrix-mautrix-slack container network is created | - name: Ensure matrix-mautrix-slack container network is created | ||||
| when: matrix_mautrix_slack_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_slack_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_slack_container_network }}" | name: "{{ matrix_mautrix_slack_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_slack_container_image }} \ | {{ matrix_mautrix_slack_container_image }} \ | ||||
| /usr/bin/mautrix-slack -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-slack -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_slack_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_slack_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_slack_container_additional_networks %} | {% for network in matrix_mautrix_slack_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-slack | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-slack | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -154,7 +154,7 @@ | |||||
| register: matrix_mautrix_telegram_support_files_result | register: matrix_mautrix_telegram_support_files_result | ||||
| - name: Ensure matrix-mautrix-telegram container network is created | - name: Ensure matrix-mautrix-telegram container network is created | ||||
| when: matrix_mautrix_telegram_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_telegram_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_telegram_container_network }}" | name: "{{ matrix_mautrix_telegram_container_network }}" | ||||
| @@ -33,7 +33,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_telegram_container_image }} \ | {{ matrix_mautrix_telegram_container_image }} \ | ||||
| /usr/bin/mautrix-telegram -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-telegram -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_telegram_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_telegram_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_telegram_container_additional_networks %} | {% for network in matrix_mautrix_telegram_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-telegram | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-telegram | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -88,7 +88,7 @@ | |||||
| register: matrix_mautrix_twitter_support_files_result | register: matrix_mautrix_twitter_support_files_result | ||||
| - name: Ensure matrix-mautrix-twitter container network is created | - name: Ensure matrix-mautrix-twitter container network is created | ||||
| when: matrix_mautrix_twitter_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_twitter_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_twitter_container_network }}" | name: "{{ matrix_mautrix_twitter_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_twitter_container_image }} \ | {{ matrix_mautrix_twitter_container_image }} \ | ||||
| /usr/bin/mautrix-twitter -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-twitter -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_twitter_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_twitter_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_twitter_container_additional_networks %} | {% for network in matrix_mautrix_twitter_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-twitter | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-twitter | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -153,7 +153,7 @@ | |||||
| register: matrix_mautrix_whatsapp_support_files_result | register: matrix_mautrix_whatsapp_support_files_result | ||||
| - name: Ensure matrix-mautrix-whatsapp container network is created | - name: Ensure matrix-mautrix-whatsapp container network is created | ||||
| when: matrix_mautrix_whatsapp_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_whatsapp_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_whatsapp_container_network }}" | name: "{{ matrix_mautrix_whatsapp_container_network }}" | ||||
| @@ -33,7 +33,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_mautrix_whatsapp_container_image }} \ | {{ matrix_mautrix_whatsapp_container_image }} \ | ||||
| /usr/bin/mautrix-whatsapp -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/mautrix-whatsapp -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_mautrix_whatsapp_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_whatsapp_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_whatsapp_container_additional_networks %} | {% for network in matrix_mautrix_whatsapp_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-whatsapp | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-whatsapp | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -107,7 +107,7 @@ | |||||
| register: matrix_mautrix_wsproxy_registration_imessage_result | register: matrix_mautrix_wsproxy_registration_imessage_result | ||||
| - name: Ensure mautrix-wsproxy container network is created | - name: Ensure mautrix-wsproxy container network is created | ||||
| when: matrix_mautrix_wsproxy_container_network not in ['', 'host'] | |||||
| when: matrix_mautrix_wsproxy_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mautrix_wsproxy_container_network }}" | name: "{{ matrix_mautrix_wsproxy_container_network }}" | ||||
| @@ -29,7 +29,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_mautrix_wsproxy_syncproxy_container_image }} | {{ matrix_mautrix_wsproxy_syncproxy_container_image }} | ||||
| {% if matrix_mautrix_wsproxy_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_wsproxy_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_wsproxy_container_additional_networks %} | {% for network in matrix_mautrix_wsproxy_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-wsproxy-syncproxy | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-wsproxy-syncproxy | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create --rm - | |||||
| {{ matrix_mautrix_wsproxy_container_image }} \ | {{ matrix_mautrix_wsproxy_container_image }} \ | ||||
| /usr/bin/mautrix-wsproxy -config /data/config.yaml | /usr/bin/mautrix-wsproxy -config /data/config.yaml | ||||
| {% if matrix_mautrix_wsproxy_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mautrix_wsproxy_container_network != 'host' %} | |||||
| {% for network in matrix_mautrix_wsproxy_container_additional_networks %} | {% for network in matrix_mautrix_wsproxy_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-wsproxy | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mautrix-wsproxy | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -36,13 +36,14 @@ | |||||
| register: matrix_meshtastic_relay_config_result | register: matrix_meshtastic_relay_config_result | ||||
| - name: Ensure matrix-meshtastic-relay container network is created | - name: Ensure matrix-meshtastic-relay container network is created | ||||
| when: matrix_meshtastic_relay_container_network not in ['', 'host'] | |||||
| when: | |||||
| - matrix_meshtastic_relay_connection_type != 'ble' | |||||
| - matrix_meshtastic_relay_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_meshtastic_relay_container_network }}" | name: "{{ matrix_meshtastic_relay_container_network }}" | ||||
| driver: bridge | driver: bridge | ||||
| driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}" | driver_options: "{{ devture_systemd_docker_base_container_networks_driver_options }}" | ||||
| when: "matrix_meshtastic_relay_connection_type != 'ble'" | |||||
| - name: Ensure matrix-meshtastic-relay.service installed | - name: Ensure matrix-meshtastic-relay.service installed | ||||
| ansible.builtin.template: | ansible.builtin.template: | ||||
| @@ -43,7 +43,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_meshtastic_relay_container_image }} \ | {{ matrix_meshtastic_relay_container_image }} \ | ||||
| mmrelay --config /config/config.yaml | mmrelay --config /config/config.yaml | ||||
| {% if matrix_meshtastic_relay_container_network not in ['', 'host'] %} | |||||
| {% if matrix_meshtastic_relay_container_network != 'host' %} | |||||
| {% for network in matrix_meshtastic_relay_container_additional_networks %} | {% for network in matrix_meshtastic_relay_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-meshtastic-relay | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-meshtastic-relay | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -122,7 +122,7 @@ | |||||
| register: matrix_mx_puppet_groupme_registration_result | register: matrix_mx_puppet_groupme_registration_result | ||||
| - name: Ensure mx-puppet-groupme container network is created | - name: Ensure mx-puppet-groupme container network is created | ||||
| when: matrix_mx_puppet_groupme_container_network not in ['', 'host'] | |||||
| when: matrix_mx_puppet_groupme_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mx_puppet_groupme_container_network }}" | name: "{{ matrix_mx_puppet_groupme_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_mx_puppet_groupme_container_image }} | {{ matrix_mx_puppet_groupme_container_image }} | ||||
| {% if matrix_mx_puppet_groupme_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mx_puppet_groupme_container_network != 'host' %} | |||||
| {% for network in matrix_mx_puppet_groupme_container_additional_networks %} | {% for network in matrix_mx_puppet_groupme_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mx-puppet-groupme | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mx-puppet-groupme | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -124,7 +124,7 @@ | |||||
| register: matrix_mx_puppet_steam_registration_result | register: matrix_mx_puppet_steam_registration_result | ||||
| - name: Ensure mx-puppet-steam container network is created | - name: Ensure mx-puppet-steam container network is created | ||||
| when: matrix_mx_puppet_steam_container_network not in ['', 'host'] | |||||
| when: matrix_mx_puppet_steam_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_mx_puppet_steam_container_network }}" | name: "{{ matrix_mx_puppet_steam_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_mx_puppet_steam_container_image }} | {{ matrix_mx_puppet_steam_container_image }} | ||||
| {% if matrix_mx_puppet_steam_container_network not in ['', 'host'] %} | |||||
| {% if matrix_mx_puppet_steam_container_network != 'host' %} | |||||
| {% for network in matrix_mx_puppet_steam_container_additional_networks %} | {% for network in matrix_mx_puppet_steam_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mx-puppet-steam | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-mx-puppet-steam | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -110,7 +110,7 @@ | |||||
| register: matrix_postmoogle_container_image_build_result | register: matrix_postmoogle_container_image_build_result | ||||
| - name: Ensure postmoogle container network is created | - name: Ensure postmoogle container network is created | ||||
| when: matrix_postmoogle_container_network not in ['', 'host'] | |||||
| when: matrix_postmoogle_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_postmoogle_container_network }}" | name: "{{ matrix_postmoogle_container_network }}" | ||||
| @@ -38,7 +38,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_postmoogle_container_image }} | {{ matrix_postmoogle_container_image }} | ||||
| {% if matrix_postmoogle_container_network not in ['', 'host'] %} | |||||
| {% if matrix_postmoogle_container_network != 'host' %} | |||||
| {% for network in matrix_postmoogle_container_additional_networks %} | {% for network in matrix_postmoogle_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-postmoogle | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-postmoogle | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -60,7 +60,7 @@ | |||||
| register: matrix_sms_bridge_cert_result | register: matrix_sms_bridge_cert_result | ||||
| - name: Ensure matrix-sms-bridge container network is created | - name: Ensure matrix-sms-bridge container network is created | ||||
| when: matrix_sms_bridge_container_network not in ['', 'host'] | |||||
| when: matrix_sms_bridge_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_sms_bridge_container_network }}" | name: "{{ matrix_sms_bridge_container_network }}" | ||||
| @@ -34,7 +34,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_sms_bridge_container_image }} | {{ matrix_sms_bridge_container_image }} | ||||
| {% if matrix_sms_bridge_container_network not in ['', 'host'] %} | |||||
| {% if matrix_sms_bridge_container_network != 'host' %} | |||||
| {% for network in matrix_sms_bridge_container_additional_networks %} | {% for network in matrix_sms_bridge_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-sms-bridge | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-sms-bridge | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -82,7 +82,7 @@ | |||||
| register: matrix_steam_bridge_support_files_result | register: matrix_steam_bridge_support_files_result | ||||
| - name: Ensure matrix-steam-bridge container network is created | - name: Ensure matrix-steam-bridge container network is created | ||||
| when: matrix_steam_bridge_container_network not in ['', 'host'] | |||||
| when: matrix_steam_bridge_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_steam_bridge_container_network }}" | name: "{{ matrix_steam_bridge_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_steam_bridge_container_image }} \ | {{ matrix_steam_bridge_container_image }} \ | ||||
| /usr/bin/steam -c /app/config/config.yaml -r /app/config/registration.yaml --no-update | /usr/bin/steam -c /app/config/config.yaml -r /app/config/registration.yaml --no-update | ||||
| {% if matrix_steam_bridge_container_network not in ['', 'host'] %} | |||||
| {% if matrix_steam_bridge_container_network != 'host' %} | |||||
| {% for network in matrix_steam_bridge_container_additional_networks %} | {% for network in matrix_steam_bridge_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-steam-bridge | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-steam-bridge | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -110,7 +110,7 @@ | |||||
| register: matrix_wechat_agent_config_result | register: matrix_wechat_agent_config_result | ||||
| - name: Ensure matrix-wechat container network is created | - name: Ensure matrix-wechat container network is created | ||||
| when: matrix_wechat_container_network not in ['', 'host'] | |||||
| when: matrix_wechat_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_wechat_container_network }}" | name: "{{ matrix_wechat_container_network }}" | ||||
| @@ -33,7 +33,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_wechat_agent_container_image }} | {{ matrix_wechat_agent_container_image }} | ||||
| {% if matrix_wechat_container_network not in ['', 'host'] %} | |||||
| {% if matrix_wechat_container_network != 'host' %} | |||||
| {% for network in matrix_wechat_container_additional_networks %} | {% for network in matrix_wechat_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-wechat-agent | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-wechat-agent | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -31,7 +31,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_wechat_container_image }} \ | {{ matrix_wechat_container_image }} \ | ||||
| /usr/bin/matrix-wechat -c /config/config.yaml -r /config/registration.yaml --no-update | /usr/bin/matrix-wechat -c /config/config.yaml -r /config/registration.yaml --no-update | ||||
| {% if matrix_wechat_container_network not in ['', 'host'] %} | |||||
| {% if matrix_wechat_container_network != 'host' %} | |||||
| {% for network in matrix_wechat_container_additional_networks %} | {% for network in matrix_wechat_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-wechat | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-wechat | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -76,7 +76,7 @@ | |||||
| until: matrix_cactus_comments_client_container_image_pull_result is not failed | until: matrix_cactus_comments_client_container_image_pull_result is not failed | ||||
| - name: Ensure matrix-cactus-comments-client container network is created | - name: Ensure matrix-cactus-comments-client container network is created | ||||
| when: matrix_cactus_comments_client_container_network not in ['', 'host'] | |||||
| when: matrix_cactus_comments_client_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_cactus_comments_client_container_network }}" | name: "{{ matrix_cactus_comments_client_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| --mount type=bind,src={{ matrix_cactus_comments_client_public_path }},dst=/var/public,ro \ | --mount type=bind,src={{ matrix_cactus_comments_client_public_path }},dst=/var/public,ro \ | ||||
| {{ matrix_cactus_comments_client_container_image }} | {{ matrix_cactus_comments_client_container_image }} | ||||
| {% if matrix_cactus_comments_client_container_network not in ['', 'host'] %} | |||||
| {% if matrix_cactus_comments_client_container_network != 'host' %} | |||||
| {% for network in matrix_cactus_comments_client_container_additional_networks %} | {% for network in matrix_cactus_comments_client_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-cactus-comments-client | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-cactus-comments-client | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -28,7 +28,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| --network={{ matrix_cactus_comments_container_network }} \ | --network={{ matrix_cactus_comments_container_network }} \ | ||||
| {{ matrix_cactus_comments_container_image }} | {{ matrix_cactus_comments_container_image }} | ||||
| {% if matrix_cactus_comments_container_network not in ['', 'host'] %} | |||||
| {% if matrix_cactus_comments_container_network != 'host' %} | |||||
| {% for network in matrix_cactus_comments_container_additional_networks %} | {% for network in matrix_cactus_comments_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-cactus-comments | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-cactus-comments | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -89,7 +89,7 @@ | |||||
| register: matrix_client_commet_support_files_result | register: matrix_client_commet_support_files_result | ||||
| - name: Ensure Commet container network is created | - name: Ensure Commet container network is created | ||||
| when: matrix_client_commet_container_network not in ['', 'host'] | |||||
| when: matrix_client_commet_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_client_commet_container_network }}" | name: "{{ matrix_client_commet_container_network }}" | ||||
| @@ -41,7 +41,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_client_commet_container_image }} | {{ matrix_client_commet_container_image }} | ||||
| {% if matrix_client_commet_container_network not in ['', 'host'] %} | |||||
| {% if matrix_client_commet_container_network != 'host' %} | |||||
| {% for network in matrix_client_commet_container_additional_networks %} | {% for network in matrix_client_commet_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-commet | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-commet | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -116,7 +116,7 @@ | |||||
| when: "item.src is none" | when: "item.src is none" | ||||
| - name: Ensure Element Web container network is created | - name: Ensure Element Web container network is created | ||||
| when: matrix_client_element_container_network not in ['', 'host'] | |||||
| when: matrix_client_element_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_client_element_container_network }}" | name: "{{ matrix_client_element_container_network }}" | ||||
| @@ -52,7 +52,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_client_element_container_image }} | {{ matrix_client_element_container_image }} | ||||
| {% if matrix_client_element_container_network not in ['', 'host'] %} | |||||
| {% if matrix_client_element_container_network != 'host' %} | |||||
| {% for network in matrix_client_element_container_additional_networks %} | {% for network in matrix_client_element_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-element | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-element | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -62,7 +62,7 @@ | |||||
| register: matrix_client_fluffychat_config_result | register: matrix_client_fluffychat_config_result | ||||
| - name: Ensure FluffyChat Web container network is created | - name: Ensure FluffyChat Web container network is created | ||||
| when: matrix_client_fluffychat_container_network not in ['', 'host'] | |||||
| when: matrix_client_fluffychat_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_client_fluffychat_container_network }}" | name: "{{ matrix_client_fluffychat_container_network }}" | ||||
| @@ -32,7 +32,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_client_fluffychat_container_image }} | {{ matrix_client_fluffychat_container_image }} | ||||
| {% if matrix_client_fluffychat_container_network not in ['', 'host'] %} | |||||
| {% if matrix_client_fluffychat_container_network != 'host' %} | |||||
| {% for network in matrix_client_fluffychat_container_additional_networks %} | {% for network in matrix_client_fluffychat_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-fluffychat | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-fluffychat | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -107,7 +107,7 @@ | |||||
| when: "item.src is none" | when: "item.src is none" | ||||
| - name: Ensure SchildiChat Web container network is created | - name: Ensure SchildiChat Web container network is created | ||||
| when: matrix_client_schildichat_container_network not in ['', 'host'] | |||||
| when: matrix_client_schildichat_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_client_schildichat_container_network }}" | name: "{{ matrix_client_schildichat_container_network }}" | ||||
| @@ -40,7 +40,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_client_schildichat_container_image }} | {{ matrix_client_schildichat_container_image }} | ||||
| {% if matrix_client_schildichat_container_network not in ['', 'host'] %} | |||||
| {% if matrix_client_schildichat_container_network != 'host' %} | |||||
| {% for network in matrix_client_schildichat_container_additional_networks %} | {% for network in matrix_client_schildichat_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-schildichat | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-client-schildichat | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -45,7 +45,7 @@ | |||||
| register: matrix_conduit_support_files_result | register: matrix_conduit_support_files_result | ||||
| - name: Ensure Conduit container network is created | - name: Ensure Conduit container network is created | ||||
| when: matrix_conduit_container_network not in ['', 'host'] | |||||
| when: matrix_conduit_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_conduit_container_network }}" | name: "{{ matrix_conduit_container_network }}" | ||||
| @@ -30,7 +30,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_conduit_container_image }} | {{ matrix_conduit_container_image }} | ||||
| {% if matrix_conduit_container_network not in ['', 'host'] %} | |||||
| {% if matrix_conduit_container_network != 'host' %} | |||||
| {% for network in matrix_conduit_container_additional_networks %} | {% for network in matrix_conduit_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-conduit | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-conduit | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -42,7 +42,7 @@ | |||||
| register: matrix_continuwuity_support_files_result | register: matrix_continuwuity_support_files_result | ||||
| - name: Ensure continuwuity container network is created | - name: Ensure continuwuity container network is created | ||||
| when: matrix_continuwuity_container_network not in ['', 'host'] | |||||
| when: matrix_continuwuity_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_continuwuity_container_network }}" | name: "{{ matrix_continuwuity_container_network }}" | ||||
| @@ -39,7 +39,7 @@ | |||||
| - labels | - labels | ||||
| - name: Ensure continuwuity container network is created | - name: Ensure continuwuity container network is created | ||||
| when: matrix_continuwuity_container_network not in ['', 'host'] | |||||
| when: matrix_continuwuity_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_continuwuity_container_network }}" | name: "{{ matrix_continuwuity_container_network }}" | ||||
| @@ -34,7 +34,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_continuwuity_container_image }} | {{ matrix_continuwuity_container_image }} | ||||
| {% if matrix_continuwuity_container_network not in ['', 'host'] %} | |||||
| {% if matrix_continuwuity_container_network != 'host' %} | |||||
| {% for network in matrix_continuwuity_container_additional_networks %} | {% for network in matrix_continuwuity_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-continuwuity | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-continuwuity | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -76,7 +76,7 @@ | |||||
| register: matrix_corporal_support_files_result | register: matrix_corporal_support_files_result | ||||
| - name: Ensure Matrix Corporal container network is created | - name: Ensure Matrix Corporal container network is created | ||||
| when: matrix_corporal_container_network not in ['', 'host'] | |||||
| when: matrix_corporal_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_corporal_container_network }}" | name: "{{ matrix_corporal_container_network }}" | ||||
| @@ -37,7 +37,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {{ matrix_corporal_container_image }} \ | {{ matrix_corporal_container_image }} \ | ||||
| /matrix-corporal -config=/etc/matrix-corporal/config.json | /matrix-corporal -config=/etc/matrix-corporal/config.json | ||||
| {% if matrix_corporal_container_network not in ['', 'host'] %} | |||||
| {% if matrix_corporal_container_network != 'host' %} | |||||
| {% for network in matrix_corporal_container_additional_networks %} | {% for network in matrix_corporal_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-corporal | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-corporal | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -118,7 +118,7 @@ | |||||
| when: "matrix_dendrite_git_pull_results.changed | bool or matrix_dendrite_container_image_check_result.stdout == ''" | when: "matrix_dendrite_git_pull_results.changed | bool or matrix_dendrite_container_image_check_result.stdout == ''" | ||||
| - name: Ensure Dendrite container network is created | - name: Ensure Dendrite container network is created | ||||
| when: matrix_dendrite_container_network not in ['', 'host'] | |||||
| when: matrix_dendrite_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_dendrite_container_network }}" | name: "{{ matrix_dendrite_container_network }}" | ||||
| @@ -57,7 +57,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| -https-bind-address {{ matrix_dendrite_https_bind_address }} | -https-bind-address {{ matrix_dendrite_https_bind_address }} | ||||
| {% endif %} | {% endif %} | ||||
| {% if matrix_dendrite_container_network not in ['', 'host'] %} | |||||
| {% if matrix_dendrite_container_network != 'host' %} | |||||
| {% for network in matrix_dendrite_container_additional_networks %} | {% for network in matrix_dendrite_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-dendrite | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-dendrite | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -63,7 +63,7 @@ | |||||
| changed_when: true | changed_when: true | ||||
| - name: Ensure Element Admin container network is created | - name: Ensure Element Admin container network is created | ||||
| when: matrix_element_admin_container_network not in ['', 'host'] | |||||
| when: matrix_element_admin_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_element_admin_container_network }}" | name: "{{ matrix_element_admin_container_network }}" | ||||
| @@ -35,7 +35,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_element_admin_container_image }} {{ matrix_element_admin_container_process_extra_arguments | join(' ') }} | {{ matrix_element_admin_container_image }} {{ matrix_element_admin_container_process_extra_arguments | join(' ') }} | ||||
| {% if matrix_element_admin_container_network not in ['', 'host'] %} | |||||
| {% if matrix_element_admin_container_network != 'host' %} | |||||
| {% for network in matrix_element_admin_container_additional_networks %} | {% for network in matrix_element_admin_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-element-admin | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-element-admin | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -44,7 +44,7 @@ | |||||
| until: matrix_element_call_container_image_pull_result is not failed | until: matrix_element_call_container_image_pull_result is not failed | ||||
| - name: Ensure Element Call container network is created | - name: Ensure Element Call container network is created | ||||
| when: matrix_element_call_container_network not in ['', 'host'] | |||||
| when: matrix_element_call_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_element_call_container_network }}" | name: "{{ matrix_element_call_container_network }}" | ||||
| @@ -30,7 +30,7 @@ ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} create \ | |||||
| {% endfor %} | {% endfor %} | ||||
| {{ matrix_element_call_container_image }} | {{ matrix_element_call_container_image }} | ||||
| {% if matrix_element_call_container_network not in ['', 'host'] %} | |||||
| {% if matrix_element_call_container_network != 'host' %} | |||||
| {% for network in matrix_element_call_container_additional_networks %} | {% for network in matrix_element_call_container_additional_networks %} | ||||
| ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-element-call | ExecStartPre={{ devture_systemd_docker_base_host_command_docker }} network connect {{ network }} matrix-element-call | ||||
| {% endfor %} | {% endfor %} | ||||
| @@ -102,7 +102,7 @@ | |||||
| register: matrix_ketesa_container_image_build_result | register: matrix_ketesa_container_image_build_result | ||||
| - name: Ensure matrix-ketesa container network is created | - name: Ensure matrix-ketesa container network is created | ||||
| when: matrix_ketesa_container_network not in ['', 'host'] | |||||
| when: matrix_ketesa_container_network != 'host' | |||||
| community.general.docker_network: | community.general.docker_network: | ||||
| enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | enable_ipv6: "{{ devture_systemd_docker_base_ipv6_enabled }}" | ||||
| name: "{{ matrix_ketesa_container_network }}" | name: "{{ matrix_ketesa_container_network }}" | ||||