Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

27 řádky
1.3 KiB

  1. ---
  2. - name: Fail if required appservice-slack 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_appservice_slack_control_room_id', when: true}
  9. - {'name': 'matrix_appservice_slack_appservice_token', when: true}
  10. - {'name': 'matrix_appservice_slack_homeserver_url', when: true}
  11. - {'name': 'matrix_appservice_slack_homeserver_token', when: true}
  12. - {'name': 'matrix_appservice_slack_id_token', when: true}
  13. - {'name': 'matrix_appservice_slack_database_hostname', when: "{{ matrix_appservice_slack_database_engine == 'postgres' }}"}
  14. - {'name': 'matrix_appservice_slack_container_network', when: true}
  15. - {'name': 'matrix_appservice_slack_hostname', when: true}
  16. - {'name': 'matrix_appservice_slack_path_prefix', when: true}
  17. - name: (Deprecation) Catch and report renamed settings
  18. ansible.builtin.fail:
  19. msg: >-
  20. Your configuration contains a variable, which now has a different name.
  21. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  22. when: "item.old in vars"
  23. with_items:
  24. - {'old': 'matrix_appservice_slack_container_self_build', 'new': 'matrix_appservice_slack_container_image_self_build'}