Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

30 строки
1.8 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed coturn settings
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_coturn_docker_network', 'new': 'matrix_coturn_container_network'}
  10. - {'old': 'matrix_coturn_container_stun_plain_host_bind_port', 'new': 'superseded by matrix_coturn_container_stun_plain_host_bind_port_tcp and matrix_coturn_container_stun_plain_host_bind_port_udp'}
  11. - {'old': 'matrix_coturn_container_stun_tls_host_bind_port', 'new': 'superseded by matrix_coturn_container_stun_tls_host_bind_port_tcp and matrix_coturn_container_stun_tls_host_bind_port_udp'}
  12. - {'old': 'matrix_coturn_container_image_name_prefix', 'new': 'matrix_coturn_docker_image_registry_prefix'}
  13. - name: Fail if matrix_coturn_authentication_method is invalid
  14. ansible.builtin.fail:
  15. msg: >-
  16. Invalid authentication method specified in `matrix_coturn_authentication_method`
  17. when: "matrix_coturn_authentication_method not in ['auth-secret', 'lt-cred-mech']"
  18. - name: Fail if required coturn settings not defined
  19. ansible.builtin.fail:
  20. msg: >-
  21. You need to define a required configuration setting (`{{ item.name }}`).
  22. when: "item.when | bool and vars[item.name] == ''"
  23. with_items:
  24. - {'name': 'matrix_coturn_turn_static_auth_secret', when: "{{ matrix_coturn_authentication_method == 'auth-secret' }}"}
  25. - {'name': 'matrix_coturn_lt_cred_mech_username', when: "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}"}
  26. - {'name': 'matrix_coturn_lt_cred_mech_password', when: "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}"}