Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
1.3 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Fail if required matrix-reminder-bot settings not defined
  6. ansible.builtin.fail:
  7. msg: >-
  8. You need to define a required configuration setting (`{{ item }}`).
  9. when: "item.when | bool and vars[item.name] == ''"
  10. with_items:
  11. - {'name': 'matrix_bot_matrix_reminder_bot_matrix_user_password', when: true}
  12. - {'name': 'matrix_bot_matrix_reminder_bot_reminders_timezone', when: true}
  13. - {'name': 'matrix_bot_matrix_reminder_bot_container_network', when: true}
  14. - {'name': 'matrix_bot_matrix_reminder_bot_matrix_homeserver_url', when: true}
  15. - {'name': 'matrix_bot_matrix_reminder_bot_database_hostname', when: "{{ matrix_bot_matrix_reminder_bot_database_engine == 'postgres' }}"}
  16. - name: (Deprecation) Catch and report renamed matrix-reminder-bot settings
  17. ansible.builtin.fail:
  18. msg: >-
  19. Your configuration contains a variable, which now has a different name.
  20. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  21. when: "item.old in vars"
  22. with_items:
  23. - {'old': 'matrix_bot_matrix_reminder_bot_container_self_build', 'new': 'matrix_bot_matrix_reminder_bot_container_image_self_build'}