You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patrick edited this page May 9, 2024
·
3 revisions
Install ZSH and set it as default shell for the ansible_user.
Install the zsh package.
Set zsh as default shell for the ansible_user.
main.yml file in your project folder:
- name: zshhosts: allvars:
zsh_config_backup: falsezsh_config_overwrite: trueroles:
- bec.shell.zshtasks:
- ansible.builtin.debug:
msg: "ZSH has been installed and set as default for the user {{ ansible_user }}."
The variables zsh_users_config and zsh_system_config are not set in this example - they are an empty array by default. Therefore, no ZSH config files are distributed in this example. ZSH will ask the user when logging in, if a new config file should be created.