---

- name: Fail if required matrix-synapse-auto-compressor settings not defined
  ansible.builtin.fail:
    msg: >
      You need to define a required configuration setting (`{{ item }}`).
  when: "vars[item] == ''"
  with_items:
    - matrix_synapse_auto_compressor_database_hostname
    - matrix_synapse_auto_compressor_database_password
