{"id":28405945,"url":"https://github.com/ansible-lockdown/debian11-cis","last_synced_at":"2026-01-22T17:11:31.672Z","repository":{"id":198547366,"uuid":"700993579","full_name":"ansible-lockdown/DEBIAN11-CIS","owner":"ansible-lockdown","description":"Automated CIS Benchmark Compliance Remediation for Debian 11 with Ansible","archived":false,"fork":false,"pushed_at":"2026-01-19T17:44:44.000Z","size":331,"stargazers_count":27,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"devel","last_synced_at":"2026-01-19T23:34:56.367Z","etag":null,"topics":["ansible","ansible-playbook","ansible-role","automation","cis","cis-benchmark","cis-compliance","cis-hardening","cis-security","configuration-management","cybersecurity","debian-11","debian-11-hardening","debian-security","enterprise-hardening","it-compliance","linux-hardening","secure-baseline","secure-configuration","system-hardening"],"latest_commit_sha":null,"homepage":"https://www.lockdownenterprise.com","language":"YAML","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/ansible-lockdown.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":"CONTRIBUTING.rst","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":"2023-10-05T17:34:13.000Z","updated_at":"2026-01-09T19:49:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"1481d3f6-3d07-4e5c-b45c-07ba5e760396","html_url":"https://github.com/ansible-lockdown/DEBIAN11-CIS","commit_stats":null,"previous_names":["ansible-lockdown/debian11-cis"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ansible-lockdown/DEBIAN11-CIS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FDEBIAN11-CIS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FDEBIAN11-CIS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FDEBIAN11-CIS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FDEBIAN11-CIS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansible-lockdown","download_url":"https://codeload.github.com/ansible-lockdown/DEBIAN11-CIS/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FDEBIAN11-CIS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28667505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"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-playbook","ansible-role","automation","cis","cis-benchmark","cis-compliance","cis-hardening","cis-security","configuration-management","cybersecurity","debian-11","debian-11-hardening","debian-security","enterprise-hardening","it-compliance","linux-hardening","secure-baseline","secure-configuration","system-hardening"],"created_at":"2025-06-01T22:09:37.348Z","updated_at":"2026-01-22T17:11:31.648Z","avatar_url":"https://github.com/ansible-lockdown.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debian 11 CIS\n\n## Configure a Debian 11 machine to be [CIS](https://www.cisecurity.org/cis-benchmarks/) compliant\n\n### Based on CIS Debian Linux 11 LTS Benchmark v1.0.0 [Release](https://downloads.cisecurity.org/#/)\n\n![Org Stars](https://img.shields.io/github/stars/ansible-lockdown?label=Org%20Stars\u0026style=social)\n![Stars](https://img.shields.io/github/stars/ansible-lockdown/Debian11-cis?label=Repo%20Stars\u0026style=social)\n![Forks](https://img.shields.io/github/forks/ansible-lockdown/Debian11-cis?style=social)\n![followers](https://img.shields.io/github/followers/ansible-lockdown?style=social)\n[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/AnsibleLockdown.svg?style=social\u0026label=Follow%20%40AnsibleLockdown)](https://twitter.com/AnsibleLockdown)\n\n![Discord Badge](https://img.shields.io/discord/925818806838919229?logo=discord)\n\n![Release Branch](https://img.shields.io/badge/Release%20Branch-Main-brightgreen)\n![Release Tag](https://img.shields.io/github/v/release/ansible-lockdown/Debian11-CIS)\n![Release Date](https://img.shields.io/github/release-date/ansible-lockdown/Debian11-CIS)\n\n[![Main Pipeline Status](https://github.com/ansible-lockdown/Debian11-CIS/actions/workflows/main_pipeline_validation.yml/badge.svg?)](https://github.com/ansible-lockdown/Debian11-CIS/actions/workflows/main_pipeline_validation.yml)\n\n[![Devel Pipeline Status](https://github.com/ansible-lockdown/Debian11-CIS/actions/workflows/devel_pipeline_validation.yml/badge.svg?)](https://github.com/ansible-lockdown/Debian11-CIS/actions/workflows/devel_pipeline_validation.yml)\n![Devel Commits](https://img.shields.io/github/commit-activity/m/ansible-lockdown/Debian11-CIS/devel?color=dark%20green\u0026label=Devel%20Branch%20Commits)\n\n![Issues Open](https://img.shields.io/github/issues-raw/ansible-lockdown/Debian11-CIS?label=Open%20Issues)\n![Issues Closed](https://img.shields.io/github/issues-closed-raw/ansible-lockdown/Debian11-CIS?label=Closed%20Issues\u0026\u0026color=success)\n![Pull Requests](https://img.shields.io/github/issues-pr/ansible-lockdown/Debian11-CIS?label=Pull%20Requests)\n\n![License](https://img.shields.io/github/license/ansible-lockdown/Debian11-CIS?label=License)\n\n---\n\n## Looking for support?\n\n[Lockdown Enterprise](https://www.lockdownenterprise.com#GH_AL_DEB11_cis)\n\n[Ansible support](https://www.mindpointgroup.com/cybersecurity-products/ansible-counselor#GH_AL_DEB11_cis)\n\n### Community\n\nOn our [Discord Server](https://www.lockdownenterprise.com/discord) to ask questions, discuss features, or just chat with other Ansible-Lockdown users\n\n## Caution(s)\n\nThis role **will make changes to the system** that could break things. This is not an auditing tool but rather a remediation tool to be used after an audit has been conducted.\n\nThis role was developed against a clean install of the Operating System. If you are implementing to an existing system please review this role for any site specific changes that are needed.\n\n## Documentation\n\n- [Read The Docs](https://ansible-lockdown.readthedocs.io/en/latest/)\n- [Getting Started](https://www.lockdownenterprise.com/docs/getting-started-with-lockdown#GH_AL_DEB11_cis)\n- [Customizing Roles](https://www.lockdownenterprise.com/docs/customizing-lockdown-enterprise#GH_AL_DEB11_cis)\n- [Per-Host Configuration](https://www.lockdownenterprise.com/docs/per-host-lockdown-enterprise-configuration#GH_AL_DEB11_cis)\n- [Getting the Most Out of the Role](https://www.lockdownenterprise.com/docs/get-the-most-out-of-lockdown-enterprise#GH_AL_DEB11_cis)\n\n## Requirements\n\n**General:**\n\n- Basic knowledge of Ansible, below are some links to the Ansible documentation to help get started if you are unfamiliar with Ansible\n  - [Main Ansible documentation page](https://docs.ansible.com)\n  - [Ansible Getting Started](https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html)\n  - [Tower User Guide](https://docs.ansible.com/ansible-tower/latest/html/userguide/index.html)\n  - [Ansible Community Info](https://docs.ansible.com/ansible/latest/community/index.html)\n- Functioning Ansible and/or Tower Installed, configured, and running. This includes all of the base Ansible/Tower configurations, needed packages installed, and infrastructure setup.\n- Please read through the tasks in this role to gain an understanding of what each control is doing. Some of the tasks are disruptive and can have unintended consequences in a live production system. Also familiarize yourself with the variables in the defaults/main.yml file or the\n\n**Technical Dependencies:**\n\n- Running Ansible/Tower setup (this role is tested against Ansible version 2.9.1 and newer)\n- Python3 Ansible run environment\n\n## Auditing (new)\n\nThis can be turned on or off within the defaults/main.yml file with the variable run_audit. The value is false by default, please refer to the wiki for more details.\n\nThis is a much quicker, very lightweight, checking (where possible) config compliance and live/running settings.\n\nA new form of auditing has been developed, by using a small (12MB) go binary called [goss](https://github.com/goss-org/goss) along with the relevant configurations to check. Without the need for infrastructure or other tooling.\nThis audit will not only check the config has the correct setting but aims to capture if it is running with that configuration also trying to remove [false positives](https://www.mindpointgroup.com/blog/is-compliance-scanning-still-relevant/) in the process.\n\nRefer to [Debian11-CIS-Audit](https://github.com/ansible-lockdown/Debian11-CIS-Audit).\n\nFurther audit documentation can be found at [Read The Docs](https://ansible-lockdown.readthedocs.io/en/latest/)\n\n## Role Variables\n\nThis role is designed that the end user should not have to edit the tasks themselves. All customizing should be done via the defaults/main.yml file or with extra vars within the project, job, workflow, etc.\n\n## Branches\n\n- **devel** - This is the default branch and the working development branch. Community pull requests will pull into this branch\n- **main** - This is the release branch\n- **reports** - This is a protected branch for our scoring reports, no code should ever go here\n- **gh-pages** - This is the github pages branch\n- **all other branches** - Individual community member branches\n\n## Community Contribution\n\nWe encourage you (the community) to contribute to this role. Please read the rules below.\n\n- Your work is done in your own individual branch. Make sure to Signed-off and GPG sign all commits you intend to merge.\n- All community Pull Requests are pulled into the devel branch\n- Pull Requests into devel will confirm your commits have a GPG signature, Signed-off, and a functional test before being approved\n- Once your changes are merged and a more detailed review is complete, an authorized member will merge your changes into the main branch for a new release\n\n## Pipeline Testing\n\nuses:\n\n- ansible-core 2.12\n- ansible collections - pulls in the latest version based on requirements file\n- runs the audit using the devel branch\n- This is an automated test that occurs on pull requests into devel\n\n## Added Extras\n\n- [pre-commit](https://pre-commit.com) can be tested and can be run from within the directory\n\n```sh\npre-commit run\n```\n\n## Known Issues\n\nDuring rule 1.9 this may fail with the following\n\n```bash\nYou must correct your GRUB install devices before proceeding:\n\n      DEBIAN_FRONTEND=dialog dpkg --configure grub-pc\n      dpkg --configure -a\n```\n\nCheck your current settings\n\n```bash\ndebconf-show grub-pc | grep install_devices:\n```\n\nIf this returns the following with no value\n\n```bash\n* grub-pc/install_devices:\n```\n\nYou need to set the device onto with grub-pc will configured\n\n**USE AT YOUR OWN RISK**\n\nExample only (be aware of disk):\n\nRun the following with sudo:\n\n```bash\ndisk=$(find /dev -type l -lname '*/sda' -path '*/by-id/*')\ndebconf-set-selections \u003c\u003c EOF\ngrub-pc    grub-pc/install_devices    multiselect    $disk\nEOF\napt update\napt install grub-pc -y\n```\n\n## Credits and Thanks\n\nMassive thanks to the fantastic community and all its members.\nThis includes a huge thanks and credit to the original authors and maintainers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-lockdown%2Fdebian11-cis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansible-lockdown%2Fdebian11-cis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-lockdown%2Fdebian11-cis/lists"}