shellcheck
Ansible Role: shellcheck
Role to install (by default) shellcheck package or uninstall (if passed as var) on Debian based and EL based systems.
Requirements
None.
Role Variables
Available variables are listed below (located in defaults/main.yml
):
Variables list:
shellcheck_app_debian_package: shellcheck
shellcheck_app_el_package: ShellCheck
shellcheck_desired_state: present
Variables table:
Variable | Description |
---|---|
shellcheck_app_debian_package | Defines the app to install on Debian based systems i.e. shellcheck |
shellcheck_app_el_package | Defines the app to install on Enterprise Linux (Redhat/CentOS) systems i.e. ShellCheck |
shellcheck_desired_state | Defined to dynamically select whether to install (i.e. either present or latest ) or uninstall (i.e. absent ) the package. Default set to present . |
Dependencies
None
Example Playbook
For default behaviour of role (i.e. installation of shellcheck package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.shellcheck
For customizing behavior of role (i.e. installation of latest shellcheck package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.shellcheck
vars:
shellcheck_desired_state: latest
For customizing behavior of role (i.e. un-installation of shellcheck package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.shellcheck
vars:
shellcheck_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
About
For dynamically installing or uninstalling 'shellcheck' package.
Install
ansible-galaxy install darkwizard242/ansible-role-shellcheck
License
mit
Downloads
5402
Owner
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!