Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

44 satır
1.8 KiB

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