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.
 
 

26 lines
1.0 KiB

  1. ---
  2. - name: Fail if required matrix-appservice-webhooks settings not defined
  3. ansible.builtin.fail:
  4. msg: >-
  5. You need to define a required configuration setting (`{{ item }}`).
  6. when: "vars[item] == ''"
  7. with_items:
  8. - matrix_appservice_webhooks_appservice_token
  9. - matrix_appservice_webhooks_homeserver_url
  10. - matrix_appservice_webhooks_homeserver_token
  11. - matrix_appservice_webhooks_id_token
  12. - matrix_appservice_webhooks_api_secret
  13. - matrix_appservice_webhooks_container_network
  14. - matrix_appservice_webhooks_hostname
  15. - matrix_appservice_webhooks_path_prefix
  16. - name: (Deprecation) Catch and report renamed appservice-webhooks variables
  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_appservice_webhooks_docker_image_name_prefix', 'new': 'matrix_appservice_webhooks_docker_image_registry_prefix'}