{"id":15878905,"url":"https://github.com/darkwizard242/ansible-role-grype","last_synced_at":"2026-02-20T00:14:52.727Z","repository":{"id":37079857,"uuid":"441542948","full_name":"darkwizard242/ansible-role-grype","owner":"darkwizard242","description":"Ansible role for 'grype'. Available on Ansible Galaxy.","archived":false,"fork":false,"pushed_at":"2026-01-29T23:54:02.000Z","size":163,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-30T13:10:41.074Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","container-images","grype","linux","vulnerability-scanner"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/grype","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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-24T19:40:26.000Z","updated_at":"2026-01-29T23:53:38.000Z","dependencies_parsed_at":"2023-02-15T12:31:31.645Z","dependency_job_id":"c6e93fac-9c5b-448b-89e8-e34c331f9484","html_url":"https://github.com/darkwizard242/ansible-role-grype","commit_stats":{"total_commits":216,"total_committers":2,"mean_commits":108.0,"dds":0.00462962962962965,"last_synced_commit":"c184d90456d6e19c506cf3b45877c25b1301ce7e"},"previous_names":[],"tags_count":122,"template":false,"template_full_name":null,"purl":"pkg:github/darkwizard242/ansible-role-grype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-grype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-grype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-grype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-grype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-grype/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-grype/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29637398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"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","container-images","grype","linux","vulnerability-scanner"],"created_at":"2024-10-06T02:42:16.741Z","updated_at":"2026-02-20T00:14:52.722Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-grype/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-grype/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-grype/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-grype/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/grype) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-grype\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-grype) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-grype\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-grype) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-grype\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-grype) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-grype?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-grype?color=orange\u0026style=flat-square)\n\n# Ansible Role: grype\n\nRole to install (_by default_) [grype](https://github.com/anchore/grype) on **Debian/Ubuntu** and **EL** systems. A vulnerability scanner for container images and filesystems.\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\ngrype_app: grype\ngrype_desired_state: present\ngrype_version: 0.109.0\ngrype_os: \"{{ ansible_system | lower }}\"\ngrype_architecture_map:\n  amd64: amd64\n  arm: arm64\n  x86_64: amd64\n  armv6l: armv6\n  armv7l: armv7\n  aarch64: arm64\n  32-bit: \"386\"\n  64-bit: amd64\n\n# For Debian/Ubuntu Family\ngrype_debian_url: \"https://github.com/anchore/{{ grype_app }}/releases/download/v{{ grype_version }}/{{ grype_app }}_{{ grype_version }}_{{ grype_os }}_{{ grype_architecture_map[ansible_architecture] }}.deb\"\n\n# For EL Family\ngrype_el_url: \"https://github.com/anchore/{{ grype_app }}/releases/download/v{{ grype_version }}/{{ grype_app }}_{{ grype_version }}_{{ grype_os }}_{{ grype_architecture_map[ansible_architecture] }}.rpm\"\n```\n\n### Variables table:\n\nVariable               | Description\n---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------\ngrype_app              | Defines the app to install i.e. **grype**\ngrype_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`.\ngrype_version          | Defined to dynamically fetch the desired version to install. Defaults to: **0.109.0**\ngrype_os               | Defines os type. Used for obtaining the correct type of binaries based on OS type.\ngrype_architecture_map | Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture.\ngrype_debian_url       | Defines URL to download the 'deb' package from for Debian/Ubuntu family systems.\ngrype_el_url           | Defines URL to download the 'rpm' package from for EL family systems.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **grype**) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.grype\n```\n\nFor customizing behavior of role (i.e. specifying the desired **grype** version) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.grype\n  vars:\n    grype_version: 0.27.3\n```\n\nFor customizing behavior of role (i.e. different os architecture of **grype** package like arm64) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.grype\n  vars:\n    grype_arch: \"arm64\"\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-grype/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-grype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-grype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-grype/lists"}