File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed
ansible/roles/dev-desktop Expand file tree Collapse file tree 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
88
99# Prototype user whose file system quota will be copied to new user accounts
1010vars_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 5757 # Necessary for building rr
5858 - capnproto
5959 - libcapnp-dev
60+ - zsh
6061 state : present
6162
6263- name : Uninstall valgrind from apt
Original file line number Diff line number Diff line change 44- include_tasks : podman.yml
55- include_tasks : quota.yml
66- 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
710- include_tasks : team_login.yml
811- include_tasks : github.yml
912- 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