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.
 
 

24 line
1.2 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed Buscarron settings
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_bot_buscarron_noencryption', 'new': '<removed>'}
  10. - {'old': 'matrix_bot_buscarron_spam_hosts', 'new': '<superseded by matrix_bot_buscarron_spamlist>'}
  11. - {'old': 'matrix_bot_buscarron_spam_emails', 'new': '<superseded by matrix_bot_buscarron_spamlist>'}
  12. - {'old': 'matrix_bot_buscarron_spam_localparts', 'new': '<superseded by matrix_bot_buscarron_spamlist>'}
  13. - name: Fail if required Buscarron settings not defined
  14. ansible.builtin.fail:
  15. msg: >-
  16. You need to define a required configuration setting (`{{ item.name }}`).
  17. when: "item.when | bool and vars[item.name] == ''"
  18. with_items:
  19. - {'name': 'matrix_bot_buscarron_password', when: true}
  20. - {'name': 'matrix_bot_buscarron_hostname', when: true}
  21. - {'name': 'matrix_bot_buscarron_database_hostname', when: "{{ matrix_bot_buscarron_database_engine == 'postgres' }}"}
  22. - {'name': 'matrix_bot_buscarron_homeserver', when: true}