diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:32:05 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:32:05 +0200 |
| commit | e0ffa652e8d2950cca4e71fc779280765bb27349 (patch) | |
| tree | e8883105fa6c310357fefa36ee2db4c39dadeef5 /roles/user/tasks | |
| parent | 1f6dd7a2de5ad620628faa44490dcd9feab01f54 (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.yml | 5 |
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 |
