1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-28 16:11:40 +02:00

archusers: Allow overriding users' shell setting

Useful for mail.archlinux.org where this setting doesn't matter since we
force the SSH command to passwd and zsh was removed as part of the tools
cleanup effort recently (stops shadow.service from complaining about zsh
missing).
This commit is contained in:
Evangelos Foutras 2021-10-05 00:41:48 +03:00
parent dc3436a82c
commit 5492d6793a
No known key found for this signature in database
GPG Key ID: 51E8B148A9999C34
2 changed files with 2 additions and 2 deletions

@ -14,7 +14,7 @@
- { role: rspamd, rspamd_dkim_domain: archlinux.org, tags: ["mail"] }
- { role: unbound, unbound_port: 5353, tags: ["mail"] }
- { role: postfwd, tags: ['mail'] }
- { role: archusers, archusers_ssh_options: 'command="/usr/bin/passwd",restrict,pty' }
- { role: archusers, shell_override: '/bin/bash', archusers_ssh_options: 'command="/usr/bin/passwd",restrict,pty' }
- { role: fail2ban }
- { role: prometheus_exporters }
- { role: promtail }

@ -15,7 +15,7 @@
group: users
groups: "{{ item.value.groups | join(',') }}"
comment: "{{ item.value.name }}"
shell: "{{ item.value.shell | default('/bin/bash') }}"
shell: "{{ shell_override | default(item.value.shell | default('/bin/bash')) }}"
password: ""
update_password: on_create
state: present