Append the git user to AllowUsers
continuous-integration/drone/push Build is passing Details

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
1 changed files with 7 additions and 0 deletions

View File

@ -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'