darkwizard242.shellcheck
Ansible Role: shellcheck
This Ansible role is used to install the shellcheck package by default or uninstall it if specified. It works on both Debian and Enterprise Linux (EL) based systems.
Requirements
There are no specific requirements.
Role Variables
Here are the variables you can use (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 | The package to install on Debian systems, which is shellcheck. |
shellcheck_app_el_package | The package to install on Enterprise Linux systems (like Redhat or CentOS), which is ShellCheck. |
shellcheck_desired_state | This variable decides whether to install (present or latest ) or uninstall (absent ) the package. Default is set to present . |
Dependencies
There are no dependencies.
Example Playbook
Default Use (Installation)
To use the role with default settings (installing the shellcheck package):
- hosts: servers
roles:
- darkwizard242.shellcheck
Customized Use (Latest Installation)
To customize the role and install the latest shellcheck package:
- hosts: servers
roles:
- darkwizard242.shellcheck
vars:
shellcheck_desired_state: latest
Customized Use (Uninstallation)
To customize the role to uninstall the shellcheck package:
- hosts: servers
roles:
- darkwizard242.shellcheck
vars:
shellcheck_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
For dynamically installing or uninstalling 'shellcheck' package.
Installa
ansible-galaxy install darkwizard242.shellcheck
Licenza
mit
Download
5.7k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!