summaryrefslogtreecommitdiffstats
path: root/roles/user/tasks
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-08-11 00:32:05 +0200
committerAhmed AbdelHalim <[email protected]>2025-08-11 00:32:05 +0200
commit2b8efae647605647726c33986aa61e5eb18b9833 (patch)
treee8883105fa6c310357fefa36ee2db4c39dadeef5 /roles/user/tasks
parentb4530254030bfcc0b4e311a1aa71067e5f89930b (diff)
Fix the debian default login shell for user
This is slightly opinionated on the configurations, but it should be easily changed by the user later on during setup or via some other ansible role.
Diffstat (limited to 'roles/user/tasks')
-rw-r--r--roles/user/tasks/main.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/user/tasks/main.yml b/roles/user/tasks/main.yml
index 76146491..41e0b5b1 100644
--- a/roles/user/tasks/main.yml
+++ b/roles/user/tasks/main.yml
@@ -2,7 +2,9 @@
- name: "Ensure sudo installed"
become: true
ansible.builtin.package:
- name: "sudo"
+ name:
+ - "sudo"
+ - "bash"
state: "present"
- name: "Set sudo group fact"
@@ -41,6 +43,7 @@
generate_ssh_key: false
groups: "{{ user_groups }}"
password: "{{ user_password }}"
+ shell: "/bin/bash"
state: "present"
update_password: "on_create"
register: user