Dot_Files/tasks/install-shellcheck.yml

27 lines
674 B
YAML

- name: Install Shellcheck for Arch
become: true
community.general.pacman:
name: shellcheck
state: present
when: ansible_facts.distribution == 'Archlinux'
- name: Install Shellcheck for MacOS
community.general.homebrew:
name: shellcheck
state: present
when: ansible_facts.distribution == 'MacOSX'
- name: Install Shellcheck for Debian based systems
become: true
ansible.builtin.apt:
name: shellcheck
state: present
when: ansible_facts.os_family == 'Debian'
- name: Install Shellcheck for RedHat based systems
become: true
ansible.builtin.dnf:
name: shellcheck
state: present
when: ansible_facts.os_family == 'RedHat'