Matrix Docker Ansible eploy
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
941 B

  1. ---
  2. - name: Fail if required mautrix-gmessages 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_gmessages_appservice_token', when: true}
  9. - {'name': 'matrix_mautrix_gmessages_homeserver_token', when: true}
  10. - {'name': 'matrix_mautrix_gmessages_database_hostname', when: "{{ matrix_mautrix_gmessages_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_gmessages_log_level', 'new': 'matrix_mautrix_gmessages_logging_level'}