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

@ -39,6 +39,8 @@
dest: "{{ matrix_email2matrix_docker_src_files_path }}"
version: "{{ matrix_email2matrix_container_image_self_build_branch }}"
force: "yes"
become: true
become_user: "{{ matrix_user_username }}"
register: matrix_email2matrix_git_pull_results
when: "matrix_email2matrix_container_image_self_build|bool"