From dd40a6a61e7bd9b3e9473d14382c74b1e8ca042c Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 25 Jan 2020 04:57:27 +0500 Subject: [PATCH] Add git shell --- files/shells | 11 +++++++++++ playbooks/deploy/git.yml | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 files/shells diff --git a/files/shells b/files/shells new file mode 100644 index 0000000..fc01c91 --- /dev/null +++ b/files/shells @@ -0,0 +1,11 @@ +# /etc/shells: valid login shells +/bin/sh +/bin/bash +/usr/bin/bash +/bin/rbash +/usr/bin/rbash +/bin/dash +/usr/bin/dash +/usr/bin/git-shell +/usr/bin/tmux +/usr/bin/screen diff --git a/playbooks/deploy/git.yml b/playbooks/deploy/git.yml index 38b7690..25fab2c 100644 --- a/playbooks/deploy/git.yml +++ b/playbooks/deploy/git.yml @@ -42,6 +42,14 @@ group: git mode: 'u=rwx,g=rwx,o=rx' + - name: Add git shell + copy: + src: ../../files/shells + dest: /etc/shells + owner: root + group: root + mode: 'u=rw,g=r,o=r' + - name: Install system packages apt: name: