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.
 
 

25 lines
934 B

  1. ---
  2. - name: Fail if Macaroon key is missing
  3. fail:
  4. msg: "You need to set a secret in the matrix_synapse_macaroon_secret_key variable"
  5. when: "matrix_synapse_macaroon_secret_key == ''"
  6. - set_fact:
  7. matrix_synapse_media_store_parent_path: "{{ matrix_synapse_media_store_path|dirname }}"
  8. matrix_synapse_media_store_directory_name: "{{ matrix_synapse_media_store_path|basename }}"
  9. - name: Ensure Matrix Synapse paths exist
  10. file:
  11. path: "{{ item }}"
  12. state: directory
  13. mode: 0750
  14. owner: "{{ matrix_user_username }}"
  15. group: "{{ matrix_user_username }}"
  16. with_items:
  17. - "{{ matrix_synapse_config_dir_path }}"
  18. - "{{ matrix_synapse_run_path }}"
  19. - "{{ matrix_synapse_ext_path }}"
  20. # We handle matrix_synapse_media_store_path elsewhere (in setup_synapse_main.yml),
  21. # because if it's using Goofys and it's already mounted (from before),
  22. # trying to chown/chmod it here will cause trouble.