Append the git user to AllowUsers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-03-29 23:54:29 +02:00
parent 17aa158523
commit 7cf45a0866
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -102,3 +102,10 @@
force: true force: true
owner: git owner: git
become: true 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'