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.
 
 

41 lines
1.3 KiB

  1. # SPDX-FileCopyrightText: 2017 - 2025 Slavi Pantaleev
  2. # SPDX-FileCopyrightText: 2018 - 2022 MDAD project contributors
  3. # SPDX-FileCopyrightText: 2019 Stuart Mumford
  4. # SPDX-FileCopyrightText: 2020 Béla Becker
  5. # SPDX-FileCopyrightText: 2020 Chris van Dijk
  6. # SPDX-FileCopyrightText: 2020 Horvath Gergely
  7. # SPDX-FileCopyrightText: 2022 Sebastian Gumprich
  8. # SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
  9. # SPDX-FileCopyrightText: 2024 László Várady
  10. # SPDX-FileCopyrightText: 2026 Chiu Ki Sit
  11. #
  12. # SPDX-License-Identifier: AGPL-3.0-or-later
  13. ---
  14. - name: Ensure Matrix base paths exists
  15. ansible.builtin.file:
  16. path: "{{ item }}"
  17. state: directory
  18. mode: "{{ matrix_base_data_path_mode }}"
  19. owner: "{{ matrix_user_name }}"
  20. group: "{{ matrix_group_name }}"
  21. with_items:
  22. - "{{ matrix_base_data_path }}"
  23. - "{{ matrix_bin_path }}"
  24. - name: Ensure remove-all script created
  25. ansible.builtin.template:
  26. src: "{{ role_path }}/templates/bin/remove-all.j2"
  27. dest: "{{ matrix_bin_path }}/remove-all"
  28. mode: '0750'
  29. - name: Ensure Matrix base path ownership is correct using numeric UID/GID (Synology)
  30. ansible.builtin.file:
  31. path: "{{ matrix_base_data_path }}"
  32. owner: "{{ matrix_user_uid }}"
  33. group: "{{ matrix_user_gid }}"
  34. recurse: true
  35. state: directory
  36. when: matrix_synoinfo_conf_stat.stat.exists | bool