2022-08-01 17:33:33 -05:00
|
|
|
---
|
|
|
|
- name: Install zsh for MacOSX
|
|
|
|
community.general.homebrew:
|
|
|
|
name: zsh
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.distribution == 'MacOSX'
|
|
|
|
|
|
|
|
- name: Install zsh for Debian based systems
|
2022-08-02 23:12:29 -05:00
|
|
|
become: true
|
2022-08-01 17:33:33 -05:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name: zsh
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: Install zsh for RedHat based systems
|
2022-08-02 23:12:29 -05:00
|
|
|
become: true
|
2022-08-01 17:33:33 -05:00
|
|
|
ansible.builtin.dnf:
|
|
|
|
name: zsh
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.os_family == 'RedHat'
|
|
|
|
|
|
|
|
- name: Install zsh for Arch
|
|
|
|
community.general.pacman:
|
|
|
|
name: zsh
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.os_family == 'Archlinux'
|