File tree 4 files changed +25
-0
lines changed
ansible/roles/dev-desktop
4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,11 @@ vars_user_quota_gb: 150
8
8
9
9
# Prototype user whose file system quota will be copied to new user accounts
10
10
vars_user_quota_prototype_user : " quota-prototype"
11
+
12
+ vars_user_config :
13
+ # - username: rylev
14
+ # shell: /bin/sh
15
+ # - username: meysam
16
+ # shell: /usr/bin/zsh
17
+ # - username: jdno
18
+ # shell: /usr/bin/fish
Original file line number Diff line number Diff line change 57
57
# Necessary for building rr
58
58
- capnproto
59
59
- libcapnp-dev
60
+ - zsh
60
61
state : present
61
62
62
63
- name : Uninstall valgrind from apt
Original file line number Diff line number Diff line change 4
4
- include_tasks : podman.yml
5
5
- include_tasks : quota.yml
6
6
- include_tasks : user_configuration.yml
7
+ - include_tasks : usermod.yml
8
+ with_items : " {{ vars_user_config }}"
9
+ when : vars_user_config is not none and vars_user_config | length > 0
7
10
- include_tasks : team_login.yml
8
11
- include_tasks : github.yml
9
12
- include_tasks : motd.yml
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Check user {{ item.username }} exists
3
+ ansible.builtin.getent :
4
+ database : passwd
5
+ key : " {{ item.username }}"
6
+ register : user_exists
7
+ ignore_errors : true
8
+
9
+ - name : Set the user shell to {{ item.shell }}
10
+ ansible.builtin.user :
11
+ name : " {{ item.username }}"
12
+ shell : " {{ item.shell }}"
13
+ when : user_exists is succeeded
You can’t perform that action at this time.
0 commit comments