Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

27 行
1.6 KiB

  1. ---
  2. - name: Fail if required mautrix-telegram settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item.name }}`).
  6. when: "item.when | bool and vars[item.name] == ''"
  7. with_items:
  8. - {'name': 'matrix_mautrix_telegram_api_id', when: true}
  9. - {'name': 'matrix_mautrix_telegram_api_hash', when: true}
  10. - {'name': 'matrix_mautrix_telegram_public_endpoint', when: true}
  11. - {'name': 'matrix_mautrix_telegram_appservice_token', when: true}
  12. - {'name': 'matrix_mautrix_telegram_homeserver_token', when: true}
  13. - {'name': 'matrix_mautrix_telegram_database_hostname', when: "{{ matrix_mautrix_telegram_database_engine == 'postgres' }}"}
  14. - name: (Deprecation) Catch and report renamed Telegram variables
  15. ansible.builtin.fail:
  16. msg: >-
  17. Your configuration contains a variable, which now has a different name.
  18. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  19. when: "item.old in vars"
  20. with_items:
  21. - {'old': 'matrix_mautrix_telegram_container_exposed_port_number', 'new': '<superseded by matrix_mautrix_telegram_container_http_host_bind_port>'}
  22. - {'old': 'matrix_mautrix_telegram_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  23. - {'old': 'matrix_telegram_lottieconverter_container_self_build', 'new': 'matrix_mautrix_telegram_container_image_self_build'}
  24. - {'old': 'matrix_telegram_lottieconverter_container_self_build_mask_arch', 'new': 'matrix_telegram_lottieconverter_container_image_self_build_mask_arch'}