qusal/salt/utils/tools/zsh/change-shell.sls

21 lines
449 B
Plaintext
Raw Normal View History

2023-11-13 09:33:28 -05:00
{#
2024-01-29 10:49:54 -05:00
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
2023-11-13 09:33:28 -05:00
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] != 'dom0' -%}
include:
- utils.tools.zsh.install
2023-11-13 09:33:28 -05:00
## chsh is not in Fedora and usermod covers a wider range.
"{{ slsdotpath }}-change-user-shell-to-zsh":
cmd.run:
- name: usermod -s /bin/zsh user
- runas: root
- require:
- sls: {{ slsdotpath }}.install
{% endif -%}