Append the git user to AllowUsers
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
17aa158523
commit
7cf45a0866
@ -102,3 +102,10 @@
|
||||
force: true
|
||||
owner: git
|
||||
become: true
|
||||
|
||||
- name: Add git user to AllowUsers SSH configuration
|
||||
replace:
|
||||
backup: true
|
||||
dest: /etc/ssh/sshd_config
|
||||
regexp: '^(AllowUsers(?!.*\bgit\b).*)$'
|
||||
replace: '\1 git'
|
||||
|
Reference in New Issue
Block a user