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

@ -102,6 +102,8 @@
dest: "{{ matrix_dimension_docker_src_files_path }}"
version: "{{ matrix_dimension_container_image_self_build_branch }}"
force: "yes"
become: true
become_user: "{{ matrix_user_username }}"
when: "matrix_dimension_container_image_self_build|bool"
register: matrix_dimension_git_pull_results