No description
Find a file
2024-10-13 19:43:46 +00:00
.config remove freebsd12 2024-07-02 17:31:22 +02:00
.github feat(ssh): add alpine support (#809) 2024-10-13 21:42:28 +02:00
meta linting (#603) 2023-01-24 12:40:27 +01:00
molecule feat(ssh): add alpine support (#809) 2024-10-13 21:42:28 +02:00
roles Prettified Code! 2024-10-13 19:42:40 +00:00
.aar_doc.yml fix(docs): add 'become: true' to example playbooks. fix #787 (#804) 2024-10-09 14:40:08 +02:00
.gitattributes update changelog 2017-06-28 16:00:41 +02:00
.gitignore Add full support for Debian 11 (#538) 2022-08-16 15:02:27 +02:00
.gitmodules remove os submodule 2020-11-07 21:49:25 +01:00
.prettierignore add restart handler variable for mysql role (#399) 2021-02-10 15:54:57 +01:00
CHANGELOG.md update changelog 2024-10-13 19:43:46 +00:00
CONTRIBUTING.md Don't run tests if the environment is not correct 2024-10-07 23:02:51 +02:00
galaxy.yml update galaxy.yml with new version 2024-08-06 17:25:36 +00:00
LICENSE Create LICENSE 2021-08-06 13:08:55 +02:00
OS_HARDENING_CHANGELOG.md fix spelling errors 2023-04-14 23:51:53 +02:00
README.md Update Debian compatibility (#784) 2024-08-06 13:11:32 +02:00
renovate.json Use best-practice preset for renovate (#775) 2024-06-25 06:50:36 +02:00
requirements.txt chore(deps): update dependency ansible-core to v2.17.5 2024-10-08 13:22:40 +00:00

Ansible Collection - devsec.hardening

devsec.os_hardening devsec.os_hardening VM devsec.ssh_hardening devsec.ssh_hardening BSD devsec.ssh_hardening with custom tests devsec.nginx_hardening devsec.mysql_hardening

Description

This collection provides battle tested hardening for:

  • Linux operating systems:
    • CentOS 9
    • Rocky Linux 8/9
    • Debian 11/12
    • Ubuntu 20.04/22.04/24.04
    • Amazon Linux (some roles supported)
    • Arch Linux (some roles supported)
    • Fedora 39/40 (some roles supported)
    • Suse Tumbleweed (some roles supported)
  • MySQL
    • MariaDB >= 5.5.65, >= 10.1.45, >= 10.3.17
    • MySQL >= 5.7.31, >= 8.0.3
  • Nginx 1.0.16 or later
  • OpenSSH 5.3 and later

The hardening is intended to be compliant with the Inspec DevSec Baselines:

Looking for the old roles?

The roles are now part of the hardening-collection. We have kept the old releases of the os-hardening role in this repository, so you can find the them by exploring older tags. The last release of the standalone role was 6.2.0.

The other roles are in separate archives repositories:

Minimum required Ansible-version

  • Ansible >= 2.9.10

Included content

In progress, not working:

Installation

Install the collection via ansible-galaxy:

ansible-galaxy collection install devsec.hardening

Using this collection

Please refer to the examples in the readmes of the role.

See Ansible Using collections for more details.

Contributing to this collection

See the contributor guideline.

Release notes

See the changelog.

Roadmap

Todos:

More information

General information:

Licensing

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.