28 lines
675 B
YAML
28 lines
675 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'
|