feat: add shellcheck installer
This commit is contained in:
parent
4f3411b8fd
commit
00f9a924c4
@ -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
|
||||
|
27
tasks/install-shellcheck.yml
Normal file
27
tasks/install-shellcheck.yml
Normal 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'
|
Loading…
Reference in New Issue
Block a user