{"id":15878761,"url":"https://github.com/darkwizard242/ansible-role-inspec","last_synced_at":"2025-03-16T06:32:54.373Z","repository":{"id":39796941,"uuid":"251109993","full_name":"darkwizard242/ansible-role-inspec","owner":"darkwizard242","description":"Ansible role for InSpec. Available on Ansible Galaxy.","archived":false,"fork":false,"pushed_at":"2024-07-31T18:14:13.000Z","size":84,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-07T02:41:38.425Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","audit","infrastructure-testing","inspec","security","system"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/inspec","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}},"created_at":"2020-03-29T19:00:37.000Z","updated_at":"2024-07-31T18:14:02.000Z","dependencies_parsed_at":"2023-02-14T10:46:49.513Z","dependency_job_id":"82fbc5c5-32de-40ef-8f98-a14b38920ba7","html_url":"https://github.com/darkwizard242/ansible-role-inspec","commit_stats":null,"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-inspec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-inspec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-inspec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-inspec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-inspec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221661154,"owners_count":16859488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","audit","infrastructure-testing","inspec","security","system"],"created_at":"2024-10-06T02:41:44.333Z","updated_at":"2025-03-16T06:32:54.349Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build-test](https://github.com/darkwizard242/ansible-role-inspec/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-inspec/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-inspec/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-inspec/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/inspec) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-inspec\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-inspec) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-inspec\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-inspec) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-inspec\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-inspec) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-inspec?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-inspec?color=orange\u0026style=flat-square)\n\n# Ansible Role: Inspec\n\nRole to install (_by default_) extended [inspec](https://github.com/inspec/inspec) on **Debian**, **Ubuntu** and **EL** systems.\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\ninspec_app: inspec\ninspec_version: 6.8.24\ninspec_debian_os: \"{{ ansible_distribution|lower }}\"\ninspec_debian_os_version: \"{{ ansible_distribution_major_version }}\"\ninspec_debian_os_arch: amd64\ninspec_debian_dl_url: \"https://packages.chef.io/files/stable/{{ inspec_app }}/{{ inspec_version }}/{{ inspec_debian_os }}/{{ inspec_debian_os_version }}/{{ inspec_app }}_{{ inspec_version }}-1_{{ inspec_debian_os_arch }}.deb\"\ninspec_ubuntu_os: \"{{ ansible_distribution|lower }}\"\ninspec_ubuntu_os_version: \"{{ ansible_distribution_version}}\"\ninspec_ubuntu_os_arch: amd64\ninspec_ubuntu_dl_url: \"https://packages.chef.io/files/stable/{{ inspec_app }}/{{ inspec_version }}/{{ inspec_debian_os }}/{{ inspec_debian_os_version }}/{{ inspec_app }}_{{ inspec_version }}-1_{{ inspec_debian_os_arch }}.deb\"\ninspec_el_os: el\ninspec_el_os_arch: x86_64\ninspec_el_os_version: \"{{ ansible_distribution_major_version }}\"\ninspec_el_dl_url: \"https://packages.chef.io/files/stable/{{ inspec_app }}/{{ inspec_version }}/{{ inspec_el_os }}/{{ inspec_el_os_version }}/{{ inspec_app }}-{{ inspec_version }}-1.el{{ inspec_el_os_version }}.{{ inspec_el_os_arch }}.rpm\"\ninspec_el_disable_gpg_check: no\ninspec_el_rpm_key_url: \"https://packages.chef.io/chef.asc\"\ninspec_el_rpm_key_fingerprint: \"1168 5DB9 2F03 640A 2FFE 7CA8 2940 ABA9 83EF 826A\"\ninspec_el_rpm_key_state: present\n```\n\n### Variables table:\n\nVariable                      | Description\n----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------\ninspec_app                    | Defines the app to install i.e. **inspec**\ninspec_version                | Defined to dynamically fetch the desired version to install. Defaults to: **6.8.24**\ninspec_debian_os              | Defined to collect the operating system name and store it's value in lowercase\ninspec_debian_os_version      | Gathers facts to collect OS Version.\ninspec_debian_os_arch         | Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture. Defaults to: **amd64**\ninspec_debian_dl_url          | Defines URL to download the inspec debian file from for Debain Systems.\ninspec_ubuntu_os              | Defined to collect the operating system name and store it's value in lowercase\ninspec_ubuntu_os_version      | Gathers facts to collect OS Version.\ninspec_ubuntu_os_arch         | Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture. Defaults to: **amd64**\ninspec_ubuntu_dl_url          | Defines URL to download the inspec debian file from for Ubuntu Systems.\ninspec_el_os                  | Defined to for EL based systems.\ninspec_el_os_version          | Gathers facts to collect OS major version on EL based systems.\ninspec_el_os_arch             | Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture. Defaults to: **x86_64**\ninspec_el_dl_url              | Defines URL to download the inspec rpm file from for EL based Operating Systems.\ninspec_el_disable_gpg_check   | Defines whether to disable the GPG signature checking or not on EL based Operating Systems. Defaults to 'no'.\ninspec_el_rpm_key_url         | RPM key to be used for inspec on EL based Operating Systems.\ninspec_el_rpm_key_fingerprint | Fingerprint of the rpm key to be used on EL based Operating Systems.\ninspec_el_rpm_key_state       | Defines whether the rpm key should be imported or not in rpm db on EL based Operating Systems.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **inspec**) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.inspec\n```\n\nFor customizing behavior of role (i.e. specifying the desired **inspec** version) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.inspec\n  vars:\n    inspec_version: 4.18.99\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-inspec/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-inspec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-inspec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-inspec/lists"}