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.
 
 

40 wiersze
1.4 KiB

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