only create vcs user when hosting git in phab
This commit is contained in:
parent
d3783f17f9
commit
7c3d552cc8
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@
|
||||||
user: name={{ phabricator_daemon_user }}
|
user: name={{ phabricator_daemon_user }}
|
||||||
|
|
||||||
- name: create vcs user
|
- name: create vcs user
|
||||||
user: name={{ phabricator_vcs_user }} password={{ phabricator_vcs_password }} }}
|
user: name={{ phabricator_vcs_user }} password={{ phabricator_vcs_password }}
|
||||||
|
when: enable_phabricator_git
|
||||||
|
|
||||||
- name: add vcs user to sudoers to write as daemon user with restrictions for git
|
- name: add vcs user to sudoers to write as daemon user with restrictions for git
|
||||||
lineinfile: "dest=/etc/sudoers state=present line='{{ phabricator_vcs_user }} ALL=({{ phabricator_daemon_user }}) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/bin/git-receive-pack'"
|
lineinfile: "dest=/etc/sudoers state=present line='{{ phabricator_vcs_user }} ALL=({{ phabricator_daemon_user }}) SETENV: NOPASSWD: /usr/bin/git-upload-pack, /usr/bin/git-receive-pack'"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue