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.
 
 

23 lines
858 B

  1. ---
  2. - name: Fail if required settings not defined
  3. fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - "matrix_mautrix_googlechat_public_endpoint"
  9. - "matrix_mautrix_googlechat_appservice_token"
  10. - "matrix_mautrix_googlechat_homeserver_token"
  11. - name: (Deprecation) Catch and report renamed settings
  12. 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_hangouts_enabled', 'new': 'matrix_mautrix_googlechat_enabled'}
  19. - debug:
  20. msg:
  21. - '`matrix_mautrix_googlechat_homeserver_domain` == {{ matrix_mautrix_googlechat_homeserver_domain }}'