From 64b5c031ee6b9e931927974d1aff01baafd8078f Mon Sep 17 00:00:00 2001 From: Nemo Date: Wed, 26 Aug 2020 21:07:41 +0200 Subject: [PATCH] ksh for OpenBSD users --- roles/users_sudo/tasks/users.yml | 2 +- roles/users_sudo/vars/Debian.yml | 1 + roles/users_sudo/vars/Gentoo.yml | 1 + roles/users_sudo/vars/OpenBSD.yml | 1 + roles/users_sudo/vars/RedHat.yml | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/users_sudo/tasks/users.yml b/roles/users_sudo/tasks/users.yml index 8eee004..afcd8c0 100644 --- a/roles/users_sudo/tasks/users.yml +++ b/roles/users_sudo/tasks/users.yml @@ -3,7 +3,7 @@ user: name: "{{ item }}" groups: "{{ sudo_group }}" - shell: /bin/bash + shell: "{{ sudo_shell }}" append: yes password: "{{ default_user_password }}" update_password: on_create diff --git a/roles/users_sudo/vars/Debian.yml b/roles/users_sudo/vars/Debian.yml index 700edf1..1121321 100644 --- a/roles/users_sudo/vars/Debian.yml +++ b/roles/users_sudo/vars/Debian.yml @@ -1,3 +1,4 @@ --- sudo_package: sudo sudo_group: sudo +sudo_shell: /bin/bash diff --git a/roles/users_sudo/vars/Gentoo.yml b/roles/users_sudo/vars/Gentoo.yml index 833c694..318d5a5 100644 --- a/roles/users_sudo/vars/Gentoo.yml +++ b/roles/users_sudo/vars/Gentoo.yml @@ -1,3 +1,4 @@ --- sudo_package: sudo sudo_group: wheel +sudo_shell: /bin/bash diff --git a/roles/users_sudo/vars/OpenBSD.yml b/roles/users_sudo/vars/OpenBSD.yml index 833c694..933e7b4 100644 --- a/roles/users_sudo/vars/OpenBSD.yml +++ b/roles/users_sudo/vars/OpenBSD.yml @@ -1,3 +1,4 @@ --- sudo_package: sudo sudo_group: wheel +sudo_shell: /bin/ksh diff --git a/roles/users_sudo/vars/RedHat.yml b/roles/users_sudo/vars/RedHat.yml index 833c694..318d5a5 100644 --- a/roles/users_sudo/vars/RedHat.yml +++ b/roles/users_sudo/vars/RedHat.yml @@ -1,3 +1,4 @@ --- sudo_package: sudo sudo_group: wheel +sudo_shell: /bin/bash