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.
 
 

21 lines
894 B

  1. ---
  2. - name: Fail if required Postmoogle 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_postmoogle_password', when: true}
  9. - {'name': 'matrix_postmoogle_container_network', when: true}
  10. - {'name': 'matrix_postmoogle_homeserver', when: true}
  11. - {'name': 'matrix_postmoogle_database_hostname', when: "{{ matrix_postmoogle_database_engine == 'postgres' }}"}
  12. - name: (Deprecation) Catch and report renamed Postmoogle variables
  13. ansible.builtin.fail:
  14. msg: >-
  15. The variable `{{ item.old }}` is deprecated. Please use `{{ item.new }}` instead.
  16. when: "item.old in vars"
  17. with_items:
  18. - {'old': 'matrix_postmoogle_docker_image_name_prefix', 'new': 'matrix_postmoogle_docker_image_registry_prefix'}