darkwizard242.cloc
Ansible Role: cloc
This role is designed to install (by default) cloc or to uninstall it (if specified) on Debian and EL based systems. According to the GitHub page, "cloc counts blank lines, comment lines, and physical lines of source code in many programming languages."
Requirements
No special requirements.
Role Variables
You can find the available variables listed below (in defaults/main.yml
):
Variables list:
cloc_app: cloc
cloc_desired_state: present
Variables table:
Variable | Description |
---|---|
cloc_app | The name of the app to install, which is cloc. |
cloc_desired_state | Allows you to choose whether to install (e.g. present or latest ) or uninstall (e.g. absent ) the package. Default is present . |
Dependencies
None
Example Playbook
To use the default behavior of this role (installing the cloc package) in your Ansible playbooks:
- hosts: servers
roles:
- darkwizard242.cloc
To customize the role to install the latest version of the cloc package:
- hosts: servers
roles:
- darkwizard242.cloc
vars:
cloc_desired_state: latest
To customize the role for uninstalling the cloc package:
- hosts: servers
roles:
- darkwizard242.cloc
vars:
cloc_desired_state: absent
License
This role is licensed under the MIT License.
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Installation/Uninstallation of `cloc`. Used for Counting Lines of Code.
Installa
ansible-galaxy install darkwizard242.cloc
Licenza
mit
Download
3.3k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!