{"id":28405950,"url":"https://github.com/ansible-lockdown/suse15-cis","last_synced_at":"2025-06-29T07:32:10.766Z","repository":{"id":293107435,"uuid":"982175712","full_name":"ansible-lockdown/SUSE15-CIS","owner":"ansible-lockdown","description":"Automated CIS Benchmark Compliance Remediation for SUSE 15 with Ansible","archived":false,"fork":false,"pushed_at":"2025-06-27T11:45:57.000Z","size":361,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"devel","last_synced_at":"2025-06-27T12:37:47.064Z","etag":null,"topics":["ansible","ansible-playbook","ansible-role","automation","cis","cis-benchmark","cis-compliance","cis-hardening","cis-security","configuration-management","cybersecurity","enterprise-hardening","it-compliance","linux-hardening","secure-baseline","secure-configuration","suse-15","suse-15-hardening","suse-security","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}},"created_at":"2025-05-12T13:39:26.000Z","updated_at":"2025-06-27T11:45:56.000Z","dependencies_parsed_at":"2025-05-13T18:37:15.270Z","dependency_job_id":"ed0c7ae7-e6e1-451e-a322-eeec0e4dec51","html_url":"https://github.com/ansible-lockdown/SUSE15-CIS","commit_stats":null,"previous_names":["ansible-lockdown/suse15-cis"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ansible-lockdown/SUSE15-CIS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FSUSE15-CIS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FSUSE15-CIS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FSUSE15-CIS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FSUSE15-CIS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansible-lockdown","download_url":"https://codeload.github.com/ansible-lockdown/SUSE15-CIS/tar.gz/refs/heads/devel","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansible-lockdown%2FSUSE15-CIS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262556767,"owners_count":23328162,"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-playbook","ansible-role","automation","cis","cis-benchmark","cis-compliance","cis-hardening","cis-security","configuration-management","cybersecurity","enterprise-hardening","it-compliance","linux-hardening","secure-baseline","secure-configuration","suse-15","suse-15-hardening","suse-security","system-hardening"],"created_at":"2025-06-01T22:09:37.487Z","updated_at":"2025-06-29T07:32:10.759Z","avatar_url":"https://github.com/ansible-lockdown.png","language":"YAML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SUSE 15 CIS\n\n## Configure a Suse 15 machine to be [CIS](https://www.cisecurity.org/cis-benchmarks/) compliant\n\n### Based on [Suse Enterprise Linux 15 Benchmark v2.0.1 - 28 Feb 2025](https://www.cisecurity.org/cis-benchmarks/)\n\n---\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/SUSE15-CIS?label=Repo%20Stars\u0026style=social)\n![Forks](https://img.shields.io/github/forks/ansible-lockdown/SUSE15-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![Ansible Galaxy Quality](https://img.shields.io/ansible/quality/61781?label=Quality\u0026\u0026logo=ansible)\n[![Discord Badge](https://img.shields.io/discord/925818806838919229?logo=discord)](https://www.lockdownenterprise.com/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/SUSE15-CIS)\n![Release Date](https://img.shields.io/github/release-date/ansible-lockdown/SUSE15-CIS)\n\n[![Main Pipeline Status](https://github.com/ansible-lockdown/SUSE15-CIS/actions/workflows/main_pipeline_validation.yml/badge.svg?)](https://github.com/ansible-lockdown/SUSE15-CIS/actions/workflows/main_pipeline_validation.yml)\n\n[![Devel Pipeline Status](https://github.com/ansible-lockdown/SUSE15-CIS/actions/workflows/devel_pipeline_validation.yml/badge.svg?)](https://github.com/ansible-lockdown/SUSE15-CIS/actions/workflows/devel_pipeline_validation.yml)\n![Devel Commits](https://img.shields.io/github/commit-activity/m/ansible-lockdown/SUSE15-CIS/devel?color=dark%20green\u0026label=Devel%20Branch%20Commits)\n\n[![Issues Open](https://img.shields.io/github/issues-raw/ansible-lockdown/SUSE15-CIS?label=Open%20Issues)](https://github.com/ansible-lockdown/SUSE15-CIS/issues)\n[![Issues Closed](https://img.shields.io/github/issues-closed-raw/ansible-lockdown/SUSE15-CIS?label=Closed%20Issues\u0026\u0026color=success)](https://github.com/ansible-lockdown/SUSE15-CIS/issues?q=is%3Aissue%20state%3Aclosed)\n[![Pull Requests](https://img.shields.io/github/issues-pr/ansible-lockdown/SUSE15-CIS?label=Pull%20Requests)](https://github.com/ansible-lockdown/SUSE15-CIS/pulls)\n![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)\n\n![License](https://img.shields.io/github/license/ansible-lockdown/SUSE15-CIS?label=License)\n\n---\n\n## Looking for support?\n\n[Lockdown Enterprise](https://www.lockdownenterprise.com)\n\n[Ansible support](https://www.mindpointgroup.com/cybersecurity-products/ansible-counselor)\n\n### Community\n\nJoin us on our [Discord Server](https://www.lockdownenterprise.com/discord) to ask questions, discuss features, or just chat with other Ansible-Lockdown users.\n\n### Contributing\n\nIssues and Pull requests are welcome please ensure that all commits are signed-off-by and gpg-signed.\nRefer to [Contributing Guide](./CONTRIBUTING.rst)\n\n---\n\n## Caution(s)\n\nThis role **will make changes to the system** which may have unintended consequences. This is not an auditing tool but rather a remediation tool to be used after an audit has been conducted.\n\nCheck Mode is not supported! The role will complete in check mode without errors, but it is not supported and should be used with caution. The SUSE15-CIS-Audit role or a compliance scanner should be used for compliance checking over check mode.\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\nTo use the release version, please point to the `main` branch and relevant release for the cis benchmark you wish to work with.\n\n---\n\n## Matching a security Level for CIS\n\nIt is possible to only run level 1 or level 2 controls for CIS.\nThis is managed using tags:\n\n- level1-server\n- level1-workstation\n- level2-server\n- level2-workstation\n\nThe control found in the `defaults` main also needs to reflect this, as this control is the testing that takes place if you are using the audit component.\n\n## Coming from a previous release\n\nCIS release always contains changes, it is highly recommended to review the new references and available variables. This has changed significantly since the ansible-lockdown initial release.\nThis is now compatible with python3 if it is found to be the default interpreter. This does come with prerequisites which configure the system accordingly.\n\nFurther details can be seen in the [Changelog](./Changelog.md)\n\n## Auditing (new)\n\nThis can be turned on or off within the `defaults/main.yml` file with the variables `setup_audit` and `run_audit`. The value is `false` by default. Please refer to the wiki for more details. The defaults file also populates the goss checks to check only the controls that have been enabled in the ansible role.\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 try to remove [false positives](https://www.mindpointgroup.com/blog/is-compliance-scanning-still-relevant/) in the process.\n\nRefer to [SUSE15-CIS-Audit](https://github.com/ansible-lockdown/SUSE15-CIS-Audit).\n\n## Documentation\n\n- [Read The Docs](https://ansible-lockdown.readthedocs.io/en/latest/)\n\n## Requirements\n\nSUSE15 Update 4+\n\n- Access to download or add the goss binary and content to the system if using auditing (other options are available on how to get the content to the system.)\n\n```sh\nos_check: false\n```\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\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.\n\n**Technical Dependencies:**\n\n- Python3\n- Ansible 2.12+\n- python-def\n- libselinux-python\n- collections found in collections/requirements.yml\n\npre-commit is available if installed on your host for pull request testing.\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 by overriding the required varaibles as found in defaults/main.yml file. e.g. using inventory, group_vars, extra_vars\n\n## Tags\n\nThere are many tags available for added control precision. Each control has it's own set of tags noting what level, if it's scored/notscored, what OS element it relates to, if it's a patch or audit, and the rule number.\n\nBelow is an example of the tag section from a control within this role. Using this example if you set your run to skip all controls with the tag services, this task will be skipped. The opposite can also happen where you run only controls tagged with services.\n\n```sh\n    tags:\n    - level1-server\n    - level1-workstation\n    - scored\n    - avahi\n    - services\n    - patch\n    - rule_2.2.4\n```\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## Known Issues\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- Runs the pre-commit setup on the PR to ensure everything is in place as expected.\n- This is an automated test that occurs on pull requests into devel\n\n## Local Testing\n\n- Ansible\n\n  - ansible-base 2.10.17 - python 3.8\n  - ansible-core 2.13.4  - python 3.10\n  - ansible-core 2.15.1  - python 3.11\n\n## Added Extras\n\n- makefile - this is there purely for testing and initial setup purposes.\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## Credits and Thanks\n\nMassive thanks to the fantastic community and all its members.\n\nThis includes a huge thanks and credit to the original authors and maintainers.\n\nMark Bolwell and Mathis Wahls\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-lockdown%2Fsuse15-cis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansible-lockdown%2Fsuse15-cis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansible-lockdown%2Fsuse15-cis/lists"}