Skip to content

Multiple users

Patrick edited this page May 9, 2024 · 1 revision

Install zsh and set it as default shell for a list of specified users.

  • Install the zsh package.
  • Set zsh as default shell for the specified users.

main.yml file in your project folder:

- name: zsh
  hosts: all
  vars:
    zsh_config_backup: false
    zsh_config_overwrite: true

    zsh_users:
      - lorem
      - ipsum
  roles:
    - bec.shell.zsh
  tasks:
    - ansible.builtin.debug:
        msg: "ZSH was installed and set as default for 2 users."

Clone this wiki locally