feat: add shellcheck installer

This commit is contained in:
Price Hiller 2022-08-06 20:23:56 -05:00
parent 4f3411b8fd
commit 00f9a924c4
2 changed files with 28 additions and 0 deletions

View File

@ -25,6 +25,7 @@
- install-ruby.yml
- install-pyenv.yml
- install-yamllint.yml
- install-shellcheck.yml
- install-lua.yml
- install-fzf.yml
- install-java.yml

View File

@ -0,0 +1,27 @@
- 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'