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

29 строки
1.7 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. - name: Fail if matrix_coturn_authentication_method is invalid
  13. ansible.builtin.fail:
  14. msg: >-
  15. Invalid authentication method specified in `matrix_coturn_authentication_method`
  16. when: "matrix_coturn_authentication_method not in ['auth-secret', 'lt-cred-mech']"
  17. - name: Fail if required coturn settings not defined
  18. ansible.builtin.fail:
  19. msg: >-
  20. You need to define a required configuration setting (`{{ item.name }}`).
  21. when: "item.when | bool and vars[item.name] == ''"
  22. with_items:
  23. - {'name': 'matrix_coturn_turn_static_auth_secret', when: "{{ matrix_coturn_authentication_method == 'auth-secret' }}"}
  24. - {'name': 'matrix_coturn_lt_cred_mech_username', when: "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}"}
  25. - {'name': 'matrix_coturn_lt_cred_mech_password', when: "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}"}