Ensure git cloning when self-building is done with the matrix user, not root

Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1749
This commit is contained in:
Slavi Pantaleev
2022-04-14 08:52:37 +03:00
parent aef2c4c32e
commit 2df993977a
39 changed files with 93 additions and 0 deletions

View File

@ -25,6 +25,8 @@
dest: "{{ matrix_synapse_docker_src_files_path }}"
version: "{{ matrix_synapse_docker_image.split(':')[1] }}"
force: "yes"
become: true
become_user: "{{ matrix_user_username }}"
register: matrix_synapse_git_pull_results
- name: Check if Synapse Docker image exists