Matrix Docker Ansible eploy
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

39 lignes
1.3 KiB

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