Matrix Docker Ansible eploy
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

27 líneas
1.3 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. - name: Fail if matrix_coturn_authentication_method is invalid
  11. ansible.builtin.fail:
  12. msg: >-
  13. Invalid authentication method specified in `matrix_coturn_authentication_method`
  14. when: "matrix_coturn_authentication_method not in ['auth-secret', 'lt-cred-mech']"
  15. - name: Fail if required Coturn settings not defined
  16. ansible.builtin.fail:
  17. msg: >-
  18. You need to define a required configuration setting (`{{ item.name }}`).
  19. when: "item.when | bool and vars[item.name] == ''"
  20. with_items:
  21. - {'name': 'matrix_coturn_turn_static_auth_secret', when: "{{ matrix_coturn_authentication_method == 'auth-secret' }}"}
  22. - {'name': 'matrix_coturn_lt_cred_mech_username', when: "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}"}
  23. - {'name': 'matrix_coturn_lt_cred_mech_password', when: "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}"}