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.
 
 

31 rivejä
1.7 KiB

  1. # See https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
  2. # and https://github.com/spantaleev/matrix-docker-ansible-deploy/commit/1ab507349c752042d26def3e95884f6df8886b74#commitcomment-51108407
  3. - name: Fail if trying to self-build on Ansible < 2.8
  4. fail:
  5. msg: "To self-build the Element image, you should use Ansible 2.8 or higher. See docs/ansible.md"
  6. when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_groupme_container_image_self_build"
  7. - set_fact:
  8. matrix_systemd_services_list: "{{ matrix_systemd_services_list + ['matrix-mx-puppet-groupme.service'] }}"
  9. when: matrix_mx_puppet_groupme_enabled|bool
  10. # If the matrix-synapse role is not used, these variables may not exist.
  11. - set_fact:
  12. matrix_synapse_container_extra_arguments: >
  13. {{ matrix_synapse_container_extra_arguments|default([]) }}
  14. +
  15. ["--mount type=bind,src={{ matrix_mx_puppet_groupme_config_path }}/registration.yaml,dst=/matrix-mx-puppet-groupme-registration.yaml,ro"]
  16. matrix_synapse_app_service_config_files: >
  17. {{ matrix_synapse_app_service_config_files|default([]) }}
  18. +
  19. {{ ["/matrix-mx-puppet-groupme-registration.yaml"] }}
  20. when: matrix_mx_puppet_groupme_enabled|bool
  21. # ansible lower than 2.8, does not support docker_image build parameters
  22. # for self building it is explicitly needed, so we rather fail here
  23. - name: Fail if running on Ansible lower than 2.8 and trying self building
  24. fail:
  25. msg: "To self build Puppet Slack image, you should usa ansible 2.8 or higher. E.g. pip contains such packages."
  26. when: "ansible_version.major == 2 and ansible_version.minor < 8 and matrix_mx_puppet_groupme_container_image_self_build"