{"id":15878758,"url":"https://github.com/darkwizard242/ansible-role-cloc","last_synced_at":"2026-01-26T01:03:43.676Z","repository":{"id":44611438,"uuid":"296385687","full_name":"darkwizard242/ansible-role-cloc","owner":"darkwizard242","description":" Ansible role for cloc. Available on Ansible Galaxy. ","archived":false,"fork":false,"pushed_at":"2024-06-20T18:14:44.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-19T04:37:01.164Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","cloc","development","linux","system"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/cloc","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkwizard242.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-09-17T16:42:06.000Z","updated_at":"2024-06-20T18:14:32.000Z","dependencies_parsed_at":"2024-03-27T02:39:54.908Z","dependency_job_id":"a0f9ad27-b2f3-40c8-98c1-7767c5d24c0c","html_url":"https://github.com/darkwizard242/ansible-role-cloc","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/darkwizard242/ansible-role-cloc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-cloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-cloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-cloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-cloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-cloc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-cloc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28763107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T00:37:26.264Z","status":"ssl_error","status_checked_at":"2026-01-26T00:37:25.959Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-galaxy","ansible-role","cloc","development","linux","system"],"created_at":"2024-10-06T02:41:43.681Z","updated_at":"2026-01-26T01:03:43.659Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-cloc/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-cloc/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-cloc/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-cloc/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/cloc) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-cloc\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-cloc) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-cloc\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-cloc) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-cloc\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-cloc) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-cloc?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-cloc?color=orange\u0026style=flat-square)\n\n# Ansible Role: cloc\n\nRole to install (_by default_) [cloc](https://github.com/AlDanial/cloc) or uninstall (_if passed as var_) on Debian based and EL based systems. As per the official statement on the repository's GitHub page, it allows for \"_cloc counts blank lines, comment lines, and physical lines of source code in many programming languages._\"\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below (located in `defaults/main.yml`):\n\n### Variables list:\n\n```yaml\ncloc_app: cloc\ncloc_desired_state: present\n```\n\n### Variables table:\n\nVariable           | Description\n------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------\ncloc_app           | Defines the app to install i.e. **cloc**\ncloc_desired_state | Defined to dynamically chose whether to install (i.e. either `present` or `latest`) or uninstall (i.e. `absent`) the package. Defaults to `present`.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **cloc** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.cloc\n```\n\nFor customizing behavior of role (i.e. installation of latest **cloc** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.cloc\n  vars:\n    cloc_desired_state: latest\n```\n\nFor customizing behavior of role (i.e. un-installation of **cloc** package) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.cloc\n  vars:\n    cloc_desired_state: absent\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-cloc/blob/master/LICENSE)\n\n## Author Information\n\nThis role was created by [Ali Muhammad](https://www.alimuhammad.dev/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-cloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-cloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-cloc/lists"}