Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

45 строки
2.2 KiB

  1. ---
  2. - name: Ensure matrix-synapse-reverse-proxy-companion paths exist
  3. ansible.builtin.file:
  4. path: "{{ item }}"
  5. state: directory
  6. mode: 0750
  7. owner: "{{ matrix_user_username }}"
  8. group: "{{ matrix_user_groupname }}"
  9. with_items:
  10. - "{{ matrix_synapse_reverse_proxy_companion_base_path }}"
  11. - "{{ matrix_synapse_reverse_proxy_companion_confd_path }}"
  12. - name: Ensure matrix-synapse-reverse-proxy-companion configured
  13. ansible.builtin.template:
  14. src: "{{ item.src }}"
  15. dest: "{{ item.dest }}"
  16. owner: "{{ matrix_user_username }}"
  17. group: "{{ matrix_user_groupname }}"
  18. mode: 0644
  19. with_items:
  20. - src: "{{ role_path }}/templates/nginx/nginx.conf.j2"
  21. dest: "{{ matrix_synapse_reverse_proxy_companion_base_path }}/nginx.conf"
  22. - src: "{{ role_path }}/templates/nginx/conf.d/nginx-http.conf.j2"
  23. dest: "{{ matrix_synapse_reverse_proxy_companion_confd_path }}/nginx-http.conf"
  24. - src: "{{ role_path }}/templates/nginx/conf.d/matrix-synapse-reverse-proxy-companion.conf.j2"
  25. dest: "{{ matrix_synapse_reverse_proxy_companion_confd_path }}/matrix-synapse-reverse-proxy-companion.conf"
  26. - name: Ensure matrix-synapse-reverse-proxy-companion nginx container image is pulled
  27. community.docker.docker_image:
  28. name: "{{ matrix_synapse_reverse_proxy_companion_container_image }}"
  29. source: "{{ 'pull' if ansible_version.major > 2 or ansible_version.minor > 7 else omit }}"
  30. force_source: "{{ matrix_synapse_reverse_proxy_companion_container_image_force_pull if ansible_version.major > 2 or ansible_version.minor >= 8 else omit }}"
  31. force: "{{ omit if ansible_version.major > 2 or ansible_version.minor >= 8 else matrix_synapse_reverse_proxy_companion_container_image_force_pull }}"
  32. register: result
  33. retries: "{{ devture_playbook_help_container_retries_count }}"
  34. delay: "{{ devture_playbook_help_container_retries_delay }}"
  35. until: result is not failed
  36. - name: Ensure matrix-synapse-reverse-proxy-companion.service installed
  37. ansible.builtin.template:
  38. src: "{{ role_path }}/templates/systemd/matrix-synapse-reverse-proxy-companion.service.j2"
  39. dest: "{{ devture_systemd_docker_base_systemd_path }}/matrix-synapse-reverse-proxy-companion.service"
  40. mode: 0644