Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

50 wiersze
1.9 KiB

  1. ---
  2. - import_tasks: "{{ role_path }}/../matrix-base/tasks/util/ensure_fuse_installed.yml"
  3. - name: Ensure Goofys Docker image is pulled
  4. docker_image:
  5. name: "{{ matrix_s3_goofys_docker_image }}"
  6. source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
  7. force_source: "{{ matrix_s3_goofys_docker_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
  8. force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_s3_goofys_docker_image_force_pull }}"
  9. register: result
  10. retries: "{{ matrix_container_retries_count }}"
  11. delay: "{{ matrix_container_retries_delay }}"
  12. until: result is not failed
  13. # This will throw a Permission Denied error if already mounted
  14. - name: Check Matrix Goofys external storage mountpoint path
  15. stat:
  16. path: "{{ matrix_s3_media_store_path }}"
  17. register: local_path_matrix_s3_media_store_path_stat
  18. ignore_errors: true
  19. - name: Ensure Matrix Goofys external storage mountpoint exists
  20. file:
  21. path: "{{ matrix_s3_media_store_path }}"
  22. state: directory
  23. mode: 0750
  24. owner: "{{ matrix_user_username }}"
  25. group: "{{ matrix_user_groupname }}"
  26. when: "not local_path_matrix_s3_media_store_path_stat.failed and not local_path_matrix_s3_media_store_path_stat.stat.exists"
  27. - name: Ensure goofys environment variables file created
  28. template:
  29. src: "{{ role_path }}/templates/goofys/env-goofys.j2"
  30. dest: "{{ matrix_synapse_config_dir_path }}/env-goofys"
  31. owner: root
  32. mode: 0600
  33. - name: Ensure matrix-goofys.service installed
  34. template:
  35. src: "{{ role_path }}/templates/goofys/systemd/matrix-goofys.service.j2"
  36. dest: "{{ matrix_systemd_path }}/matrix-goofys.service"
  37. mode: 0644
  38. register: matrix_goofys_systemd_service_result
  39. - name: Ensure systemd reloaded after matrix-goofys.service installation
  40. service:
  41. daemon_reload: true
  42. when: "matrix_goofys_systemd_service_result.changed"