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.
 
 

21 lines
934 B

  1. ---
  2. - name: Fail if required mautrix-whatsapp 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_mautrix_whatsapp_appservice_token', when: true}
  9. - {'name': 'matrix_mautrix_whatsapp_homeserver_token', when: true}
  10. - {'name': 'matrix_mautrix_whatsapp_database_hostname', when: "{{ matrix_mautrix_whatsapp_database_engine == 'postgres' }}"}
  11. - name: (Deprecation) Catch and report renamed settings
  12. ansible.builtin.fail:
  13. msg: >-
  14. Your configuration contains a variable, which now has a different name.
  15. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  16. when: "item.old in vars"
  17. with_items:
  18. - {'old': 'matrix_mautrix_whatsapp_log_level', 'new': 'matrix_mautrix_whatsapp_logging_level'}