Matrix Docker Ansible eploy
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

28 rader
1.4 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed maubot variables
  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_bot_maubot_management_interface_port', 'new': 'matrix_bot_maubot_server_port'}
  10. - {'old': 'matrix_bot_maubot_management_interface_http_bind_port', 'new': 'matrix_bot_maubot_container_management_interface_http_bind_port'}
  11. - {'old': 'matrix_bot_maubot_registration_shared_secret', 'new': 'matrix_bot_maubot_homeserver_secret'}
  12. - name: Fail if required maubot settings not defined
  13. ansible.builtin.fail:
  14. msg: >-
  15. You need to define a required configuration setting (`{{ item.name }}`).
  16. when: "item.when | bool and vars[item.name] == ''"
  17. with_items:
  18. - {'name': 'matrix_bot_maubot_hostname', when: true}
  19. - {'name': 'matrix_bot_maubot_path_prefix', when: true}
  20. - {'name': 'matrix_bot_maubot_unshared_secret', when: true}
  21. - {'name': 'matrix_bot_maubot_admins', when: true}
  22. - {'name': 'matrix_bot_maubot_database_hostname', when: "{{ matrix_bot_maubot_database_engine == 'postgres' }}"}
  23. - {'name': 'matrix_bot_maubot_container_network', when: true}
  24. - {'name': 'matrix_bot_maubot_homeserver_name', when: true}
  25. - {'name': 'matrix_bot_maubot_homeserver_url', when: true}