aboutsummaryrefslogblamecommitdiffstats
path: root/roles/_workstation/shell/tasks/main.yml
blob: 3d995744bd5cf3d431af885c6150ad524db7ff1f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                          
                     




                                                 
---

- name: install zsh
  ansible.builtin.package:
    name: zsh
    state: present

- name: retrieve zsh path  # noqa no-changed-when command-instead-of-shell
  ansible.builtin.shell: command -v zsh
  register: shell_zsh_path
  changed_when: false

- name: ensure zsh is used for workstation user
  ansible.builtin.user:
    name: "{{ shell_workstation_user }}"
    shell: "{{ shell_zsh_path.stdout_lines[0] }}"
remember that computers suck.