From 45556382979e4ff4539b2a330b1c382cdd2bff6e Mon Sep 17 00:00:00 2001 From: firesoft-de <34716031+firesoft-de@users.noreply.github.com> Date: Mon, 5 Apr 2021 22:02:31 +0200 Subject: [PATCH] Fix login shell --- tasks/create_user.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/create_user.yml b/tasks/create_user.yml index 776a614..1104d94 100644 --- a/tasks/create_user.yml +++ b/tasks/create_user.yml @@ -6,6 +6,11 @@ system: true state: "present" +- name: Switch shell when not using the builtin ssh server + set_fact: + gitea_shell: "/bin/bash" + when: "not gitea_start_ssh and gitea_shell == '/bin/false'" + - name: "Create Gitea user" become: true ansible.builtin.user: