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.
 
 

82 lines
3.3 KiB

  1. ---
  2. # matrix-aux is a role that manages auxiliary files and directories on your Matrix server.
  3. #
  4. # Certain components (like matrix-synapse, etc.) may sometimes require additional templates (email templates, privacy policies, etc.).
  5. # This role allows such files to be managed by the playbook.
  6. #
  7. # Note that files and directories created via this role are not automatically made available for containers to use.
  8. # If you use this role to put files in a directory that's already mounted into a container,
  9. # you can access the files without additional work.
  10. # Otherwise, you'd need to mount the file/directory to the container that needs it.
  11. # Roles usually provide a `matrix_*_additional_volumes` or `matrix_*_container_extra_arguments` variable
  12. # that you can use to mount an additional volume.
  13. # The default permission mode when creating directories using `matrix_aux_directory_definitions`
  14. matrix_aux_directory_default_mode: '0750'
  15. # Holds a list of directories to create on the server.
  16. #
  17. # By default, directories are:
  18. # - created with permissions as specified in `matrix_aux_directory_default_mode`
  19. # - owned by the `matrix_user_username` user and `matrix_user_groupname` group (usually `matrix:matrix`)
  20. #
  21. # Example:
  22. #
  23. # matrix_aux_directory_definitions:
  24. # - dest: /matrix/aux
  25. #
  26. # - dest: /matrix/another
  27. # mode: '0700'
  28. # owner: 'some-user'
  29. # group: 'some-group'
  30. matrix_aux_directory_definitions: []
  31. # The default permission mode when creating directories using `matrix_aux_directory_definitions`
  32. matrix_aux_file_default_mode: '0640'
  33. # Holds a list of files to create on the server.
  34. #
  35. # By default, files are:
  36. # - created with permissions as specified in `matrix_aux_file_default_mode`
  37. # - owned by the `matrix_user_username` user and `matrix_user_groupname` group (usually `matrix:matrix`)
  38. #
  39. # You can define the file content inline (in your `vars.yml` file) or as an external file (see the example below).
  40. # Defining the content inline in `vars.yml` has the benefit of not splitting your configuration into multiple files,
  41. # but rather keeping everything inside `vars.yml` (which also gets backed up on the server in `/matrix/vars.yml`).
  42. #
  43. # Note: parent paths for files must exist.
  44. # If you've defined a file with a destination of `/matrix/some/path/file.txt`,
  45. # then you likely need to add `/matrix/some/path` to `matrix_aux_directory_definitions` as well.
  46. # You don't need to do this for directories that the playbook already creates for you.
  47. #
  48. # Use a `content` key for text content and `src` with a location to a file for binary content.
  49. # The `content` key does not support binary content (see https://github.com/ansible/ansible/issues/11594).
  50. #
  51. # Example:
  52. #
  53. # matrix_aux_file_definitions:
  54. # - dest: "{{ matrix_synapse_config_dir_path }}/something.html"
  55. # content: |
  56. # <!doctype html>
  57. # <html><body>Something</body></html>
  58. #
  59. # - dest: /matrix/aux/some-other-file.txt
  60. # content: "Something"
  61. # mode: '0600'
  62. # owner: 'some-user'
  63. # group: 'some-group'
  64. #
  65. # - dest: /matrix/aux/yet-another-file.txt
  66. # content: "{{ lookup('template', '/path/to/file.txt.j2') }}"
  67. # mode: '0600'
  68. # owner: 'some-user'
  69. # group: 'some-group'
  70. #
  71. # - dest: /matrix/aux/binary-file.dat
  72. # src: "/path/to/binary.dat"
  73. # mode: '0600'
  74. # owner: 'some-user'
  75. # group: 'some-group'
  76. matrix_aux_file_definitions: []